Completed
Push — master ( 8661dd...c673c5 )
by Sebastian
02:34
created
src/InformationProvider/LibraryInformationInterface.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * LibraryInformationInterface.php
4
- *
5
- * MIT LICENSE
6
- *
7
- * LICENSE: This source file is subject to the MIT license.
8
- * A copy of the licenses text was distributed alongside this
9
- * file (usually the repository or package root). The text can also
10
- * be obtained on one of the following sources:
11
- * * http://opensource.org/licenses/MIT
12
- * * https://github.com/suralc/pvra/blob/master/LICENSE
13
- *
14
- * @author     suralc <[email protected]>
15
- * @license    http://opensource.org/licenses/MIT  MIT
16
- */
3
+     * LibraryInformationInterface.php
4
+     *
5
+     * MIT LICENSE
6
+     *
7
+     * LICENSE: This source file is subject to the MIT license.
8
+     * A copy of the licenses text was distributed alongside this
9
+     * file (usually the repository or package root). The text can also
10
+     * be obtained on one of the following sources:
11
+     * * http://opensource.org/licenses/MIT
12
+     * * https://github.com/suralc/pvra/blob/master/LICENSE
13
+     *
14
+     * @author     suralc <[email protected]>
15
+     * @license    http://opensource.org/licenses/MIT  MIT
16
+     */
17 17
 
18 18
 namespace Pvra\InformationProvider;
19 19
 
Please login to merge, or discard this patch.
src/InformationProvider/LibraryInformationAwareInterface.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * LibraryInformationAwareInterface.php
4
- *
5
- * MIT LICENSE
6
- *
7
- * LICENSE: This source file is subject to the MIT license.
8
- * A copy of the licenses text was distributed alongside this
9
- * file (usually the repository or package root). The text can also
10
- * be obtained on one of the following sources:
11
- * * http://opensource.org/licenses/MIT
12
- * * https://github.com/suralc/pvra/blob/master/LICENSE
13
- *
14
- * @author     suralc <[email protected]>
15
- * @license    http://opensource.org/licenses/MIT  MIT
16
- */
3
+     * LibraryInformationAwareInterface.php
4
+     *
5
+     * MIT LICENSE
6
+     *
7
+     * LICENSE: This source file is subject to the MIT license.
8
+     * A copy of the licenses text was distributed alongside this
9
+     * file (usually the repository or package root). The text can also
10
+     * be obtained on one of the following sources:
11
+     * * http://opensource.org/licenses/MIT
12
+     * * https://github.com/suralc/pvra/blob/master/LICENSE
13
+     *
14
+     * @author     suralc <[email protected]>
15
+     * @license    http://opensource.org/licenses/MIT  MIT
16
+     */
17 17
 
18 18
 namespace Pvra\InformationProvider;
19 19
 
Please login to merge, or discard this patch.
src/InformationProvider/LibraryInformation.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * LibraryInformation.php
4
- *
5
- * MIT LICENSE
6
- *
7
- * LICENSE: This source file is subject to the MIT license.
8
- * A copy of the licenses text was distributed alongside this
9
- * file (usually the repository or package root). The text can also
10
- * be obtained on one of the following sources:
11
- * * http://opensource.org/licenses/MIT
12
- * * https://github.com/suralc/pvra/blob/master/LICENSE
13
- *
14
- * @author     suralc <[email protected]>
15
- * @license    http://opensource.org/licenses/MIT  MIT
16
- */
3
+     * LibraryInformation.php
4
+     *
5
+     * MIT LICENSE
6
+     *
7
+     * LICENSE: This source file is subject to the MIT license.
8
+     * A copy of the licenses text was distributed alongside this
9
+     * file (usually the repository or package root). The text can also
10
+     * be obtained on one of the following sources:
11
+     * * http://opensource.org/licenses/MIT
12
+     * * https://github.com/suralc/pvra/blob/master/LICENSE
13
+     *
14
+     * @author     suralc <[email protected]>
15
+     * @license    http://opensource.org/licenses/MIT  MIT
16
+     */
17 17
 
