@@ -78,12 +78,12 @@ discard block |
||
78 | 78 | |
79 | 79 | public function testWatch() |
80 | 80 | { |
81 | - $entries = array_map(function ($entry) { |
|
81 | + $entries = array_map(function($entry) { |
|
82 | 82 | return implode('/', [__DIR__, $entry]); |
83 | 83 | }, ['src', 'tests/Suite']); |
84 | 84 | return $this |
85 | 85 | ->taskWatch() |
86 | - ->monitor($entries, function () { |
|
86 | + ->monitor($entries, function() { |
|
87 | 87 | $this->test(); |
88 | 88 | }) |
89 | 89 | ->run(); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | 'html', |
161 | 161 | implode(',', $rules), |
162 | 162 | '--reportfile', |
163 | - self::testsReportDir(['Lint'. 'phpmd.html']) |
|
163 | + self::testsReportDir(['Lint' . 'phpmd.html']) |
|
164 | 164 | ] |
165 | 165 | ]; |
166 | 166 | $this |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public function load(Pattern $pattern) |
43 | 43 | { |
44 | - return array_map(function ($entry) { |
|
44 | + return array_map(function($entry) { |
|
45 | 45 | return $this->createTile($entry['path'], $entry['parameters']); |
46 | 46 | }, $this->locator->locate($pattern)); |
47 | 47 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $this->source = $chunk; |
42 | 42 | $this->expression = $chunk; |
43 | 43 | $this->type = self::TYPE_EXACT_MATCH; |
44 | - $expression = preg_replace_callback(self::PATTERN, function ($match) { |
|
44 | + $expression = preg_replace_callback(self::PATTERN, function($match) { |
|
45 | 45 | $parameter = $match[1]; |
46 | 46 | if (in_array($parameter, $this->parameters)) { |
47 | 47 | return '(?:\w+)'; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | public function resolve(array $parameters) |
92 | 92 | { |
93 | - $resolved = array_map(function (Chunk $chunk) use ($parameters) { |
|
93 | + $resolved = array_map(function(Chunk $chunk) use ($parameters) { |
|
94 | 94 | return (string) $chunk->resolve($parameters); |
95 | 95 | }, $this->chunks); |
96 | 96 | return new Pattern(implode('/', $resolved)); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | private static function split($path) |
116 | 116 | { |
117 | - return array_filter(explode('/', trim($path, '/')), function ($item) { |
|
117 | + return array_filter(explode('/', trim($path, '/')), function($item) { |
|
118 | 118 | return $item !== ''; |
119 | 119 | }); |
120 | 120 | } |