Completed
Pull Request — master (#36)
by Emanuele
03:48
created
src/Analyzer/AstTraverser.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     private $cloneNodes = false;
17 17
 
18 18
     /**
19
-     * @param array $visitors
19
+     * @param \PHPSA\Node\Visitor\FunctionCall[] $visitors
20 20
      * @param Context $context
21 21
      */
22 22
     public function __construct(array $visitors, Context $context)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 
6 6
 namespace PHPSA\Analyzer;
7 7
 
8
-use PhpParser\NodeVisitor;
9 8
 use PHPSA\Context;
10 9
 
11 10
 class AstTraverser extends \PhpParser\NodeTraverser
Please login to merge, or discard this patch.
src/Compiler.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     /**
80 80
      * Try to find function with $namespace from pre-compiled function(s)
81 81
      *
82
-     * @param $name
82
+     * @param string $name
83 83
      * @param string|null $namespace
84 84
      * @return bool|FunctionDefinition
85 85
      */
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     /**
98 98
      * Try to find function from pre-compiled function(s)
99 99
      *
100
-     * @param $name
100
+     * @param string $name
101 101
      * @return bool|FunctionDefinition
102 102
      */
103 103
     public function getFunction($name)
Please login to merge, or discard this patch.
src/Compiler/Statement/ForeachSt.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * @param \PhpParser\Node\Stmt\Foreach_ $stmt
19 19
      * @param Context $context
20
-     * @return CompiledExpression
20
+     * @return null|boolean
21 21
      */
22 22
     public function compile($stmt, Context $context)
23 23
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 
8 8
 use PHPSA\CompiledExpression;
9 9
 use PHPSA\Context;
10
-use PHPSA\Definition\ClassMethod;
11 10
 use PHPSA\Compiler\Expression;
12 11
 
13 12
 class ForeachSt extends AbstractCompiler
Please login to merge, or discard this patch.
src/Definition/ClassDefinition.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,8 +187,8 @@
 block discarded – undo
187 187
     }
188 188
 
189 189
     /**
190
-     * @param $name
191
-     * @return CompiledExpression
190
+     * @param string $name
191
+     * @return Node\Stmt\Property
192 192
      */
193 193
     public function getProperty($name)
194 194
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 namespace PHPSA\Definition;
7 7
 
8 8
 use PHPSA\CompiledExpression;
9
-use PHPSA\Compiler\Parameter;
10 9
 use PHPSA\Context;
11 10
 use PhpParser\Node;
12 11
 use PHPSA\Variable;
Please login to merge, or discard this patch.
src/Definition/ReflectionClassMethod.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
     /**
51 51
      * @param Context $context
52
-     * @return boolean|null
52
+     * @return ReflectionClassMethod
53 53
      */
54 54
     public function compile(Context $context)
55 55
     {
Please login to merge, or discard this patch.
src/Definition/RuntimeClassDefinition.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -5,12 +5,8 @@
 block discarded – undo
5 5
 
6 6
 namespace PHPSA\Definition;
7 7
 
8
-use PHPSA\CompiledExpression;
9
-use PHPSA\Compiler\Parameter;
10 8
 use PHPSA\Context;
11
-use PhpParser\Node;
12 9
 use PHPSA\Exception\NotImplementedException;
13
-use PHPSA\Variable;
14 10
 use ReflectionClass;
15 11
 
16 12
 class RuntimeClassDefinition extends ClassDefinition
Please login to merge, or discard this patch.