18 18
 namespace Pvra\InformationProvider;
19 19
 
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -27,15 +27,15 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * @var array
29 29
      */
30
-    private $additions = [];
30
+    private $additions = [ ];
31 31
     /**
32 32
      * @var array
33 33
      */
34
-    private $deprecations = [];
34
+    private $deprecations = [ ];
35 35
     /**
36 36
      * @var array
37 37
      */
38
-    private $removals = [];
38
+    private $removals = [ ];
39 39
 
40 40
     /**
41 41
      * Create a new instance and load default information
@@ -76,19 +76,19 @@  discard block
 block discarded – undo
76 76
      *
77 77
      * @param array $data Array representation of data to represent
78 78
      */
79
-    public function __construct(array $data = [])
79
+    public function __construct(array $data = [ ])
80 80
     {
81
-        if (isset($data['additions'])) {
82
-            $this->additions = $data['additions'];
81
+        if (isset($data[ 'additions' ])) {
82
+            $this->additions = $data[ 'additions' ];
83 83
         }
84
-        if (isset($data['deprecations'])) {
85
-            $this->deprecations = $data['deprecations'];
84
+        if (isset($data[ 'deprecations' ])) {
85
+            $this->deprecations = $data[ 'deprecations' ];
86 86
         }
87
-        if (isset($data['removals'])) {
88
-            $this->removals = $data['removals'];
87
+        if (isset($data[ 'removals' ])) {
88
+            $this->removals = $data[ 'removals' ];
89 89
         }
90 90
 
91
-        $baseArray = ['class' => [], 'function' => [], 'constant' => []];
91
+        $baseArray = [ 'class' => [ ], 'function' => [ ], 'constant' => [ ] ];
92 92
         $this->additions += $baseArray;
93 93
         $this->deprecations += $baseArray;
94 94
         $this->removals += $baseArray;
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
     public function mergeWith(LibraryInformationInterface $info)
113 113
     {
114 114
         $newInfo = $info->toArray();
115
-        $this->additions = array_replace_recursive($this->additions, $newInfo['additions']);
116
-        $this->deprecations = array_replace_recursive($this->deprecations, $newInfo['deprecations']);
117
-        $this->removals = array_replace_recursive($this->removals, $newInfo['removals']);
115
+        $this->additions = array_replace_recursive($this->additions, $newInfo[ 'additions' ]);
116
+        $this->deprecations = array_replace_recursive($this->deprecations, $newInfo[ 'deprecations' ]);
117
+        $this->removals = array_replace_recursive($this->removals, $newInfo[ 'removals' ]);
118 118
         return $this;
119 119
     }
120 120
 
Please login to merge, or discard this patch.
src/FileAnalyser.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * FileAnalyser.php
4
- *
5
- * MIT LICENSE
6
- *
7
- * LICENSE: This source file is subject to the MIT license.
8
- * A copy of the licenses text was distributed alongside this
9
- * file (usually the repository or package root). The text can also
10
- * be obtained through one of the following sources:
11
- * * http://opensource.org/licenses/MIT
12
- * * https://github.com/suralc/pvra/blob/master/LICENSE
13
- *
14
- * @author     suralc <[email protected]>
15
- * @license    http://opensource.org/licenses/MIT  MIT
16
- */
3
+     * FileAnalyser.php
4
+     *
5
+     * MIT LICENSE
6
+     *
7
+     * LICENSE: This source file is subject to the MIT license.
8
+     * A copy of the licenses text was distributed alongside this
9
+     * file (usually the repository or package root). The text can also
10
+     * be obtained through one of the following sources:
11
+     * * http://opensource.org/licenses/MIT
12
+     * * https://github.com/suralc/pvra/blob/master/LICENSE
13
+     *
14
+     * @author     suralc <[email protected]>
15
+     * @license    http://opensource.org/licenses/MIT  MIT
16
+     */
17 17
 namespace Pvra;
18 18
 
19 19
 /**
Please login to merge, or discard this patch.
src/Analysers/Php53Features.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Php53Features.php
4
- *
5
- * MIT LICENSE
6
- *
7
- * LICENSE: This source file is subject to the MIT license.
8
- * A copy of the licenses text was distributed alongside this
9
- * file (usually the repository or package root). The text can also
10
- * be obtained on one of the following sources:
11
- * * http://opensource.org/licenses/MIT
12
- * * https://github.com/suralc/pvra/blob/master/LICENSE
13
- *
14
- * @author     suralc <[email protected]>
15
- * @license    http://opensource.org/licenses/MIT  MIT
16
- */
3
+     * Php53Features.php
4
+     *
5
+     * MIT LICENSE
6
+     *
7
+     * LICENSE: This source file is subject to the MIT license.
8
+     * A copy of the licenses text was distributed alongside this
9
+     * file (usually the repository or package root). The text can also
10
+     * be obtained on one of the following sources:
11
+     * * http://opensource.org/licenses/MIT
12
+     * * https://github.com/suralc/pvra/blob/master/LICENSE
13
+     *
14
+     * @author     suralc <[email protected]>
15
+     * @license    http://opensource.org/licenses/MIT  MIT
16
+     */
17 17
 
18 18
 namespace Pvra\Analysers;
19 19
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         if ($this->isClassDeclarationStatement($node)) {
55 55
             $this->inClass = true;
56 56
         }
57
-        if($this->mode & self::MODE_ADDITION) {
57
+        if ($this->mode & self::MODE_ADDITION) {
58 58
             $this->detectGotoKeywordAndJumpLabel($node);
59 59
             $this->detectNamespaces($node);
60 60
             $this->detectNowDoc($node);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             $this->detectDynamicAccessToStatic($node);
66 66
             $this->detectLateStateBinding($node);
67 67
         }
68
-        if($this->mode & self::MODE_DEPRECATION) {
68
+        if ($this->mode & self::MODE_DEPRECATION) {
69 69
             $this->detectNewByReference($node);
70 70
         }
71 71
     }
@@ -99,14 +99,14 @@  discard block
 block discarded – undo
99 99
                 Reason::GOTO_KEYWORD,
100 100
                 $node->getLine(),
101 101
                 null,
102
-                ['name' => $node->name]
102
+                [ 'name' => $node->name ]
103 103
             );
104 104
         } elseif ($node instanceof Node\Stmt\Label) {
105 105
             $this->getResult()->addRequirement(
106 106
                 Reason::JUMP_LABEL,
107 107
                 $node->getLine(),
108 108
                 null,
109
-                ['name' => $node->name]
109
+                [ 'name' => $node->name ]
110 110
             );
111 111
         }
112 112
     }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                 Reason::NAMESPACE_DECLERATION,
122 122
                 $node->getLine(),
123 123
                 null,
124
-                ['name' => isset($node->name) ? $node->name->toString() : '::global::']
124
+                [ 'name' => isset($node->name) ? $node->name->toString() : '::global::' ]
125 125
             );
126 126
         } elseif ($node instanceof Node\Scalar\MagicConst\Namespace_) {
127 127
             $this->getResult()->addRequirement(Reason::NAMESPACE_MAGIC_CONSTANT, $node->getLine());
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                 Reason::NAMESPACE_IMPORT,
131 131
                 $node->getLine(),
132 132
                 null,
133
-                ['import_count' => count($node->uses)]
133
+                [ 'import_count' => count($node->uses) ]
134 134
             );
