Completed
Pull Request — master (#127)
by Abdul Malik
23:05
created
src/ReflectionParameter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     public function __debugInfo(): array
124 124
     {
125 125
         return [
126
-            'name' => (string)$this->parameterNode->var->name,
126
+            'name' => (string) $this->parameterNode->var->name,
127 127
         ];
128 128
     }
129 129
 
@@ -149,11 +149,11 @@  discard block
 block discarded – undo
149 149
             'Parameter #%d [ %s %s%s%s$%s%s ]',
150 150
             $this->parameterIndex,
151 151
             $isOptional ? '<optional>' : '<required>',
152
-            $parameterType ? ReflectionType::convertToDisplayType($parameterType) . ' ' : '',
152
+            $parameterType ? ReflectionType::convertToDisplayType($parameterType).' ' : '',
153 153
             $this->isVariadic() ? '...' : '',
154 154
             $this->isPassedByReference() ? '&' : '',
155 155
             $this->getName(),
156
-            ($isOptional && $hasDefaultValue) ? (' = ' . $defaultValue) : ''
156
+            ($isOptional && $hasDefaultValue) ? (' = '.$defaultValue) : ''
157 157
         );
158 158
     }
159 159
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     /**
249 249
      * {@inheritDoc}
250 250
      */
251
-    public function getDefaultValueConstantName(): null|string
251
+    public function getDefaultValueConstantName(): null | string
252 252
     {
253 253
         if (!$this->isDefaultValueAvailable()) {
254 254
             throw new ReflectionException('Internal error: Failed to retrieve the default value');
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     public function getName(): string
264 264
     {
265
-        return (string)$this->parameterNode->var->name;
265
+        return (string) $this->parameterNode->var->name;
266 266
     }
267 267
 
268 268
     /**
Please login to merge, or discard this patch.