Completed
Pull Request — master (#448)
by
unknown
08:31
created
phpmetrics/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.
phpmetrics/src/Hal/Component/Output/ProgressBar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             return
99 99
                 0 >= version_compare(
100 100
                     '10.0.10586',
101
-                    PHP_WINDOWS_VERSION_MAJOR . '.' . PHP_WINDOWS_VERSION_MINOR . '.' . PHP_WINDOWS_VERSION_BUILD
101
+                    PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD
102 102
                 )
103 103
                 || false !== getenv('ANSICON')
104 104
                 || 'ON' === getenv('ConEmuANSI')
Please login to merge, or discard this patch.
phpmetrics/src/Hal/Component/Output/CliOutput.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function writeln($message)
27 27
     {
28
-        $this->write(PHP_EOL . $message);
28
+        $this->write(PHP_EOL.$message);
29 29
         return $this;
30 30
     }
31 31
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function write($message)
36 36
     {
37
-        $this->quietMode||file_put_contents('php://stdout', $message);
37
+        $this->quietMode || file_put_contents('php://stdout', $message);
38 38
         return $this;
39 39
     }
40 40
 
Please login to merge, or discard this patch.
phpmetrics/src/Hal/Component/Output/TestOutput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function writeln($message)
25 25
     {
26
-        $this->write(PHP_EOL . $message);
26
+        $this->write(PHP_EOL.$message);
27 27
         return $this;
28 28
     }
29 29
 
Please login to merge, or discard this patch.
phpmetrics/src/Hal/Application/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $output = new CliOutput();
23 23
 
24 24
         // issues and debug
25
-        $issuer = (new Issuer($output));//->enable();
25
+        $issuer = (new Issuer($output)); //->enable();
26 26
 
27 27
         // config
28 28
         $config = (new Parser())->parse($argv);
Please login to merge, or discard this patch.
phpmetrics/src/Hal/Application/Analyze.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         $metrics = new Metrics();
79 79
 
80 80
         // traverse all
81
-        $whenToStop = function () {
81
+        $whenToStop = function() {
82 82
             return true;
83 83
         };
84 84
 
Please login to merge, or discard this patch.
phpmetrics/src/Hal/Application/Config/File/ConfigFileReaderJson.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     private function resolvePath($path)
92 92
     {
93 93
         if (DIRECTORY_SEPARATOR !== $path[0]) {
94
-             $path = dirname($this->filename) . DIRECTORY_SEPARATOR . $path;
94
+                $path = dirname($this->filename) . DIRECTORY_SEPARATOR . $path;
95 95
         }
96 96
 
97 97
         return $path;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         if (isset($jsonData['report']) && is_array($jsonData['report'])) {
81 81
             foreach ($jsonData['report'] as $reportType => $path) {
82 82
                 $path = $this->resolvePath($path);
83
-                $config->set('report-' . $reportType, $path);
83
+                $config->set('report-'.$reportType, $path);
84 84
             }
85 85
         }
86 86
     }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     private function resolvePath($path)
92 92
     {
93 93
         if (DIRECTORY_SEPARATOR !== $path[0]) {
94
-             $path = dirname($this->filename) . DIRECTORY_SEPARATOR . $path;
94
+             $path = dirname($this->filename).DIRECTORY_SEPARATOR.$path;
95 95
         }
96 96
 
97 97
         return $path;
Please login to merge, or discard this patch.
phpmetrics/src/Hal/Application/Config/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         }
49 49
         $groupsRaw = $config->get('groups');
50 50
 
51
-        $groups = array_map(static function (array $groupRaw): Group {
51
+        $groups = array_map(static function(array $groupRaw): Group {
52 52
             return new Group($groupRaw['name'], $groupRaw['match']);
53 53
         }, $groupsRaw);
54 54
         $config->set('groups', $groups);
Please login to merge, or discard this patch.
phpmetrics/src/Hal/Report/Violations/Xml/Reporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
                 $item->setAttribute('rule', $violation->getName());
68 68
                 $item->setAttribute('ruleset', $violation->getName());
69 69
                 $item->setAttribute('externalInfoUrl', 'http://www.phpmetrics.org/documentation/index.html');
70
-                $item->setAttribute('priority', (string)$map[$violation->getLevel()]);
70
+                $item->setAttribute('priority', (string) $map[$violation->getLevel()]);
71 71
                 $item->nodeValue = $violation->getDescription();
72 72
                 $node->appendChild($item);
73 73
             }
Please login to merge, or discard this patch.