@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * @param $appVersion |
|
| 70 | + * @param string $appVersion |
|
| 71 | 71 | * |
| 72 | 72 | * @return $this |
| 73 | 73 | */ |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | * This method uses plain PHP functions like header() and echo to output |
| 129 | 129 | * the response. |
| 130 | 130 | * |
| 131 | - * @param \Exception|FlattenException $exception An \Exception instance |
|
| 131 | + * @param \Exception $exception An \Exception instance |
|
| 132 | 132 | */ |
| 133 | 133 | public function sendPhpResponse($exception) |
| 134 | 134 | { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | /** |
| 148 | 148 | * Creates the error Response associated with the given Exception. |
| 149 | 149 | * |
| 150 | - * @param \Exception|FlattenException $exception An \Exception instance |
|
| 150 | + * @param \Exception $exception An \Exception instance |
|
| 151 | 151 | * |
| 152 | 152 | * @return Response A Response instance |
| 153 | 153 | */ |
@@ -299,6 +299,10 @@ discard block |
||
| 299 | 299 | EOT; |
| 300 | 300 | } |
| 301 | 301 | |
| 302 | + /** |
|
| 303 | + * @param string $content |
|
| 304 | + * @param string $css |
|
| 305 | + */ |
|
| 302 | 306 | private function decorate($content, $css) |
| 303 | 307 | { |
| 304 | 308 | $baseStylesheet = $this->getBaseStylesheet(); |
@@ -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 | { |