@@ -71,15 +71,15 @@ |
||
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%s$`', |
80 | 80 | preg_quote($path, '`'), |
81 | - !empty($this->excludedDirs) ? '((?!' . implode('|', array_map('preg_quote', $this->excludedDirs)) . ').)+' : '.+', |
|
82 | - '\.(' . implode('|', $this->extensions) . ')' |
|
81 | + !empty($this->excludedDirs) ? '((?!'.implode('|', array_map('preg_quote', $this->excludedDirs)).').)+' : '.+', |
|
82 | + '\.('.implode('|', $this->extensions).')' |
|
83 | 83 | ); |
84 | 84 | |
85 | 85 | $filteredIterator = new RegexIterator( |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | public function apply(Metric $metric) |
27 | 27 | { |
28 | - if (! $metric instanceof ClassMetric) { |
|
28 | + if (!$metric instanceof ClassMetric) { |
|
29 | 29 | return; |
30 | 30 | } |
31 | 31 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | public function apply(Metric $metric) |
27 | 27 | { |
28 | - if (! $metric instanceof ClassMetric) { |
|
28 | + if (!$metric instanceof ClassMetric) { |
|
29 | 29 | return; |
30 | 30 | } |
31 | 31 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * @param array $nodes |
47 | - * @param array|NodeVisitor[] $visitors |
|
47 | + * @param NodeVisitor[] $visitors |
|
48 | 48 | * @return array |
49 | 49 | */ |
50 | 50 | public function traverseArray(array $nodes, array $visitors) { |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | public function __construct(Mother $traverser, $stopCondition = null) |
30 | 30 | { |
31 | - if(null === $stopCondition) { |
|
31 | + if (null === $stopCondition) { |
|
32 | 32 | $stopCondition = function($node) { |
33 | 33 | if ($node instanceof Node\Stmt\Class_ || $node instanceof Node\Stmt\Interface_) { |
34 | 34 | return false; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | if (PHP_VERSION_ID >= 70000) { |
99 | - class_alias(Php7NodeTraverser::class, __NAMESPACE__ . '\\NodeTraverser'); |
|
99 | + class_alias(Php7NodeTraverser::class, __NAMESPACE__.'\\NodeTraverser'); |
|
100 | 100 | } else { |
101 | - class_alias(Php5NodeTraverser::class, __NAMESPACE__ . '\\NodeTraverser'); |
|
101 | + class_alias(Php5NodeTraverser::class, __NAMESPACE__.'\\NodeTraverser'); |
|
102 | 102 | } |