@@ -24,7 +24,6 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * Returns a response with a particular view loaded. |
| 26 | 26 | * |
| 27 | - * @param string $view name of the view to load |
|
| 28 | 27 | * @param array $data data to expose to the view |
| 29 | 28 | * @return \Psr\Http\Message\ResponseInterface |
| 30 | 29 | */ |
@@ -36,7 +35,7 @@ discard block |
||
| 36 | 35 | /** |
| 37 | 36 | * Create a new basic string response. |
| 38 | 37 | * |
| 39 | - * @param string $name name of the view to load |
|
| 38 | + * @param string $string |
|
| 40 | 39 | * @return \Psr\Http\Message\ResponseInterface |
| 41 | 40 | */ |
| 42 | 41 | public static function string($string) |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * class passed to it and then call __invoke() with middleware arguments. |
| 54 | 54 | * |
| 55 | 55 | * @param string $className fully qualified name of a class |
| 56 | - * @return callable |
|
| 56 | + * @return \Closure |
|
| 57 | 57 | */ |
| 58 | 58 | public static function lazy($className) |
| 59 | 59 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** |
| 71 | 71 | * Create a new FastRouter\simpleDispatcher and collect the routes. |
| 72 | 72 | * |
| 73 | - * @return FastRouter\simpleDispatcher |
|
| 73 | + * @return \Psr\Http\Message\ResponseInterface |
|
| 74 | 74 | */ |
| 75 | 75 | public static function router(ServerRequestInterface $request, $path = null) |
| 76 | 76 | { |
@@ -104,6 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * Load a given configuration file or array. |
| 106 | 106 | * |
| 107 | + * @param string $name |
|
| 107 | 108 | * @return array |
| 108 | 109 | */ |
| 109 | 110 | public static function config($name, $dir = null) |
@@ -123,7 +124,7 @@ discard block |
||
| 123 | 124 | /** |
| 124 | 125 | * Get the rendering engine. |
| 125 | 126 | * |
| 126 | - * @return void |
|
| 127 | + * @return Engine |
|
| 127 | 128 | */ |
| 128 | 129 | public static function engine() |
| 129 | 130 | { |
@@ -135,7 +136,7 @@ discard block |
||
| 135 | 136 | * |
| 136 | 137 | * @param string $view our view data. |
| 137 | 138 | * @param array $data data to pass through to our template |
| 138 | - * @return array |
|
| 139 | + * @return string |
|
| 139 | 140 | */ |
| 140 | 141 | public static function render($view, $data, $engine = false) |
| 141 | 142 | { |