[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
This commit is contained in:
Javier Spagnoletti 2016-06-25 13:29:20 -03:00
parent fad545aff9
commit d250b1d0f0
4 changed files with 21 additions and 6 deletions

View File

@ -2,9 +2,14 @@
class ProxyManagerBridgeFooClass
{
public $foo, $moo;
public $foo;
public $moo;
public $bar = null, $initialized = false, $configured = false, $called = false, $arguments = array();
public $bar = null;
public $initialized = false;
public $configured = false;
public $called = false;
public $arguments = array();
public function __construct($arguments = array())
{

View File

@ -19,7 +19,10 @@ class InputDefinitionTest extends \PHPUnit_Framework_TestCase
{
protected static $fixtures;
protected $foo, $bar, $foo1, $foo2;
protected $foo;
protected $bar;
protected $foo1;
protected $foo2;
public static function setUpBeforeClass()
{

View File

@ -599,7 +599,9 @@ class ContainerTest extends \PHPUnit_Framework_TestCase
class ProjectServiceContainer extends Container
{
public $__bar, $__foo_bar, $__foo_baz;
public $__bar;
public $__foo_bar;
public $__foo_baz;
public $synchronized;
public function __construct()

View File

@ -4,9 +4,14 @@ namespace Bar;
class FooClass
{
public $foo, $moo;
public $foo;
public $moo;
public $bar = null, $initialized = false, $configured = false, $called = false, $arguments = array();
public $bar = null;
public $initialized = false;
public $configured = false;
public $called = false;
public $arguments = array();
public function __construct($arguments = array())
{