@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | /** |
| 455 | 455 | * @note Added for compatibility with Symfony's HttpKernel\Kernel. |
| 456 | 456 | * |
| 457 | - * @return null|ServiceManager\ServiceManager |
|
| 457 | + * @return ServiceManager\ServiceManager |
|
| 458 | 458 | */ |
| 459 | 459 | public function getContainer() |
| 460 | 460 | { |
@@ -652,7 +652,7 @@ discard block |
||
| 652 | 652 | /** |
| 653 | 653 | * Creates and initializes a ServiceManager instance. |
| 654 | 654 | * |
| 655 | - * @return ServiceManager The compiled service manager |
|
| 655 | + * @return ServiceManagerBuilder The compiled service manager |
|
| 656 | 656 | */ |
| 657 | 657 | protected function buildServiceManager() |
| 658 | 658 | { |
@@ -703,7 +703,7 @@ discard block |
||
| 703 | 703 | /** |
| 704 | 704 | * Logs with an arbitrary level. |
| 705 | 705 | * |
| 706 | - * @param mixed $level |
|
| 706 | + * @param string $level |
|
| 707 | 707 | * @param string $message |
| 708 | 708 | * @param array $context |
| 709 | 709 | */ |
@@ -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(); |
@@ -592,7 +592,7 @@ |
||
| 592 | 592 | * |
| 593 | 593 | * @throws InvalidArgumentException on invalid HTTP method. |
| 594 | 594 | * |
| 595 | - * @return bool |
|
| 595 | + * @return boolean|null |
|
| 596 | 596 | */ |
| 597 | 597 | private function validateMethod($method) |
| 598 | 598 | { |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | } |
| 444 | 444 | |
| 445 | 445 | /** |
| 446 | - * @param $reasonPhrase |
|
| 446 | + * @param string $reasonPhrase |
|
| 447 | 447 | * |
| 448 | 448 | * @return $this |
| 449 | 449 | */ |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | * @link http://tools.ietf.org/html/rfc7231#section-6 |
| 467 | 467 | * @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml |
| 468 | 468 | * |
| 469 | - * @return string|null Reason phrase, or null if unknown. |
|
| 469 | + * @return string Reason phrase, or null if unknown. |
|
| 470 | 470 | */ |
| 471 | 471 | public function getReasonPhrase() |
| 472 | 472 | { |
@@ -535,7 +535,7 @@ discard block |
||
| 535 | 535 | /** |
| 536 | 536 | * Validate a status code. |
| 537 | 537 | * |
| 538 | - * @param int|string $code |
|
| 538 | + * @param integer $code |
|
| 539 | 539 | * |
| 540 | 540 | * @throws InvalidArgumentException on an invalid status code. |
| 541 | 541 | */ |
@@ -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 | { |
@@ -589,6 +589,7 @@ |
||
| 589 | 589 | |
| 590 | 590 | /** |
| 591 | 591 | * Parse a URI into its parts, and set the properties. |
| 592 | + * @param string $uri |
|
| 592 | 593 | */ |
| 593 | 594 | private function parseUri($uri) |
| 594 | 595 | { |
@@ -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) |