Passed
Branch master (bea86d)
by Andrzej
03:44
created
src/Definition/Source/PhpDocReader.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     }
127 127
 
128 128
     /**
129
-     * @param $className
129
+     * @param string|false $className
130 130
      *
131 131
      * @return bool
132 132
      */
@@ -136,9 +136,9 @@  discard block
 block discarded – undo
136 136
     }
137 137
 
138 138
     /**
139
-     * @param $className
139
+     * @param string|false $className
140 140
      *
141
-     * @return bool|int
141
+     * @return integer
142 142
      */
143 143
     private function namespaceExists($className)
144 144
     {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      *
151 151
      * @param $value
152 152
      *
153
-     * @return array|bool|float|int|string
153
+     * @return string
154 154
      */
155 155
     private function parseValue($value)
156 156
     {
@@ -222,8 +222,8 @@  discard block
 block discarded – undo
222 222
     /**
223 223
      * Get property class parameters.
224 224
      *
225
-     * @param $property
226
-     * @param $className
225
+     * @param string $property
226
+     * @param string|false $className
227 227
      *
228 228
      * @return array|null
229 229
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     {
157 157
         $value = trim($value, ', ');
158 158
 
159
-        $isNumberOrBool = function (&$value) {
159
+        $isNumberOrBool = function(&$value) {
160 160
             if (is_numeric($value)) {
161 161
                 $value = (float) $value;
162 162
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                 return true;
168 168
             }
169 169
 
170
-            $isBool = function (&$value) {
170
+            $isBool = function(&$value) {
171 171
                 if (strtolower($value) == 'true') {
172 172
                     $value = true;
173 173
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             return $isBool($value);
187 187
         };
188 188
 
189
-        $isArrayOrOther = function (&$value) {
189
+        $isArrayOrOther = function(&$value) {
190 190
             if (substr($value, 0, 1) === '[' && substr($value, -1) === ']') {
191 191
                 $valuesArray = explode(',', substr($value, 1, -1));
192 192
                 $value = [];
Please login to merge, or discard this patch.
src/Definition/Source/Autowiring.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             return;
30 30
         }
31 31
 
32
-        $autowiring = function ($name) {
32
+        $autowiring = function($name) {
33 33
             $class = new \ReflectionClass($name);
34 34
 
35 35
             $constructor = $class->getConstructor();
Please login to merge, or discard this patch.