@@ -27,7 +27,7 @@ |
||
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; |
@@ -98,7 +98,7 @@ |
||
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') |
@@ -25,7 +25,7 @@ discard block |
||
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 |
||
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 |
@@ -23,7 +23,7 @@ |
||
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 |
@@ -22,7 +22,7 @@ |
||
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); |
@@ -78,7 +78,7 @@ |
||
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 |
@@ -91,7 +91,7 @@ |
||
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; |
@@ -80,7 +80,7 @@ discard block |
||
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 |
||
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; |
@@ -48,7 +48,7 @@ |
||
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); |
@@ -67,7 +67,7 @@ |
||
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 | } |