135 135
         }
136 136
     }
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                         Reason::CONST_KEYWORD_DOC_SYNTAX,
182 182
                         $const->value->getLine(),
183 183
                         null,
184
-                        ['name' => $const->name]
184
+                        [ 'name' => $const->name ]
185 185
                     );
186 186
                 }
187 187
             }
Please login to merge, or discard this patch.
src/Analysers/Php70Features.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Php70Features.php
4
- *
5
- * MIT LICENSE
6
- *
7
- * LICENSE: This source file is subject to the MIT license.
8
- * A copy of the licenses text was distributed alongside this
9
- * file (usually the repository or package root). The text can also
10
- * be obtained on one of the following sources:
11
- * * http://opensource.org/licenses/MIT
12
- * * https://github.com/suralc/pvra/blob/master/LICENSE
13
- *
14
- * @author     suralc <[email protected]>
15
- * @license    http://opensource.org/licenses/MIT  MIT
16
- */
3
+     * Php70Features.php
4
+     *
5
+     * MIT LICENSE
6
+     *
7
+     * LICENSE: This source file is subject to the MIT license.
8
+     * A copy of the licenses text was distributed alongside this
9
+     * file (usually the repository or package root). The text can also
10
+     * be obtained on one of the following sources:
11
+     * * http://opensource.org/licenses/MIT
12
+     * * https://github.com/suralc/pvra/blob/master/LICENSE
13
+     *
14
+     * @author     suralc <[email protected]>
15
+     * @license    http://opensource.org/licenses/MIT  MIT
16
+     */
17 17
 
