@@ -203,7 +203,8 @@ |
||
203 | 203 | } |
204 | 204 | |
205 | 205 | if (strpos($haystack, $query, $offset) !== false) |
206 | - { // stop on first true result |
|
206 | + { |
|
207 | +// stop on first true result |
|
207 | 208 | return true; |
208 | 209 | } |
209 | 210 | } |
@@ -218,8 +218,12 @@ |
||
218 | 218 | $exclusions, FileExplorer::$vcsPatterns, array(Configuration::CACHE_FOLDER) |
219 | 219 | )) |
220 | 220 | ->setIterator($fileExplorer->getExplorer()) |
221 | - ->addListener(Create::NAME, function ($e) { $this->watchListenerFunction($e); }) |
|
222 | - ->addListener(Modify::NAME, function ($e) { $this->watchListenerFunction($e); }) |
|
221 | + ->addListener(Create::NAME, function ($e) |
|
222 | + { |
|
223 | +$this->watchListenerFunction($e); }) |
|
224 | + ->addListener(Modify::NAME, function ($e) |
|
225 | + { |
|
226 | +$this->watchListenerFunction($e); }) |
|
223 | 227 | ; |
224 | 228 | |
225 | 229 | $this->output->writeln('Watch started successfully'); |
@@ -54,7 +54,9 @@ |
||
54 | 54 | private static function flatten(array $array) |
55 | 55 | { |
56 | 56 | $return = array(); |
57 | - array_walk_recursive($array, function($a) use (&$return) { $return[] = $a; }); |
|
57 | + array_walk_recursive($array, function($a) use (&$return) |
|
58 | + { |
|
59 | +$return[] = $a; }); |
|
58 | 60 | return $return; |
59 | 61 | } |
60 | 62 | } |
61 | 63 | \ No newline at end of file |
@@ -293,7 +293,9 @@ |
||
293 | 293 | */ |
294 | 294 | foreach ($this->trackedItemsFlattened as &$item) |
295 | 295 | { |
296 | - if (!Service::getParameter(BuildableCommand::USE_DRAFTS) && $item->isDraft()) { continue; } |
|
296 | + if (!Service::getParameter(BuildableCommand::USE_DRAFTS) && $item->isDraft()) |
|
297 | + { |
|
298 | +continue; } |
|
297 | 299 | |
298 | 300 | if (empty($item->getNamespace())) |
299 | 301 | { |