Completed
Pull Request — master (#290)
by Benjamin
04:53
created
src/Hal/Metric/BagTrait.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
     /**
52
-     * @param $key
52
+     * @param string $key
53 53
      * @return null
54 54
      */
55 55
     public function get($key)
Please login to merge, or discard this patch.
src/Hal/Metric/Class_/ClassEnumVisitor.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Hal\Metric\Class_;
3 3
 
4
-use Hal\Component\Reflected\Method;
5 4
 use Hal\Metric\ClassMetric;
6 5
 use Hal\Metric\FunctionMetric;
7 6
 use Hal\Metric\Helper\RoleOfMethodDetector;
Please login to merge, or discard this patch.
src/Hal/Metric/Class_/Complexity/CyclomaticComplexityVisitor.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Hal\Metric\Class_\Complexity;
3 3
 
4
-use Hal\Component\Reflected\Method;
5 4
 use Hal\Metric\Metrics;
6 5
 use PhpParser\Node;
7 6
 use PhpParser\Node\Stmt;
Please login to merge, or discard this patch.
src/Hal/Metric/Class_/Component/MaintainabilityIndexVisitor.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Hal\Metric\FunctionMetric;
5 5
 use Hal\Metric\Metrics;
6
-use Hoa\Ruler\Model\Bag\Scalar;
7 6
 use PhpParser\Node;
8 7
 use PhpParser\Node\Stmt;
9 8
 use PhpParser\NodeVisitorAbstract;
Please login to merge, or discard this patch.
src/Hal/Report/Html/Reporter.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,8 +109,8 @@
 block discarded – undo
109 109
     }
110 110
 
111 111
     /**
112
-     * @param $source
113
-     * @param $destination
112
+     * @param string $source
113
+     * @param string $destination
114 114
      * @return $this
115 115
      */
116 116
     public function renderPage($source, $destination, Consolidated $consolidated, $history)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 use Hal\Application\Config\Config;
5 5
 use Hal\Component\Output\Output;
6 6
 use Hal\Metric\Consolidated;
7
-use Hal\Metric\Consolided;
8 7
 use Hal\Metric\Metrics;
9 8
 
10 9
 class Reporter
Please login to merge, or discard this patch.
src/Hal/Metric/Class_/Complexity/KanDefectVisitor.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Hal\Metric\Class_\Complexity;
3 3
 
4
-use Hal\Component\Reflected\Method;
5 4
 use Hal\Metric\Metrics;
6 5
 use PhpParser\Node;
7 6
 use PhpParser\Node\Stmt;
Please login to merge, or discard this patch.
src/functions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 /**
33 33
  * @param $node
34
- * @param $callback
34
+ * @param Closure $callback
35 35
  */
36 36
 function iterate_over_node($node, $callback)
37 37
 {
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
 }
137 137
 
138 138
 /**
139
- * @param $src
140
- * @param $dst
139
+ * @param string $src
140
+ * @param string $dst
141 141
  */
142 142
 function recurse_copy($src, $dst)
143 143
 {
Please login to merge, or discard this patch.
src/Hal/Component/Ast/NodeTraverser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
21 21
 {
22 22
     protected $stopCondition;
23 23
 
24
+    /**
25
+     * @param \Closure $stopCondition
26
+     */
24 27
     public function __construct($cloneNodes = false, $stopCondition = null)
25 28
     {
26 29
         parent::__construct($cloneNodes);
Please login to merge, or discard this patch.
src/Hal/Application/Analyze.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
     /**
50 50
      * Analyze constructor.
51
-     * @param OutputInterface $output
51
+     * @param Output $output
52 52
      */
53 53
     public function __construct(Config $config, Output $output, Issuer $issuer)
54 54
     {
Please login to merge, or discard this patch.