Skip to content

Commit aae3a5f

Browse files
committed
Tweaking doc contributing coding standards
1 parent 364c8d4 commit aae3a5f

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

contributing/documentation/overview.rst

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,22 @@ look and feel familiar, you should follow these rules:
9393

9494
An example::
9595

96-
// src/Foo/Bar/foo.php
97-
public function foo($bar)
96+
// src/Foo/Bar.php
97+
98+
// ...
99+
class Bar
98100
{
99-
// set foo with a value of bar
100-
$foo = ...;
101+
// ...
102+
103+
public function foo($bar)
104+
{
105+
// set foo with a value of bar
106+
$foo = ...;
101107

102-
// ... check if $bar has the correct value
108+
// ... check if $bar has the correct value
103109

104-
return $foo->baz($bar, ...);
110+
return $foo->baz($bar, ...);
111+
}
105112
}
106113

107114
.. note::

0 commit comments

Comments
 (0)