Completed
Pull Request — master (#314)
by
unknown
02:03
created
src/Hal/Application/Config/File/ConfigFileReaderJson.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@
 block discarded – undo
37 37
         $jsonText = \file_get_contents($this->filename);
38 38
 
39 39
         if (false === $jsonText) {
40
-            throw new InvalidArgumentException('Cannot read configuration file ' . $this->filename . '.');
40
+            throw new InvalidArgumentException('Cannot read configuration file '.$this->filename.'.');
41 41
         }
42 42
 
43 43
         $jsonData = \json_decode($jsonText, true);
44 44
 
45 45
         if (false === $jsonData) {
46
-            throw new InvalidArgumentException('Bad json file ' . $this->filename . '.');
46
+            throw new InvalidArgumentException('Bad json file '.$this->filename.'.');
47 47
         }
48 48
 
49 49
         $config->fromArray($this->collapse($jsonData));
Please login to merge, or discard this patch.
src/Hal/Application/Config/File/ConfigFileReaderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     public static function createFromFileName($filename)
38 38
     {
39 39
         if (!\is_readable($filename)) {
40
-            throw new InvalidArgumentException('Cannot read configuration file ' . $filename . '.');
40
+            throw new InvalidArgumentException('Cannot read configuration file '.$filename.'.');
41 41
         }
42 42
 
43 43
         $ext = static::checkAllowed(\pathinfo($filename, \PATHINFO_EXTENSION));
Please login to merge, or discard this patch.
src/Hal/Metric/System/Changes/GitChanges.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * GitChanges constructor.
30 30
      *
31 31
      * @param Config $config
32
-     * @param array $files
32
+     * @param string[] $files
33 33
      */
34 34
     public function __construct(Config $config, array $files)
35 35
     {
Please login to merge, or discard this patch.
src/Hal/Metric/Class_/Coupling/ExternalsVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
 
154 154
         // Parse instantiations and static calls.
155 155
         $dependencies = [];
156
-        \iterate_over_node($stmt, function ($node) use (&$dependencies) {
156
+        \iterate_over_node($stmt, function($node) use (&$dependencies) {
157 157
             switch (true) {
158 158
                 case $node instanceof Node\Expr\New_:
159 159
                     // new MyClass
Please login to merge, or discard this patch.
src/Hal/Component/Ast/NodeTraverser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function __construct($stopCondition = null)
33 33
     {
34 34
         if (null === $stopCondition) {
35
-            $stopCondition = function (Node $node) {
35
+            $stopCondition = function(Node $node) {
36 36
                 return !($node instanceof ClassLike);
37 37
             };
38 38
         }
Please login to merge, or discard this patch.
src/Hal/Application/Analyze.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         $metrics = new Metrics();
82 82
 
83 83
         // Traverse all files.
84
-        $whenToStop = function () {
84
+        $whenToStop = function() {
85 85
             return true;
86 86
         };
87 87
 
Please login to merge, or discard this patch.
src/Hal/Component/Tree/GraphDeduplicated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function addEdge(Node $from, Node $to)
29 29
     {
30
-        $key = $from->getUniqueId() . '->' . $to->getUniqueId();
30
+        $key = $from->getUniqueId().'->'.$to->getUniqueId();
31 31
 
32 32
         if (isset($this->edgesMap[$key])) {
33 33
             return $this;
Please login to merge, or discard this patch.
src/Hal/Metric/Class_/Structural/SystemComplexityVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             $output = 0;
60 60
             $fanOut = [];
61 61
 
62
-            \iterate_over_node($node, function ($node) use (&$output, &$fanOut) {
62
+            \iterate_over_node($node, function($node) use (&$output, &$fanOut) {
63 63
                 switch (true) {
64 64
                     case $node instanceof Stmt\Return_:
65 65
                         $output++;
Please login to merge, or discard this patch.
src/Hal/Metric/Class_/Structural/LcomVisitor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
                 continue;
50 50
             }
51 51
 
52
-            $graph->insertFromName($stmt->name . '()');
53
-            $from = $graph->get($stmt->name . '()');
52
+            $graph->insertFromName($stmt->name.'()');
53
+            $from = $graph->get($stmt->name.'()');
54 54
 
55
-            \iterate_over_node($stmt, function ($node) use ($from, $graph) {
55
+            \iterate_over_node($stmt, function($node) use ($from, $graph) {
56 56
                 $nodeChecker = new NodeChecker($node);
57 57
 
58 58
                 if ($nodeChecker->isCalledByProperty()) {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
                 if ($nodeChecker->isCalledByMethodCall()) {
66 66
                     // use of method call $this->xxx();
67
-                    $name = \getNameOfNode($node->name) . '()';
67
+                    $name = \getNameOfNode($node->name).'()';
68 68
                     $graph->addEdge($from, $graph->insertFromName($name)->get($name));
69 69
                     return;
70 70
                 }
Please login to merge, or discard this patch.