@@ -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 | /** |
| 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 | { |
@@ -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 |
@@ -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'); |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | - * @param PageView[][] $pageViews |
|
| 91 | + * @param Document\TrackableDocument[] $pageViews |
|
| 92 | 92 | * @param PageView[] $pageViewsFlattened |
| 93 | 93 | */ |
| 94 | 94 | public function setPageViews(array &$pageViews, array &$pageViewsFlattened) |
@@ -109,6 +109,9 @@ discard block |
||
| 109 | 109 | // Twig parent templates |
| 110 | 110 | /// |
| 111 | 111 | |
| 112 | + /** |
|
| 113 | + * @param string $filePath |
|
| 114 | + */ |
|
| 112 | 115 | public function isImportDependency($filePath) |
| 113 | 116 | { |
| 114 | 117 | return isset($this->importDependencies[$filePath]); |
@@ -161,6 +164,9 @@ discard block |
||
| 161 | 164 | } |
| 162 | 165 | } |
| 163 | 166 | |
| 167 | + /** |
|
| 168 | + * @param string $filePath |
|
| 169 | + */ |
|
| 164 | 170 | public function compileImportDependencies($filePath) |
| 165 | 171 | { |
| 166 | 172 | foreach ($this->importDependencies[$filePath] as &$dependent) |
@@ -11,6 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | /** |
| 13 | 13 | * @param string $filePath |
| 14 | + * @return void |
|
| 14 | 15 | */ |
| 15 | 16 | public function __construct($filePath); |
| 16 | 17 | |
@@ -68,6 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * {@inheritdoc} |
| 71 | + * @param string $filePath |
|
| 71 | 72 | */ |
| 72 | 73 | public function refreshItem($filePath) |
| 73 | 74 | { |
@@ -86,6 +87,7 @@ discard block |
||
| 86 | 87 | |
| 87 | 88 | /** |
| 88 | 89 | * {@inheritdoc} |
| 90 | + * @param string $filePath |
|
| 89 | 91 | */ |
| 90 | 92 | public function createNewItem($filePath) |
| 91 | 93 | { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | /** |
| 29 | 29 | * Get all of the ContentItems grouped by Collection name. |
| 30 | 30 | * |
| 31 | - * @return ContentItem[][] |
|
| 31 | + * @return \allejo\stakx\Document\TrackableDocument[] |
|
| 32 | 32 | */ |
| 33 | 33 | public function &getCollections() |
| 34 | 34 | { |
@@ -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 | { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * Give this manager the collections we'll be using for dynamic PageViews. |
| 66 | 66 | * |
| 67 | - * @param ContentItem[][] $collections |
|
| 67 | + * @param \allejo\stakx\Document\TrackableDocument[] $collections |
|
| 68 | 68 | * |
| 69 | 69 | * @since 0.1.0 |
| 70 | 70 | */ |
@@ -73,6 +73,9 @@ discard block |
||
| 73 | 73 | $this->collections = &$collections; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | + /** |
|
| 77 | + * @param \allejo\stakx\Document\TrackableDocument[] $datasets |
|
| 78 | + */ |
|
| 76 | 79 | public function setDatasets($datasets) |
| 77 | 80 | { |
| 78 | 81 | $this->datasets = $datasets; |
@@ -86,7 +89,7 @@ discard block |
||
| 86 | 89 | * @deprecated Been replaced by getPageViewsFlattened() |
| 87 | 90 | * @since 0.1.0 |
| 88 | 91 | * |
| 89 | - * @return PageView[][] |
|
| 92 | + * @return \allejo\stakx\Document\TrackableDocument[] |
|
| 90 | 93 | */ |
| 91 | 94 | public function getAllPageViews() |
| 92 | 95 | { |
@@ -98,7 +101,7 @@ discard block |
||
| 98 | 101 | * |
| 99 | 102 | * @since 0.1.1 |
| 100 | 103 | * |
| 101 | - * @return PageView[][] |
|
| 104 | + * @return \allejo\stakx\Document\TrackableDocument[] |
|
| 102 | 105 | */ |
| 103 | 106 | public function &getPageViews() |
| 104 | 107 | { |