Completed
Pull Request — master (#39)
by Aleh
03:30
created
src/Padawan/Framework/Complete/Resolver/NodeTypeResolver.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -145,6 +145,7 @@
 block discarded – undo
145 145
     }
146 146
 
147 147
     /**
148
+     * @param \PhpParser\Node $node
148 149
      * @return Chain
149 150
      */
150 151
     protected function createChain($node)
Please login to merge, or discard this patch.
src/Padawan/Parser/Walker/ScopeWalker.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -88,6 +88,10 @@
 block discarded – undo
88 88
         }
89 89
         return $line >= $startLine;
90 90
     }
91
+
92
+    /**
93
+     * @param Node $node
94
+     */
91 95
     public function getNodeLines($node)
92 96
     {
93 97
         $startLine = $endLine = -1;
Please login to merge, or discard this patch.
src/Padawan/Parser/ClassParser.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,15 +52,13 @@
 block discarded – undo
52 52
         foreach ($node->stmts AS $child) {
53 53
             if ($child instanceof ClassMethod) {
54 54
                 $classData->addMethod($this->parseMethod($child));
55
-            }
56
-            elseif ($child instanceof Property) {
55
+            } elseif ($child instanceof Property) {
57 56
                 foreach ($child->props AS $prop) {
58 57
                     $classData->addProp(
59 58
                         $this->parseProperty($prop, $child->type, $child->getAttribute('comments'))
60 59
                     );
61 60
                 }
62
-            }
63
-            elseif ($child instanceof ClassConst) {
61
+            } elseif ($child instanceof ClassConst) {
64 62
                 foreach ($child->consts AS $const) {
65 63
                     $classData->addConst($const->name);
66 64
                 }
Please login to merge, or discard this patch.
src/Padawan/Parser/ErrorFreePhpParser.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
     public function parse($content) {
9 9
         try {
10 10
             return parent::parse($content);
11
-        }
12
-        catch (\Exception $e) {
11
+        } catch (\Exception $e) {
13 12
             return $this->semValue;
14 13
         }
15 14
     }
Please login to merge, or discard this patch.
src/Padawan/Parser/ParamParser.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
     }
13 13
     public function parse(Param $node) {
14 14
         $param = new MethodParam($node->name);
15
-        if ($node->type instanceof Name)
16
-            $param->setFQCN($this->useParser->getFQCN($node->type));
17
-        else {
15
+        if ($node->type instanceof Name) {
16
+                    $param->setFQCN($this->useParser->getFQCN($node->type));
17
+        } else {
18 18
             $param->setType($node->type);
19 19
         }
20 20
         return $param;
Please login to merge, or discard this patch.
src/Padawan/Parser/CommentParser.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
     public function parse($content) {
9 9
         try {
10 10
             return parent::parse($content);
11
-        }
12
-        catch (\Exception $e) {
11
+        } catch (\Exception $e) {
13 12
             return $this->semValue;
14 13
         }
15 14
     }
Please login to merge, or discard this patch.
src/Padawan/Domain/Completion/Token.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -162,6 +162,10 @@
 block discarded – undo
162 162
     {
163 163
         $this->type = $type;
164 164
     }
165
+
166
+    /**
167
+     * @param integer $type
168
+     */
165 169
     protected function addType($type)
166 170
     {
167 171
         $this->type |= $type;
Please login to merge, or discard this patch.
src/Padawan/Domain/Scope/ClassScope.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     }
33 33
 
34 34
     /**
35
-     * @return FQCN
35
+     * @return \Padawan\Domain\Project\FQCN
36 36
      */
37 37
     public function getFQCN()
38 38
     {
Please login to merge, or discard this patch.
src/Padawan/Domain/Scope/MethodScope.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -22,6 +22,10 @@
 block discarded – undo
22 22
     {
23 23
         return $this->getParent()->getFQCN();
24 24
     }
25
+
26
+    /**
27
+     * @return \Padawan\Domain\Project\Node\ClassData
28
+     */
25 29
     public function getClass()
26 30
     {
27 31
         return $this->getParent()->getClass();
Please login to merge, or discard this patch.