@@ -92,7 +92,7 @@ |
||
| 92 | 92 | * |
| 93 | 93 | * After the stream has been detached, the stream is in an unusable state. |
| 94 | 94 | * |
| 95 | - * @return resource|null |
|
| 95 | + * @return resource |
|
| 96 | 96 | */ |
| 97 | 97 | public function detach() |
| 98 | 98 | { |
@@ -40,6 +40,9 @@ |
||
| 40 | 40 | $this->add($uri, 'post', $callback); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $method |
|
| 45 | + */ |
|
| 43 | 46 | public function add($uri, $method, $callback) |
| 44 | 47 | { |
| 45 | 48 | $this->routes[md5($uri . $method)] = array( |
@@ -458,7 +458,7 @@ |
||
| 458 | 458 | * Get an option from the controller. |
| 459 | 459 | * |
| 460 | 460 | * @param string $option The option name |
| 461 | - * @param null $default The default value if the option does not exist |
|
| 461 | + * @param string $default The default value if the option does not exist |
|
| 462 | 462 | * |
| 463 | 463 | * @return mixed |
| 464 | 464 | */ |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | /** |
| 32 | 32 | * Given a request object, find the matching route |
| 33 | 33 | * |
| 34 | - * @param Request $request |
|
| 34 | + * @param SymfonyRequest $request |
|
| 35 | 35 | * @return \Illuminate\Routing\Route |
| 36 | 36 | */ |
| 37 | 37 | public function matchRequest(SymfonyRequest $request) |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @param ServiceLocatorInterface $serviceLocator |
| 27 | 27 | * |
| 28 | - * @return \PPI\Framework\Router\RouterListener |
|
| 28 | + * @return RequestContext |
|
| 29 | 29 | */ |
| 30 | 30 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 31 | 31 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | /** |
| 71 | 71 | * Renders a template. |
| 72 | 72 | * |
| 73 | - * @param mixed $name A template name |
|
| 73 | + * @param string $name A template name |
|
| 74 | 74 | * @param array $parameters An array of parameters to pass to the template |
| 75 | 75 | * |
| 76 | 76 | * @throws \InvalidArgumentException if the template does not exist |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | /** |
| 71 | 71 | * Renders a template. |
| 72 | 72 | * |
| 73 | - * @param mixed $name A template name |
|
| 73 | + * @param string $name A template name |
|
| 74 | 74 | * @param array $parameters An array of parameters to pass to the template |
| 75 | 75 | * |
| 76 | 76 | * @throws \InvalidArgumentException if the template does not exist |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * |
| 51 | 51 | * @param string $cachePath |
| 52 | 52 | * @param boolean $cacheEnabled |
| 53 | - * @param string|array $paths A path or an array of paths where to look for resources |
|
| 53 | + * @param string $paths A path or an array of paths where to look for resources |
|
| 54 | 54 | */ |
| 55 | 55 | public function __construct($cachePath, $cacheEnabled, $paths = array()) |
| 56 | 56 | { |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | /** |
| 403 | 403 | * @note Added for compatibility with Symfony's HttpKernel\Kernel. |
| 404 | 404 | * |
| 405 | - * @return null|ServiceManager |
|
| 405 | + * @return ServiceManager |
|
| 406 | 406 | */ |
| 407 | 407 | public function getContainer() |
| 408 | 408 | { |
@@ -650,7 +650,7 @@ discard block |
||
| 650 | 650 | /** |
| 651 | 651 | * Logs with an arbitrary level. |
| 652 | 652 | * |
| 653 | - * @param mixed $level |
|
| 653 | + * @param string $level |
|
| 654 | 654 | * @param string $message |
| 655 | 655 | * @param array $context |
| 656 | 656 | */ |