Completed
Pull Request — master (#127)
by Abdul Malik
23:36
created
src/ReflectionFileNamespace.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -165,13 +165,13 @@  discard block
 block discarded – undo
165 165
      *
166 166
      * @return string|false The doc comment if it exists, otherwise "false"
167 167
      */
168
-    public function getDocComment(): string|false
168
+    public function getDocComment(): string | false
169 169
     {
170 170
         $docComment = false;
171 171
         $comments   = $this->namespaceNode->getAttribute('comments');
172 172
 
173 173
         if ($comments) {
174
-            $docComment = (string)$comments[0];
174
+            $docComment = (string) $comments[0];
175 175
         }
176 176
 
177 177
         return $docComment;
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
         foreach ($this->namespaceNode->stmts as $namespaceLevelNode) {
319 319
             if ($namespaceLevelNode instanceof ClassLike) {
320 320
                 $classShortName = $namespaceLevelNode->name->toString();
321
-                $className = $namespaceName ? $namespaceName .'\\' . $classShortName : $classShortName;
321
+                $className = $namespaceName ? $namespaceName.'\\'.$classShortName : $classShortName;
322 322
 
323 323
                 $namespaceLevelNode->setAttribute('fileName', $this->fileName);
324 324
                 $classes[$className] = new ReflectionClass($className, $namespaceLevelNode);
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         foreach ($this->namespaceNode->stmts as $namespaceLevelNode) {
343 343
             if ($namespaceLevelNode instanceof Function_) {
344 344
                 $funcShortName = $namespaceLevelNode->name->toString();
345
-                $functionName  = $namespaceName ? $namespaceName .'\\' . $funcShortName : $funcShortName;
345
+                $functionName  = $namespaceName ? $namespaceName.'\\'.$funcShortName : $funcShortName;
346 346
 
347 347
                 $namespaceLevelNode->setAttribute('fileName', $this->fileName);
348 348
                 $functions[$funcShortName] = new ReflectionFunction($functionName, $namespaceLevelNode);
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
                 if ($namespaceLevelNode instanceof Expression
383 383
                     && $namespaceLevelNode->expr instanceof FuncCall
384 384
                     && $namespaceLevelNode->expr->name instanceof Name
385
-                    && (string)$namespaceLevelNode->expr->name === 'define'
385
+                    && (string) $namespaceLevelNode->expr->name === 'define'
386 386
                 ) {
387 387
                     $functionCallNode = $namespaceLevelNode->expr;
388 388
                     $expressionSolver->process($functionCallNode->args[0]->value);
Please login to merge, or discard this patch.