18 18
 namespace Pvra\Analysers;
19 19
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 class Php70Features extends LanguageFeatureAnalyser implements AnalyserAwareInterface
43 43
 {
44 44
     // move both to be const once 5.6+ is mandatory
45
-    private static $reservedNames = ['string', 'int', 'float', 'bool', 'null', 'false', 'true'];
46
-    private static $softReservedNames = ['object', 'resource', 'mixed', 'numeric'];
45
+    private static $reservedNames = [ 'string', 'int', 'float', 'bool', 'null', 'false', 'true' ];
46
+    private static $softReservedNames = [ 'object', 'resource', 'mixed', 'numeric' ];
47 47
 
48 48
     /**
49 49
      * @inheritdoc
@@ -101,12 +101,12 @@  discard block
 block discarded – undo
101 101
                         Reason::PHP4_CONSTRUCTOR,
102 102
                         $method->getLine(),
103 103
                         null,
104
-                        ['name' => $method->name]
104
+                        [ 'name' => $method->name ]
105 105
                     ];
106 106
                 }
107 107
             }
108 108
             if ($possibleCtorInfo !== null) {
109
-                call_user_func_array([$this->getResult(), 'addLimit'], $possibleCtorInfo);
109
+                call_user_func_array([ $this->getResult(), 'addLimit' ], $possibleCtorInfo);
110 110
             }
111 111
         }
112 112
     }
@@ -134,9 +134,9 @@  discard block
 block discarded – undo
134 134
     {
135 135
         if ($call->name instanceof Node\Name && strcasecmp('class_alias', $call->name->getLast()) === 0
136 136
         ) {
137
-            if (isset($call->args[1]) && $call->args[1]->value instanceof Node\Scalar\String_) {
138
-                $value = $call->args[1]->value->value;
139
-                $this->handleClassName($value, $call->args[1]->value->getLine());
137
+            if (isset($call->args[ 1 ]) && $call->args[ 1 ]->value instanceof Node\Scalar\String_) {
138
+                $value = $call->args[ 1 ]->value->value;
139
+                $this->handleClassName($value, $call->args[ 1 ]->value->getLine());
140 140
             }
141 141
         }
142 142
     }
@@ -180,10 +180,10 @@  discard block
 block discarded – undo
180 180
             $baseName = baseName(str_replace('\\', '/', $name));
181 181
             if ($this->mode & self::MODE_DEPRECATION && $this->isNameSoftReserved($name)) {
182 182
                 $this->getResult()->addLimit(Reason::SOFT_RESERVED_NAME, $line, null,
183
-                    ['fqn' => $name, 'class' => $baseName]);
183
+                    [ 'fqn' => $name, 'class' => $baseName ]);
184 184
             } elseif ($this->mode & self::MODE_REMOVAL && $this->isNameReserved($name)) {
185 185
                 $this->getResult()->addLimit(Reason::RESERVED_CLASS_NAME, $line, null,
186
-                    ['fqn' => $name, 'class' => $baseName]);
186
+                    [ 'fqn' => $name, 'class' => $baseName ]);
187 187
             }
188 188
         }
189 189
     }
Please login to merge, or discard this patch.
src/Analysers/LanguageFeatureAnalyser.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * LanguageFeatureAnalyser.php
4
- *
5
- * MIT LICENSE
6
- *
7
- * LICENSE: This source file is subject to the MIT license.
8
- * A copy of the licenses text was distributed alongside this
9
- * file (usually the repository or package root). The text can also
10
- * be obtained through one of the following sources:
11
- * * http://opensource.org/licenses/MIT
12
- * * https://github.com/suralc/pvra/blob/master/LICENSE
13
- *
14
- * @author     suralc <[email protected]>
15
- * @license    http://opensource.org/licenses/MIT  MIT
16
- */
3
+     * LanguageFeatureAnalyser.php
4
+     *
5
+     * MIT LICENSE
6
+     *
7
+     * LICENSE: This source file is subject to the MIT license.
8
+     * A copy of the licenses text was distributed alongside this
9
+     * file (usually the repository or package root). The text can also
10
+     * be obtained through one of the following sources:
11
+     * * http://opensource.org/licenses/MIT
12
+     * * https://github.com/suralc/pvra/blob/master/LICENSE
13
+     *
14
+     * @author     suralc <[email protected]>
15
+     * @license    http://opensource.org/licenses/MIT  MIT
16
+     */
17 17
 namespace Pvra\Analysers;
18 18
 
19 19
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      * @param \Pvra\Analyser $analyser
65 65
      * @see setOwningAnalyser() Set the owning analyser
66 66
      */
67
-    public function __construct(array $options = [], Analyser $analyser = null)
67
+    public function __construct(array $options = [ ], Analyser $analyser = null)
68 68
     {
69 69
         $this->options = $options;
70 70
         $this->mode = $this->getOption('mode', self::MODE_ALL);
Please login to merge, or discard this patch.
src/Analysers/Php54Features.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Php54Features.php
4
- *
5
- * MIT LICENSE
6
- *
7
- * LICENSE: This source file is subject to the MIT license.
8
- * A copy of the licenses text was distributed alongside this
9
- * file (usually the repository or package root). The text can also
10
- * be obtained through one of the following sources:
11
- * * http://opensource.org/licenses/MIT
12
- * * https://github.com/suralc/pvra/blob/master/LICENSE
13
- *
14
- * @author     suralc <[email protected]>
15
- * @license    http://opensource.org/licenses/MIT  MIT
16
- */
3
+     * Php54Features.php
4
+     *
5
+     * MIT LICENSE
6
+     *
7
+     * LICENSE: This source file is subject to the MIT license.
8
+     * A copy of the licenses text was distributed alongside this
9
+     * file (usually the repository or package root). The text can also
10
+     * be obtained through one of the following sources:
11
+     * * http://opensource.org/licenses/MIT
12
+     * * https://github.com/suralc/pvra/blob/master/LICENSE
13
+     *
14
+     * @author     suralc <[email protected]>
15
+     * @license    http://opensource.org/licenses/MIT  MIT
16
+     */
17 17
 namespace Pvra\Analysers;
18 18
 
19 19
 
Please login to merge, or discard this patch.
src/Analysers/LibraryChanges.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * LibraryChanges.php
4
- *
5
- * MIT LICENSE
6
- *
7
- * LICENSE: This source file is subject to the MIT license.
8
- * A copy of the licenses text was distributed alongside this
9
- * file (usually the repository or package root). The text can also
10
- * be obtained on one of the following sources:
11
- * * http://opensource.org/licenses/MIT
12
- * * https://github.com/suralc/pvra/blob/master/LICENSE
13
- *
14
- * @author     suralc <[email protected]>
15
- * @license    http://opensource.org/licenses/MIT  MIT
16
- */
3
+     * LibraryChanges.php
4
+     *
5
+     * MIT LICENSE
6
+     *
7
+     * LICENSE: This source file is subject to the MIT license.
8
+     * A copy of the licenses text was distributed alongside this
9
+     * file (usually the repository or package root). The text can also
10
+     * be obtained on one of the following sources:
11
+     * * http://opensource.org/licenses/MIT
12
+     * * https://github.com/suralc/pvra/blob/master/LICENSE
13
+     *
14
+     * @author     suralc <[email protected]>
15
+     * @license    http://opensource.org/licenses/MIT  MIT
16
+     */
17 17
 
18 18
 namespace Pvra\Analysers;
19 19
 
Please login to merge, or discard this patch.
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param \Pvra\Analyser $analyser
46 46
      * @param \Pvra\InformationProvider\LibraryInformation $information
47 47
      */
48
-    public function __construct(array $options = [], Analyser $analyser = null, LibraryInformation $information = null)
48
+    public function __construct(array $options = [ ], Analyser $analyser = null, LibraryInformation $information = null)
49 49
     {
50 50
         parent::__construct($options, $analyser);
51 51
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             $name = (string)$name;
112 112
         }
113 113
 
114
-        return [$name, $line];
114
+        return [ $name, $line ];
115 115
     }
116 116
 
117 117
     /**
@@ -122,31 +122,31 @@  discard block
 block discarded – undo
122 122
     {
123 123
         list($name, $line) = $this->prepareNameAndLine($name, $line);
124 124
         $info = $this->getLibraryInformation()->getClassInfo($name);
125
-        if ($this->mode & self::MODE_ADDITION && $info['addition'] !== null) {
125
+        if ($this->mode & self::MODE_ADDITION && $info[ 'addition' ] !== null) {
126 126
             $this->getResult()->addArbitraryRequirement(
127
-                $info['addition'],
127
+                $info[ 'addition' ],
128 128
                 $line,
129 129
                 null,
130 130
                 Reason::LIB_CLASS_ADDITION,
131
-                ['className' => $name]
131
+                [ 'className' => $name ]
132 132
             );
133 133
         }
134
-        if ($this->mode & self::MODE_DEPRECATION && $info['deprecation'] !== null) {
134
+        if ($this->mode & self::MODE_DEPRECATION && $info[ 'deprecation' ] !== null) {
135 135
             $this->getResult()->addArbitraryLimit(
136
-                $info['deprecation'],
136
+                $info[ 'deprecation' ],
137 137
                 $line,
138 138
                 null,
139 139
                 Reason::LIB_CLASS_DEPRECATION,
140
-                ['className' => $name]
140
+                [ 'className' => $name ]
141 141
             );
142 142
         }
143
-        if ($this->mode & self::MODE_REMOVAL && $info['removal'] !== null) {
143
+        if ($this->mode & self::MODE_REMOVAL && $info[ 'removal' ] !== null) {
144 144
             $this->getResult()->addArbitraryLimit(
145
-                $info['removal'],
145
+                $info[ 'removal' ],
146 146
                 $line,
147 147
                 null,
148 148
                 Reason::LIB_CLASS_REMOVAL,
149
-                ['className' => $name]
149
+                [ 'className' => $name ]
150 150
             );
151 151
         }
152 152
     }
@@ -159,31 +159,31 @@  discard block
 block discarded – undo
159 159
     {
160 160
         list($name, $line) = $this->prepareNameAndLine($name, $line);
161 161
         $info = $this->getLibraryInformation()->getFunctionInfo($name);
162
-        if ($this->mode & self::MODE_ADDITION && $info['addition'] !== null) {
162
+        if ($this->mode & self::MODE_ADDITION && $info[ 'addition' ] !== null) {
163 163
             $this->getResult()->addArbitraryRequirement(
164
-                $info['addition'],
164
+                $info[ 'addition' ],
165 165
                 $line,
166 166
                 null,
167 167
                 Reason::LIB_FUNCTION_ADDITION,
168
-                ['functionName' => $name]
168
+                [ 'functionName' => $name ]
169 169
             );
170 170
         }
171
-        if ($this->mode & self::MODE_DEPRECATION && $info['deprecation'] !== null) {
171
+        if ($this->mode & self::MODE_DEPRECATION && $info[ 'deprecation' ] !== null) {
172 172
             $this->getResult()->addArbitraryLimit(
173
-                $info['deprecation'],
173
+                $info[ 'deprecation' ],
174 174
                 $line,
175 175
                 null,
176 176
                 Reason::LIB_FUNCTION_DEPRECATION,
177
-                ['functionName' => $name]
177
+                [ 'functionName' => $name ]
178 178
             );
179 179
         }
180
-        if ($this->mode & self::MODE_REMOVAL && $info['removal'] !== null) {
180
+        if ($this->mode & self::MODE_REMOVAL && $info[ 'removal' ] !== null) {
181 181
             $this->getResult()->addArbitraryLimit(
182
-                $info['removal'],
182
+                $info[ 'removal' ],
183 183
                 $line,
184 184
                 null,
185 185
                 Reason::LIB_FUNCTION_REMOVAL,
186
-                ['functionName' => $name]
186
+                [ 'functionName' => $name ]
187 187
             );
188 188
         }
189 189
     }
@@ -196,31 +196,31 @@  discard block
 block discarded – undo
196 196
     {
197 197
         list($name, $line) = $this->prepareNameAndLine($name, $line);
198 198
         $info = $this->getLibraryInformation()->getConstantInfo($name);
199
-        if (($this->mode & self::MODE_ADDITION) && $info['addition'] !== null) {
199
+        if (($this->mode & self::MODE_ADDITION) && $info[ 'addition' ] !== null) {
200 200
             $this->getResult()->addArbitraryRequirement(
201
-                $info['addition'],
201
+                $info[ 'addition' ],
202 202
                 $line,
203 203
                 null,
204 204
                 Reason::LIB_CONSTANT_ADDITION,
205
-                ['constantName' => $name]
205
+                [ 'constantName' => $name ]
206 206
             );
207 207
         }
208
-        if (($this->mode & self::MODE_DEPRECATION) && $info['deprecation'] !== null) {
208
+        if (($this->mode & self::MODE_DEPRECATION) && $info[ 'deprecation' ] !== null) {
209 209
             $this->getResult()->addArbitraryLimit(
210
-                $info['deprecation'],
210
+                $info[ 'deprecation' ],
211 211
                 $line,
212 212
                 null,
213 213
                 Reason::LIB_CONSTANT_DEPRECATION,
214
-                ['constantName' => $name]
214
+                [ 'constantName' => $name ]
215 215
             );
216 216
         }
217
-        if (($this->mode & self::MODE_REMOVAL) && $info['removal'] !== null) {
217
+        if (($this->mode & self::MODE_REMOVAL) && $info[ 'removal' ] !== null) {
218 218
             $this->getResult()->addArbitraryLimit(
219
-                $info['removal'],
219
+                $info[ 'removal' ],
220 220
                 $line,
221 221
                 null,
222 222
                 Reason::LIB_CONSTANT_REMOVAL,
223
-                ['constantName' => $name]
223
+                [ 'constantName' => $name ]
224 224
             );
225 225
         }
226 226
     }
@@ -256,13 +256,13 @@  discard block
 block discarded – undo
256 256
         } elseif ($node instanceof Node\Stmt\Class_
257 257
             || $node instanceof Node\Stmt\Interface_
258 258
         ) {
259
-            $names = [];
259
+            $names = [ ];
260 260
             if (!empty($node->implements)) {
261 261
                 $names += $node->implements;
262 262
             }
263 263
             if (!empty($node->extends)) {
264 264
                 if ($node->extends instanceof Name) {
265
-                    $names[] = $node->extends;
265
+                    $names[ ] = $node->extends;
266 266
                 } else {
267 267
                     $names += $node->extends;
268 268
                 }
Please login to merge, or discard this patch.