Skip to content

Commit 2d2a8d4

Browse files
committed
[CS] Respect PSR2 4.2
| Q | A | ------------- | --- | Branch | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | http://www.php-fig.org/psr/psr-2/#4-2-properties
1 parent bc7074b commit 2d2a8d4

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Tests/ContainerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,9 @@ public function testAlias()
599599

600600
class ProjectServiceContainer extends Container
601601
{
602-
public $__bar, $__foo_bar, $__foo_baz;
602+
public $__bar;
603+
public $__foo_bar;
604+
public $__foo_baz;
603605
public $synchronized;
604606

605607
public function __construct()

Tests/Fixtures/includes/foo.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@
44

55
class FooClass
66
{
7-
public $foo, $moo;
8-
9-
public $bar = null, $initialized = false, $configured = false, $called = false, $arguments = array();
7+
public $foo;
8+
public $moo;
9+
10+
public $bar = null;
11+
public $initialized = false;
12+
public $configured = false;
13+
public $called = false;
14+
public $arguments = array();
1015

1116
public function __construct($arguments = array())
1217
{

0 commit comments

Comments
 (0)