@@ -89,10 +89,10 @@ |
||
89 | 89 | |
90 | 90 | // list of externals sources of unit test |
91 | 91 | $metric = $metricsOfUnitTest->get($classname); |
92 | - $externals = (array)$metric->get('externals'); |
|
92 | + $externals = (array) $metric->get('externals'); |
|
93 | 93 | |
94 | 94 | // global stats for each test |
95 | - $infoAboutTests[$classname] = (object)[ |
|
95 | + $infoAboutTests[$classname] = (object) [ |
|
96 | 96 | 'nbExternals' => sizeof(array_unique($externals)), |
97 | 97 | 'externals' => array_unique($externals), |
98 | 98 | 'filename' => $fileOfUnitTest, |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | // build a fingerprint of the given method |
49 | 49 | $fingerprintOfMethod = []; |
50 | - iterate_over_node($node, function ($node) use (&$fingerprintOfMethod) { |
|
50 | + iterate_over_node($node, function($node) use (&$fingerprintOfMethod) { |
|
51 | 51 | |
52 | 52 | // avoid cast |
53 | 53 | if ($node instanceof Cast) { |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | -chdir(__DIR__ . '/../../'); |
|
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; |
|
5 | + echo '[ERROR] It\'s required to run "composer install" before building PhpMetrics!'.PHP_EOL; |
|
6 | 6 | exit(1); |
7 | 7 | } |
8 | 8 | |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | if (preg_match($exclude, $file)) { |
22 | 22 | continue; |
23 | 23 | } |
24 | - $path = str_replace(__DIR__ . '/', '', $file); |
|
24 | + $path = str_replace(__DIR__.'/', '', $file); |
|
25 | 25 | $phar->addFromString($path, file_get_contents($file)); |
26 | 26 | } |
27 | 27 | |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | |
53 | 53 | function rglob($pattern = '*', $flags = 0, $path = '') |
54 | 54 | { |
55 | - $paths = glob($path . '*', GLOB_MARK | GLOB_ONLYDIR | GLOB_NOSORT); |
|
56 | - $files = glob($path . $pattern, $flags); |
|
55 | + $paths = glob($path.'*', GLOB_MARK|GLOB_ONLYDIR|GLOB_NOSORT); |
|
56 | + $files = glob($path.$pattern, $flags); |
|
57 | 57 | foreach ($paths as $path) { |
58 | 58 | $files = array_merge($files, rglob($pattern, $flags, $path)); |
59 | 59 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -require __DIR__ . '/_header.php'; ?> |
|
2 | +require __DIR__.'/_header.php'; ?> |
|
3 | 3 | |
4 | 4 | <?php |
5 | 5 | |
@@ -88,4 +88,4 @@ discard block |
||
88 | 88 | </div> |
89 | 89 | |
90 | 90 | |
91 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
92 | 91 | \ No newline at end of file |
92 | +<?php require __DIR__.'/_footer.php'; ?> |
|
93 | 93 | \ 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 | <?php |
5 | 5 | |
@@ -88,4 +88,4 @@ discard block |
||
88 | 88 | </div> |
89 | 89 | |
90 | 90 | |
91 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
92 | 91 | \ No newline at end of file |
92 | +<?php require __DIR__.'/_footer.php'; ?> |
|
93 | 93 | \ No newline at end of file |