@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | if ($node instanceof \PhpParser\Node\Name\FullyQualified) { |
93 | - return (string)$node; |
|
93 | + return (string) $node; |
|
94 | 94 | } |
95 | 95 | if ($node instanceof \PhpParser\Node\Expr\New_) { |
96 | 96 | return getNameOfNode($node->class); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | } |
102 | 102 | |
103 | 103 | if ($node instanceof \PhpParser\Node\Name) { |
104 | - return (string)implode($node->parts); |
|
104 | + return (string) implode($node->parts); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | if (isset($node->name) && $node->name instanceof \PhpParser\Node\Expr\Variable) { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | } |
130 | 130 | |
131 | 131 | if (isset($node->name)) { |
132 | - return (string)$node->name; |
|
132 | + return (string) $node->name; |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | return null; |
@@ -147,10 +147,10 @@ discard block |
||
147 | 147 | } |
148 | 148 | while (false !== ($file = readdir($dir))) { |
149 | 149 | if (($file != '.') && ($file != '..')) { |
150 | - if (is_dir($src . '/' . $file)) { |
|
151 | - recurse_copy($src . '/' . $file, $dst . '/' . $file); |
|
150 | + if (is_dir($src.'/'.$file)) { |
|
151 | + recurse_copy($src.'/'.$file, $dst.'/'.$file); |
|
152 | 152 | } else { |
153 | - copy($src . '/' . $file, $dst . '/' . $file); |
|
153 | + copy($src.'/'.$file, $dst.'/'.$file); |
|
154 | 154 | } |
155 | 155 | } |
156 | 156 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | { |
45 | 45 | $string = ''; |
46 | 46 | foreach ($this->data as $violation) { |
47 | - $string .= $violation->getName() . ','; |
|
47 | + $string .= $violation->getName().','; |
|
48 | 48 | } |
49 | 49 | return $string; |
50 | 50 | } |
@@ -25,9 +25,9 @@ |
||
25 | 25 | { |
26 | 26 | parent::__construct($cloneNodes); |
27 | 27 | |
28 | - if(null === $stopCondition) { |
|
28 | + if (null === $stopCondition) { |
|
29 | 29 | $stopCondition = function($node) { |
30 | - if($node instanceof Node\Stmt\Class_ || $node instanceof Node\Stmt\Interface_) { |
|
30 | + if ($node instanceof Node\Stmt\Class_ || $node instanceof Node\Stmt\Interface_) { |
|
31 | 31 | return false; |
32 | 32 | } |
33 | 33 |
@@ -71,14 +71,14 @@ |
||
71 | 71 | $files = array(); |
72 | 72 | foreach ($paths as $path) { |
73 | 73 | if (is_dir($path)) { |
74 | - $path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
|
74 | + $path = rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
|
75 | 75 | $directory = new RecursiveDirectoryIterator($path, $this->flags); |
76 | 76 | $iterator = new RecursiveIteratorIterator($directory); |
77 | 77 | |
78 | 78 | $filterRegex = sprintf( |
79 | 79 | '`^%s%s$`', |
80 | - !empty($this->excludedDirs) ? '((?!' . implode('|', $this->excludedDirs) . ').)+' : '.+', |
|
81 | - '\.(' . implode('|', $this->extensions) . ')' |
|
80 | + !empty($this->excludedDirs) ? '((?!'.implode('|', $this->excludedDirs).').)+' : '.+', |
|
81 | + '\.('.implode('|', $this->extensions).')' |
|
82 | 82 | ); |
83 | 83 | |
84 | 84 | $filteredIterator = new RegexIterator( |
@@ -1,17 +1,17 @@ discard block |
||
1 | -<?php require __DIR__ . '/_header.php'; ?> |
|
1 | +<?php require __DIR__.'/_header.php'; ?> |
|
2 | 2 | |
3 | 3 | <?php |
4 | 4 | $relations = []; |
5 | 5 | $classesCp = []; |
6 | 6 | foreach ($classes as $class) { |
7 | 7 | |
8 | - $class['name'] = '\\' . $class['name']; |
|
8 | + $class['name'] = '\\'.$class['name']; |
|
9 | 9 | $classesCp[$class['name']] = $class; |
10 | 10 | $classesCp[$class['name']]['externals'] = []; |
11 | 11 | |
12 | 12 | |
13 | 13 | foreach ($class['externals'] as &$ext) { |
14 | - $ext = '\\' . $ext; |
|
14 | + $ext = '\\'.$ext; |
|
15 | 15 | if (!isset($classes[$ext])) { |
16 | 16 | $classesCp[$ext] = [ |
17 | 17 | 'name' => $ext, |
@@ -22,10 +22,10 @@ discard block |
||
22 | 22 | } |
23 | 23 | } |
24 | 24 | foreach ($classesCp as $class) { |
25 | - array_push($relations, (object)[ |
|
25 | + array_push($relations, (object) [ |
|
26 | 26 | 'name' => $class['name'], |
27 | 27 | 'size' => 3000, |
28 | - 'relations' => (array)array_values(array_unique($class['externals'])), |
|
28 | + 'relations' => (array) array_values(array_unique($class['externals'])), |
|
29 | 29 | ]); |
30 | 30 | } |
31 | 31 | ?> |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | </div> |
41 | 41 | </div> |
42 | 42 | |
43 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
43 | +<?php require __DIR__.'/_footer.php'; ?> |
|
44 | 44 | |
45 | 45 | |
46 | 46 | <script type="text/javascript"> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -require __DIR__ . '/_header.php'; ?> |
|
2 | +require __DIR__.'/_header.php'; ?> |
|
3 | 3 | |
4 | 4 | <div class="row"> |
5 | 5 | <div class="column"> |
@@ -79,4 +79,4 @@ discard block |
||
79 | 79 | </div> |
80 | 80 | |
81 | 81 | |
82 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
83 | 82 | \ No newline at end of file |
83 | +<?php require __DIR__.'/_footer.php'; ?> |
|
84 | 84 | \ No newline at end of file |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -require __DIR__ . '/_header.php'; ?> |
|
2 | +require __DIR__.'/_header.php'; ?> |
|
3 | 3 | |
4 | 4 | |
5 | 5 | <?php |
@@ -12,12 +12,12 @@ discard block |
||
12 | 12 | $history = array_slice($history, -24); |
13 | 13 | $json = []; |
14 | 14 | foreach ($history as $date => $values) { |
15 | - array_push($json, (object)[ |
|
15 | + array_push($json, (object) [ |
|
16 | 16 | 'date' => $date, |
17 | 17 | 'key' => 'Additions', |
18 | 18 | 'value' => abs($values['additions']), |
19 | 19 | ]); |
20 | - array_push($json, (object)[ |
|
20 | + array_push($json, (object) [ |
|
21 | 21 | 'date' => $date, |
22 | 22 | 'key' => 'Removes', |
23 | 23 | 'value' => abs($values['removes']), |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | </div> |
95 | 95 | </div> |
96 | 96 | |
97 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
97 | +<?php require __DIR__.'/_footer.php'; ?> |
|
98 | 98 | |
99 | 99 | |
100 | 100 | <script type="text/javascript"> |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | $fullwidth = true; |
3 | -require __DIR__ . '/_header.php'; ?> |
|
3 | +require __DIR__.'/_header.php'; ?> |
|
4 | 4 | |
5 | 5 | <?php |
6 | 6 | |
@@ -37,4 +37,4 @@ discard block |
||
37 | 37 | </div> |
38 | 38 | </div> |
39 | 39 | </div> |
40 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
41 | 40 | \ No newline at end of file |
41 | +<?php require __DIR__.'/_footer.php'; ?> |
|
42 | 42 | \ No newline at end of file |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php require __DIR__ . '/_header.php'; ?> |
|
1 | +<?php require __DIR__.'/_header.php'; ?> |
|
2 | 2 | |
3 | 3 | |
4 | 4 | <?php |
@@ -19,10 +19,10 @@ discard block |
||
19 | 19 | |
20 | 20 | // 2. percentil map |
21 | 21 | $json = []; |
22 | -if(sizeof($array) > 1) { |
|
22 | +if (sizeof($array) > 1) { |
|
23 | 23 | $range = range(0.5, 1, .05); |
24 | 24 | foreach ($range as $percentil) { |
25 | - $json[] = (object)[ |
|
25 | + $json[] = (object) [ |
|
26 | 26 | 'lloc' => procentile($array, $percentil), |
27 | 27 | 'percentile' => $percentil * 100, |
28 | 28 | ]; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | </div> |
75 | 75 | |
76 | 76 | |
77 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
77 | +<?php require __DIR__.'/_footer.php'; ?> |
|
78 | 78 | |
79 | 79 | |
80 | 80 | <script> |