Completed
Pull Request — master (#69)
by David
02:39
created
src/ReflectionProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         PropertyProperty $propertyNode = null,
68 68
         ReflectionParser $reflectionParser = null
69 69
     ) {
70
-        $this->className    = $className;
70
+        $this->className = $className;
71 71
         $this->reflectionParser = $reflectionParser ?: ReflectionEngine::getReflectionParser();
72 72
         if (!$propertyType || !$propertyNode) {
73 73
             list ($propertyType, $propertyNode) = $this->reflectionParser->parseClassProperty($className, $propertyName);
Please login to merge, or discard this patch.
src/ReflectionParameter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $this->parameterNode     = $parameterNode;
96 96
         $this->parameterIndex    = $parameterIndex;
97 97
         $this->declaringFunction = $declaringFunction;
98
-        $this->reflectionParser           = $reflectionParser ?: ReflectionEngine::getReflectionParser();
98
+        $this->reflectionParser = $reflectionParser ?: ReflectionEngine::getReflectionParser();
99 99
 
100 100
         if ($this->isDefaultValueAvailable()) {
101 101
             if ($declaringFunction instanceof \ReflectionMethod) {
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         if ($hasDefaultValue) {
137 137
             $defaultValue = $this->getDefaultValue();
138 138
             if (is_string($defaultValue) && strlen($defaultValue) > 15) {
139
-                $defaultValue = substr($defaultValue, 0, 15) . '...';
139
+                $defaultValue = substr($defaultValue, 0, 15).'...';
140 140
             }
141 141
             /* @see https://3v4l.org/DJOEb for behaviour changes */
142 142
             if (is_double($defaultValue) && fmod($defaultValue, 1.0) === 0.0) {
@@ -150,11 +150,11 @@  discard block
 block discarded – undo
150 150
             'Parameter #%d [ %s %s%s%s$%s%s ]',
151 151
             $this->parameterIndex,
152 152
             $isOptional ? '<optional>' : '<required>',
153
-            $parameterType ? ReflectionType::convertToDisplayType($parameterType) . ' ' : '',
153
+            $parameterType ? ReflectionType::convertToDisplayType($parameterType).' ' : '',
154 154
             $this->isVariadic() ? '...' : '',
155 155
             $this->isPassedByReference() ? '&' : '',
156 156
             $this->getName(),
157
-            ($isOptional && $hasDefaultValue) ? (' = ' . $defaultValue) : ''
157
+            ($isOptional && $hasDefaultValue) ? (' = '.$defaultValue) : ''
158 158
         );
159 159
     }
160 160
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 
205 205
                 throw new ReflectionException("Can not resolve a class name for parameter");
206 206
             }
207
-            $className   = $parameterType->toString();
207
+            $className = $parameterType->toString();
208 208
             return $this->reflectionParser->getClassReflection($className);
209 209
         }
210 210
 
Please login to merge, or discard this patch.