@@ -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 | */ |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * Get a particular page from the api. |
| 43 | 43 | * |
| 44 | 44 | * @param string $path path of the page |
| 45 | - * @return array|false |
|
| 45 | + * @return \Psr\Http\Message\ResponseInterface|null |
|
| 46 | 46 | */ |
| 47 | 47 | public function getPage($path) |
| 48 | 48 | { |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * Get a particular page from the api. |
| 54 | 54 | * |
| 55 | 55 | * @param array $ids unique ids of pages to fetch data for. |
| 56 | - * @return array|false |
|
| 56 | + * @return \Psr\Http\Message\ResponseInterface|null |
|
| 57 | 57 | */ |
| 58 | 58 | public function getPagesById($ids) |
| 59 | 59 | { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * Get a list of pages of a particular type from the api. |
| 68 | 68 | * |
| 69 | 69 | * @param string $type type of pages to get. |
| 70 | - * @return array |
|
| 70 | + * @return \Psr\Http\Message\ResponseInterface|null |
|
| 71 | 71 | */ |
| 72 | 72 | public function getPagesByType($type) |
| 73 | 73 | { |
@@ -77,6 +77,8 @@ discard block |
||
| 77 | 77 | /** |
| 78 | 78 | * Call a particular api endpoint. |
| 79 | 79 | * |
| 80 | + * @param string $method |
|
| 81 | + * @param string $url |
|
| 80 | 82 | * @return \Psr\Http\Message\ResponseInterface |
| 81 | 83 | */ |
| 82 | 84 | public function call($method, $url) |