Completed
Push — master ( 256029...39e557 )
by personal
02:46
created
src/Hal/Component/OOP/Extractor/MethodExtractor.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      * Extracts visibility
134 134
      *
135 135
      * @param ReflectedMethod $method
136
-     * @param $n
136
+     * @param integer $n
137 137
      * @param TokenCollection $tokens
138 138
      * @return $this
139 139
      */
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * Extracts state
159 159
      *
160 160
      * @param ReflectedMethod $method
161
-     * @param $n
161
+     * @param integer $n
162 162
      * @param TokenCollection $tokens
163 163
      * @return $this
164 164
      */
@@ -262,6 +262,7 @@  discard block
 block discarded – undo
262 262
      * Extract the list of returned values
263 263
      *
264 264
      * @param ReflectedMethod $method
265
+     * @param integer $n
265 266
      * @return $this
266 267
      */
267 268
     private function extractReturns(ReflectedMethod $method, $n, TokenCollection $tokens) {
Please login to merge, or discard this patch.
src/Hal/Component/OOP/Reflected/ReflectedMethod.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     }
164 164
 
165 165
     /**
166
-     * @return array
166
+     * @return \Hal\Component\Token\TokenCollection
167 167
      */
168 168
     public function getTokens()
169 169
     {
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     }
366 366
 
367 367
     /**
368
-     * @param $class
368
+     * @param string|null $class
369 369
      * @return $this
370 370
      */
371 371
     public function pushInstanciedClass($class) {
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
     }
387 387
 
388 388
     /**
389
-     * @param $call
389
+     * @param string $call
390 390
      * @return $this
391 391
      */
392 392
     public function pushInternalCall($call)
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
     }
405 405
 
406 406
     /**
407
-     * @param $call
407
+     * @param string $call
408 408
      * @return $this
409 409
      */
410 410
     public function pushExternalCall($call)
Please login to merge, or discard this patch.
src/Hal/Component/Token/Tokenizer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
     /**
84 84
      * Clean php source
85 85
      *
86
-     * @param $content
86
+     * @param string $content
87 87
      * @return string
88 88
      */
89 89
     private function cleanup($content) {
Please login to merge, or discard this patch.
build.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 chdir(__DIR__);
3 3
 
4 4
 if (!file_exists('vendor/autoload.php')) {
5
-  echo '[ERROR] It\'s required to run "composer install" before building PhpMetrics!' . PHP_EOL;
6
-  exit(1);
5
+    echo '[ERROR] It\'s required to run "composer install" before building PhpMetrics!' . PHP_EOL;
6
+    exit(1);
7 7
 }
8 8
 
9 9
 $filename = 'build/phpmetrics.phar';
Please login to merge, or discard this patch.
src/Hal/Application/Command/Job/DoAggregatedAnalyze.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
52 52
 
53 53
 
54 54
     /**
55
-    * @inheritdoc
56
-    */
55
+     * @inheritdoc
56
+     */
57 57
     public function execute(ResultCollection $collection, ResultCollection $aggregatedResults) {
58 58
 
59 59
         $this->output->write(str_pad("\x0DGrouping results by package/directory. This will take few minutes...", 80, "\x20"));
Please login to merge, or discard this patch.
src/Hal/Component/Bounds/Result/BoundsResult.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@
 block discarded – undo
52 52
      */
53 53
     public function __construct($min, $max, $average, $sum)
54 54
     {
55
-       $this->min = $min;
56
-       $this->max = $max;
57
-       $this->average = $average;
58
-       $this->sum = $sum;
55
+        $this->min = $min;
56
+        $this->max = $max;
57
+        $this->average = $average;
58
+        $this->sum = $sum;
59 59
     }
60 60
 
61 61
     /**
Please login to merge, or discard this patch.
src/Hal/Component/File/SyntaxChecker.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $php = 'php';
32 32
 
33 33
         if (0 >= version_compare('5.4.0', PHP_VERSION)) {
34
-           $php = PHP_BINARY;
34
+            $php = PHP_BINARY;
35 35
         }
36 36
 
37 37
         $output = shell_exec(sprintf('"%s" -l %s 2>&1', $php, escapeshellarg($filename)));
Please login to merge, or discard this patch.
src/Hal/Component/Token/TokenCollection.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      */
81 81
     public function offsetExists($offset)
82 82
     {
83
-       return isset($this->tokens[$offset]);
83
+        return isset($this->tokens[$offset]);
84 84
     }
85 85
 
86 86
     /**
Please login to merge, or discard this patch.
Hal/Metrics/Design/Component/MaintainabilityIndex/MaintainabilityIndex.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@
 block discarded – undo
40 40
     {
41 41
         $result = new Result;
42 42
         $result->setMaintainabilityIndexWithoutComment(max(
43
-             (171
43
+                (171
44 44
              - (5.2 * \log($rHalstead->getVolume()))
45 45
              - (0.23 * $rMcCabe->getCyclomaticComplexityNumber())
46 46
              - (16.2 * \log($rLoc->getLogicalLoc()))
47
-             ) * 100 / 171
48
-             ,0));
47
+                ) * 100 / 171
48
+                ,0));
49 49
 
50 50
 
51 51
         // comment weight
Please login to merge, or discard this patch.