@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | /** |
133 | 133 | * Return the dot notation view the resolver determined. |
134 | 134 | * |
135 | - * @return mixed |
|
135 | + * @return Path |
|
136 | 136 | */ |
137 | 137 | public function getPath() |
138 | 138 | { |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | /** |
143 | 143 | * Return the details of the view resolution for troubleshooting. |
144 | 144 | * |
145 | - * @return mixed |
|
145 | + * @return ViewModel |
|
146 | 146 | */ |
147 | 147 | public function debug() |
148 | 148 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * Find the most reasonable view available. |
78 | 78 | * |
79 | - * @return null |
|
79 | + * @return string|null |
|
80 | 80 | */ |
81 | 81 | public function getView() |
82 | 82 | { |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | * |
206 | 206 | * @param \Illuminate\Support\Collection $prefixes |
207 | 207 | * |
208 | - * @return mixed |
|
208 | + * @return Collection |
|
209 | 209 | */ |
210 | 210 | protected function removeControllerFromPrefixes($prefixes) |
211 | 211 | { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | /** |
66 | 66 | * Change the selected layout to something else and ready it for content. |
67 | 67 | * |
68 | - * @param $view |
|
68 | + * @param string $view |
|
69 | 69 | * |
70 | 70 | * @return $this |
71 | 71 | */ |
@@ -64,7 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * Get a valid view path save it. |
66 | 66 | * |
67 | - * @param $view |
|
67 | + * @param null|string $view |
|
68 | 68 | */ |
69 | 69 | protected function setPath($view) |
70 | 70 | { |
@@ -220,21 +220,33 @@ |
||
220 | 220 | $this->app['config']->set('jumpgate.view-resolution.load_layout', $boolean); |
221 | 221 | } |
222 | 222 | |
223 | + /** |
|
224 | + * @param string $view |
|
225 | + */ |
|
223 | 226 | private function createView($view) |
224 | 227 | { |
225 | 228 | $this->app['files']->put(__DIR__ . '/../src/views/' . $view . '.blade.php', 'something'); |
226 | 229 | } |
227 | 230 | |
231 | + /** |
|
232 | + * @param string $view |
|
233 | + */ |
|
228 | 234 | private function deleteView($view) |
229 | 235 | { |
230 | 236 | $this->app['files']->delete(__DIR__ . '/../src/views/' . $view . '.blade.php'); |
231 | 237 | } |
232 | 238 | |
239 | + /** |
|
240 | + * @param string $directory |
|
241 | + */ |
|
233 | 242 | private function makeViewDir($directory) |
234 | 243 | { |
235 | 244 | $this->app['files']->makeDirectory(__DIR__ . '/../src/views/' . $directory); |
236 | 245 | } |
237 | 246 | |
247 | + /** |
|
248 | + * @param string $directory |
|
249 | + */ |
|
238 | 250 | private function deleteViewDir($directory) |
239 | 251 | { |
240 | 252 | $this->app['files']->deleteDirectory(__DIR__ . '/../src/views/' . $directory); |