@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * Get a particular page from the api. |
| 39 | 39 | * |
| 40 | 40 | * @param string $path path of the page |
| 41 | - * @return array|false |
|
| 41 | + * @return \Psr\Http\Message\ResponseInterface|null |
|
| 42 | 42 | */ |
| 43 | 43 | public function getPage($path) |
| 44 | 44 | { |
@@ -48,6 +48,8 @@ discard block |
||
| 48 | 48 | /** |
| 49 | 49 | * Call a particular api endpoint. |
| 50 | 50 | * |
| 51 | + * @param string $method |
|
| 52 | + * @param string $url |
|
| 51 | 53 | * @return \Psr\Http\Message\ResponseInterface |
| 52 | 54 | */ |
| 53 | 55 | public function call($method, $url) |
@@ -84,7 +84,8 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * Add a single directory to the template engine. |
| 86 | 86 | * |
| 87 | - * @param string $directories directory of templates |
|
| 87 | + * @param string $directory directory of templates |
|
| 88 | + * @param string $theme |
|
| 88 | 89 | * @return $this |
| 89 | 90 | */ |
| 90 | 91 | public function registerTheme($theme, $directory) |
@@ -100,7 +101,7 @@ discard block |
||
| 100 | 101 | /** |
| 101 | 102 | * Returns the template rendering engine. |
| 102 | 103 | * |
| 103 | - * @return League\Plates\Engine |
|
| 104 | + * @return Engine |
|
| 104 | 105 | */ |
| 105 | 106 | public function getEngine() |
| 106 | 107 | { |
@@ -159,7 +160,6 @@ discard block |
||
| 159 | 160 | /** |
| 160 | 161 | * Returns the image url on the vssl server. |
| 161 | 162 | * |
| 162 | - * @param string $imageName hash.extension |
|
| 163 | 163 | * @param string $style image style name |
| 164 | 164 | * @return string |
| 165 | 165 | */ |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Vssl\Render; |
| 4 | 4 | |
| 5 | -use GuzzleHttp\Client; |
|
| 6 | -use Journey\Cache\Adapters\LocalAdapter; |
|
| 7 | 5 | use Journey\Cache\CacheAdapterInterface; |
| 8 | 6 | use Psr\Http\Message\ResponseInterface; |
| 9 | 7 | use Psr\Http\Message\ServerRequestInterface; |