Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ca3c4d7

Browse filesBrowse files
committed
make coding standards example match the Symfony2 codebase conventions
1 parent 5acc483 commit ca3c4d7
Copy full SHA for ca3c4d7

File tree

Expand file treeCollapse file tree

1 file changed

+4
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-7
lines changed

‎contributing/code/standards.rst

Copy file name to clipboardExpand all lines: contributing/code/standards.rst
+4-7Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,12 @@ example containing most features described below:
6868
}
6969
if ('string' === $dummy) {
7070
if ('values' === $mergedOptions['some_default']) {
71-
$dummy = substr($dummy, 0, 5);
72-
} else {
73-
$dummy = ucwords($dummy);
71+
return substr($dummy, 0, 5);
7472
}
75-
} else {
76-
throw new \RuntimeException(sprintf('Unrecognized dummy option "%s"', $dummy));
73+
74+
return ucwords($dummy);
7775
}
78-
79-
return $dummy;
76+
throw new \RuntimeException(sprintf('Unrecognized dummy option "%s"', $dummy));
8077
}
8178
}
8279

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.