Completed
Push — master ( d36faf...a71d04 )
by Alexander
22s
created
src/ReflectionParameter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     public function ___debugInfo()
122 122
     {
123 123
         return array(
124
-            'name' => (string)$this->parameterNode->var->name,
124
+            'name' => (string) $this->parameterNode->var->name,
125 125
         );
126 126
     }
127 127
 
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
         if ($hasDefaultValue) {
140 140
             $defaultValue = $this->getDefaultValue();
141 141
             if (is_string($defaultValue) && strlen($defaultValue) > 15) {
142
-                $defaultValue = substr($defaultValue, 0, 15) . '...';
142
+                $defaultValue = substr($defaultValue, 0, 15).'...';
143 143
             }
144 144
             /* @see https://3v4l.org/DJOEb for behaviour changes */
145 145
             if (is_double($defaultValue) && fmod($defaultValue, 1.0) === 0.0) {
146
-                $defaultValue = (int)$defaultValue;
146
+                $defaultValue = (int) $defaultValue;
147 147
             }
148 148
 
149 149
             $defaultValue = str_replace('\\\\', '\\', var_export($defaultValue, true));
@@ -153,11 +153,11 @@  discard block
 block discarded – undo
153 153
             'Parameter #%d [ %s %s%s%s$%s%s ]',
154 154
             $this->parameterIndex,
155 155
             $isOptional ? '<optional>' : '<required>',
156
-            $parameterType ? ReflectionType::convertToDisplayType($parameterType) . ' ' : '',
156
+            $parameterType ? ReflectionType::convertToDisplayType($parameterType).' ' : '',
157 157
             $this->isVariadic() ? '...' : '',
158 158
             $this->isPassedByReference() ? '&' : '',
159 159
             $this->getName(),
160
-            ($isOptional && $hasDefaultValue) ? (' = ' . $defaultValue) : ''
160
+            ($isOptional && $hasDefaultValue) ? (' = '.$defaultValue) : ''
161 161
         );
162 162
     }
163 163
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
                 throw new ReflectionException("Can not resolve a class name for parameter");
209 209
             }
210
-            $className   = $parameterType->toString();
210
+            $className = $parameterType->toString();
211 211
             $classOrInterfaceExists = class_exists($className, false) || interface_exists($className, false);
212 212
 
213 213
             return $classOrInterfaceExists ? new \ReflectionClass($className) : new ReflectionClass($className);
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
      */
266 266
     public function getName()
267 267
     {
268
-        return (string)$this->parameterNode->var->name;
268
+        return (string) $this->parameterNode->var->name;
269 269
     }
270 270
 
271 271
     /**
Please login to merge, or discard this patch.
src/ReflectionFileNamespace.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         $comments   = $this->namespaceNode->getAttribute('comments');
183 183
 
184 184
         if ($comments) {
185
-            $docComment = (string)$comments[0];
185
+            $docComment = (string) $comments[0];
186 186
         }
187 187
 
188 188
         return $docComment;
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
         foreach ($this->namespaceNode->stmts as $namespaceLevelNode) {
356 356
             if ($namespaceLevelNode instanceof ClassLike) {
357 357
                 $classShortName = $namespaceLevelNode->name->toString();
358
-                $className = $namespaceName ? $namespaceName .'\\' . $classShortName : $classShortName;
358
+                $className = $namespaceName ? $namespaceName.'\\'.$classShortName : $classShortName;
359 359
 
360 360
                 $namespaceLevelNode->setAttribute('fileName', $this->fileName);
361 361
                 $classes[$className] = new ReflectionClass($className, $namespaceLevelNode);
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
         foreach ($this->namespaceNode->stmts as $namespaceLevelNode) {
380 380
             if ($namespaceLevelNode instanceof Function_) {
381 381
                 $funcShortName = $namespaceLevelNode->name->toString();
382
-                $functionName  = $namespaceName ? $namespaceName .'\\' . $funcShortName : $funcShortName;
382
+                $functionName  = $namespaceName ? $namespaceName.'\\'.$funcShortName : $funcShortName;
383 383
 
384 384
                 $namespaceLevelNode->setAttribute('fileName', $this->fileName);
385 385
                 $functions[$funcShortName] = new ReflectionFunction($functionName, $namespaceLevelNode);
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
                 if ($namespaceLevelNode instanceof Expression
420 420
                     && $namespaceLevelNode->expr instanceof FuncCall
421 421
                     && $namespaceLevelNode->expr->name instanceof Name
422
-                    && (string)$namespaceLevelNode->expr->name === 'define'
422
+                    && (string) $namespaceLevelNode->expr->name === 'define'
423 423
                 ) {
424 424
                     $functionCallNode = $namespaceLevelNode->expr;
425 425
                     $expressionSolver->process($functionCallNode->args[0]->value);
Please login to merge, or discard this patch.