@@ -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 | } |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * @param InputInterface $input |
| 90 | 90 | * @param string $param |
| 91 | 91 | */ |
| 92 | - private function setServiceParameter(InputInterface &$input, $param) |
|
| 92 | + private function setServiceParameter(InputInterface & $input, $param) |
|
| 93 | 93 | { |
| 94 | 94 | Service::setParameter($param, $input->getOption($param)); |
| 95 | 95 | } |
@@ -54,7 +54,7 @@ |
||
| 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) { $return[] = $a; }); |
|
| 58 | 58 | return $return; |
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | \ No newline at end of file |
@@ -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 |
@@ -239,7 +239,7 @@ |
||
| 239 | 239 | ->setIterator($fileExplorer->getExplorer()) |
| 240 | 240 | ->addListener(Create::NAME, function ($e) { $this->watchListenerFunction($e); }) |
| 241 | 241 | ->addListener(Modify::NAME, function ($e) { $this->watchListenerFunction($e); }) |
| 242 | - ->addListener(Move::NAME, function ($e) { $this->watchListenerFunction($e); }) |
|
| 242 | + ->addListener(Move::NAME, function ($e) { $this->watchListenerFunction($e); }) |
|
| 243 | 243 | ; |
| 244 | 244 | |
| 245 | 245 | $this->output->writeln('Watch started successfully'); |
@@ -237,9 +237,15 @@ |
||
| 237 | 237 | $exclusions, FileExplorer::$vcsPatterns, array(Configuration::CACHE_FOLDER) |
| 238 | 238 | )) |
| 239 | 239 | ->setIterator($fileExplorer->getExplorer()) |
| 240 | - ->addListener(Create::NAME, function ($e) { $this->watchListenerFunction($e); }) |
|
| 241 | - ->addListener(Modify::NAME, function ($e) { $this->watchListenerFunction($e); }) |
|
| 242 | - ->addListener(Move::NAME, function ($e) { $this->watchListenerFunction($e); }) |
|
| 240 | + ->addListener(Create::NAME, function ($e) |
|
| 241 | + { |
|
| 242 | +$this->watchListenerFunction($e); }) |
|
| 243 | + ->addListener(Modify::NAME, function ($e) |
|
| 244 | + { |
|
| 245 | +$this->watchListenerFunction($e); }) |
|
| 246 | + ->addListener(Move::NAME, function ($e) |
|
| 247 | + { |
|
| 248 | +$this->watchListenerFunction($e); }) |
|
| 243 | 249 | ; |
| 244 | 250 | |
| 245 | 251 | $this->output->writeln('Watch started successfully'); |
@@ -95,6 +95,6 @@ |
||
| 95 | 95 | } |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | - return preg_replace('#(?<!:)/+#','/', join('/', $paths)); |
|
| 98 | + return preg_replace('#(?<!:)/+#', '/', join('/', $paths)); |
|
| 99 | 99 | } |
| 100 | 100 | } |
@@ -46,5 +46,5 @@ |
||
| 46 | 46 | * |
| 47 | 47 | * @return void |
| 48 | 48 | */ |
| 49 | - public function setParentPageView(PageView &$pageView); |
|
| 49 | + public function setParentPageView(PageView & $pageView); |
|
| 50 | 50 | } |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | /** |
| 103 | 103 | * {@inheritdoc} |
| 104 | 104 | */ |
| 105 | - public function setParentPageView(PageView &$pageView) |
|
| 105 | + public function setParentPageView(PageView & $pageView) |
|
| 106 | 106 | { |
| 107 | 107 | $this->pageView = &$pageView; |
| 108 | 108 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * |
| 41 | 41 | * @param RepeatableItem $repeatableItem |
| 42 | 42 | */ |
| 43 | - public function addRepeatableItem(RepeatableItem &$repeatableItem) |
|
| 43 | + public function addRepeatableItem(RepeatableItem & $repeatableItem) |
|
| 44 | 44 | { |
| 45 | 45 | $this->repeatableItems[$repeatableItem->getObjectName()] = &$repeatableItem; |
| 46 | 46 | $repeatableItem->setParentPageView($this); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * |
| 52 | 52 | * @param RepeatableItem $repeatableItem |
| 53 | 53 | */ |
| 54 | - public function delRepeatableItem(RepeatableItem &$repeatableItem) |
|
| 54 | + public function delRepeatableItem(RepeatableItem & $repeatableItem) |
|
| 55 | 55 | { |
| 56 | 56 | unset($this->repeatableItems[$repeatableItem->getObjectName()]); |
| 57 | 57 | } |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | * |
| 125 | 125 | * @param PageView $pageView |
| 126 | 126 | */ |
| 127 | - public function setParentPageView(PageView &$pageView) |
|
| 127 | + public function setParentPageView(PageView & $pageView) |
|
| 128 | 128 | { |
| 129 | 129 | $this->parentPageView = &$pageView; |
| 130 | 130 | } |