@@ -89,7 +89,7 @@ |
||
| 89 | 89 | /** |
| 90 | 90 | * @TODO 1.0.0 Remove support for 'base' in next major release; it has been replaced by 'baseurl' |
| 91 | 91 | * |
| 92 | - * @return mixed|null |
|
| 92 | + * @return string |
|
| 93 | 93 | */ |
| 94 | 94 | public function getBaseUrl() |
| 95 | 95 | { |
@@ -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 | } |
@@ -34,6 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * {@inheritdoc} |
| 37 | + * @param string $filePath |
|
| 37 | 38 | */ |
| 38 | 39 | public function __construct($filePath) |
| 39 | 40 | { |
@@ -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 |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * A jailed representation of CollectionManager::getCollections(). |
| 59 | 59 | * |
| 60 | - * @return JailedDocument[][] |
|
| 60 | + * @return JailedDocument[] |
|
| 61 | 61 | */ |
| 62 | 62 | public function getJailedCollections() |
| 63 | 63 | { |
@@ -109,6 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * {@inheritdoc} |
| 112 | + * @param string $filePath |
|
| 112 | 113 | */ |
| 113 | 114 | public function createNewItem($filePath) |
| 114 | 115 | { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | /** |
| 143 | - * @param SplFileInfo|string $filePath |
|
| 143 | + * @param string $filePath |
|
| 144 | 144 | * |
| 145 | 145 | * @return mixed|null |
| 146 | 146 | */ |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | /** |
| 153 | 153 | * Update the contents of a specified file. |
| 154 | 154 | * |
| 155 | - * @param SplFileInfo|string $filePath The relative path of the file |
|
| 155 | + * @param string $filePath The relative path of the file |
|
| 156 | 156 | * |
| 157 | 157 | * @return PageView |
| 158 | 158 | */ |
@@ -66,6 +66,9 @@ discard block |
||
| 66 | 66 | ); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param string $filePath |
|
| 71 | + */ |
|
| 69 | 72 | public function refreshItem($filePath) |
| 70 | 73 | { |
| 71 | 74 | return $this->handleTrackableItem($filePath, array( |
@@ -83,6 +86,7 @@ discard block |
||
| 83 | 86 | |
| 84 | 87 | /** |
| 85 | 88 | * {@inheritdoc} |
| 89 | + * @param string $filePath |
|
| 86 | 90 | */ |
| 87 | 91 | public function createNewItem($filePath) |
| 88 | 92 | { |
@@ -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'); |