@@ -83,6 +83,9 @@ discard block |
||
| 83 | 83 | $this->storage = new Storage($this->config->rootDir . DIRECTORY_SEPARATOR . $this->config->storageDir, $this->config->imagesDir, $this->config->filesDir); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @param Request $request |
|
| 88 | + */ |
|
| 86 | 89 | private function redirectMatching($request) |
| 87 | 90 | { |
| 88 | 91 | $redirects = $this->storage->getRedirects()->getRedirects(); |
@@ -112,7 +115,7 @@ discard block |
||
| 112 | 115 | * Loop through sitemap items and see if one matches the requestUri. |
| 113 | 116 | * If it does, add it tot the matchedSitemapItems array |
| 114 | 117 | * |
| 115 | - * @param $request |
|
| 118 | + * @param Request $request |
|
| 116 | 119 | */ |
| 117 | 120 | private function sitemapMatching($request) |
| 118 | 121 | { |
@@ -177,7 +180,7 @@ discard block |
||
| 177 | 180 | * @param array $parameters |
| 178 | 181 | * @param \stdClass|null $matchedSitemapItem |
| 179 | 182 | * |
| 180 | - * @return mixed |
|
| 183 | + * @return Component |
|
| 181 | 184 | * @throws \Exception |
| 182 | 185 | */ |
| 183 | 186 | private function getComponentObject($class = '', $template = '', $parameters = array(), $matchedSitemapItem) |
@@ -10,6 +10,10 @@ discard block |
||
| 10 | 10 | { |
| 11 | 11 | protected $filesDir; |
| 12 | 12 | |
| 13 | + /** |
|
| 14 | + * @param \CloudControl\Cms\storage\Repository $repository |
|
| 15 | + * @param string $filesDir |
|
| 16 | + */ |
|
| 13 | 17 | public function __construct($repository, $filesDir) |
| 14 | 18 | { |
| 15 | 19 | parent::__construct($repository); |
@@ -101,7 +105,7 @@ discard block |
||
| 101 | 105 | } |
| 102 | 106 | |
| 103 | 107 | /** |
| 104 | - * @return mixed |
|
| 108 | + * @return string |
|
| 105 | 109 | */ |
| 106 | 110 | public function getFilesDir() |
| 107 | 111 | { |