@@ -32,7 +32,7 @@ |
||
| 32 | 32 | /** |
| 33 | 33 | * @param string $string |
| 34 | 34 | * |
| 35 | - * @return string |
|
| 35 | + * @return Uuid |
|
| 36 | 36 | */ |
| 37 | 37 | public static function fromString(string $string): string |
| 38 | 38 | { |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $middleware = []; |
| 61 | 61 | |
| 62 | 62 | foreach ($this->globalMiddleware as $globalMiddleware) { |
| 63 | - $middleware[] = $this->getContainer()->get($globalMiddleware); |
|
| 63 | + $middleware[] = $this->getContainer()->get($globalMiddleware); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | return $middleware; |
@@ -6,19 +6,19 @@ |
||
| 6 | 6 | |
| 7 | 7 | interface OutputAware |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Set an output |
|
| 11 | - * |
|
| 12 | - * @param OutputInterface $output |
|
| 13 | - * |
|
| 14 | - * @return mixed |
|
| 15 | - */ |
|
| 16 | - public function setOutput(OutputInterface $output); |
|
| 9 | + /** |
|
| 10 | + * Set an output |
|
| 11 | + * |
|
| 12 | + * @param OutputInterface $output |
|
| 13 | + * |
|
| 14 | + * @return mixed |
|
| 15 | + */ |
|
| 16 | + public function setOutput(OutputInterface $output); |
|
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * Get the output |
|
| 20 | - * |
|
| 21 | - * @return OutputInterface |
|
| 22 | - */ |
|
| 23 | - public function getOutput(); |
|
| 18 | + /** |
|
| 19 | + * Get the output |
|
| 20 | + * |
|
| 21 | + * @return OutputInterface |
|
| 22 | + */ |
|
| 23 | + public function getOutput(); |
|
| 24 | 24 | } |
| 25 | 25 | \ No newline at end of file |
@@ -4,10 +4,10 @@ |
||
| 4 | 4 | |
| 5 | 5 | abstract class Command |
| 6 | 6 | { |
| 7 | - /** |
|
| 8 | - * Execute the console command. |
|
| 9 | - * |
|
| 10 | - * @return mixed |
|
| 11 | - */ |
|
| 12 | - abstract public function handle(); |
|
| 7 | + /** |
|
| 8 | + * Execute the console command. |
|
| 9 | + * |
|
| 10 | + * @return mixed |
|
| 11 | + */ |
|
| 12 | + abstract public function handle(); |
|
| 13 | 13 | } |
| 14 | 14 | \ No newline at end of file |
@@ -4,11 +4,11 @@ |
||
| 4 | 4 | |
| 5 | 5 | class Schedule |
| 6 | 6 | { |
| 7 | - /** |
|
| 8 | - * @param string $name |
|
| 9 | - */ |
|
| 10 | - public function command(string $name) |
|
| 11 | - { |
|
| 7 | + /** |
|
| 8 | + * @param string $name |
|
| 9 | + */ |
|
| 10 | + public function command(string $name) |
|
| 11 | + { |
|
| 12 | 12 | |
| 13 | - } |
|
| 13 | + } |
|
| 14 | 14 | } |
| 15 | 15 | \ No newline at end of file |
@@ -6,31 +6,31 @@ |
||
| 6 | 6 | |
| 7 | 7 | trait OutputAwareTrait |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * @var OutputInterface |
|
| 11 | - */ |
|
| 12 | - protected $output; |
|
| 9 | + /** |
|
| 10 | + * @var OutputInterface |
|
| 11 | + */ |
|
| 12 | + protected $output; |
|
| 13 | 13 | |
| 14 | - /** |
|
| 15 | - * Set an output. |
|
| 16 | - * |
|
| 17 | - * @param OutputInterface $output |
|
| 18 | - * @return $this |
|
| 19 | - */ |
|
| 20 | - public function setOutput(OutputInterface $output) |
|
| 21 | - { |
|
| 22 | - $this->output = $output; |
|
| 14 | + /** |
|
| 15 | + * Set an output. |
|
| 16 | + * |
|
| 17 | + * @param OutputInterface $output |
|
| 18 | + * @return $this |
|
| 19 | + */ |
|
| 20 | + public function setOutput(OutputInterface $output) |
|
| 21 | + { |
|
| 22 | + $this->output = $output; |
|
| 23 | 23 | |
| 24 | - return $this; |
|
| 25 | - } |
|
| 24 | + return $this; |
|
| 25 | + } |
|
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * Get the output. |
|
| 29 | - * |
|
| 30 | - * @return OutputInterface |
|
| 31 | - */ |
|
| 32 | - public function getOutput() |
|
| 33 | - { |
|
| 34 | - return $this->output; |
|
| 35 | - } |
|
| 27 | + /** |
|
| 28 | + * Get the output. |
|
| 29 | + * |
|
| 30 | + * @return OutputInterface |
|
| 31 | + */ |
|
| 32 | + public function getOutput() |
|
| 33 | + { |
|
| 34 | + return $this->output; |
|
| 35 | + } |
|
| 36 | 36 | } |
@@ -6,17 +6,17 @@ |
||
| 6 | 6 | |
| 7 | 7 | class HttpException |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * @param Exception $e |
|
| 11 | - * |
|
| 12 | - * @return array |
|
| 13 | - */ |
|
| 14 | - public function render(Exception $e) : array |
|
| 15 | - { |
|
| 16 | - return [ |
|
| 17 | - 'error' => [ |
|
| 18 | - 'code' => $e->getCode() |
|
| 19 | - ] |
|
| 20 | - ]; |
|
| 21 | - } |
|
| 9 | + /** |
|
| 10 | + * @param Exception $e |
|
| 11 | + * |
|
| 12 | + * @return array |
|
| 13 | + */ |
|
| 14 | + public function render(Exception $e) : array |
|
| 15 | + { |
|
| 16 | + return [ |
|
| 17 | + 'error' => [ |
|
| 18 | + 'code' => $e->getCode() |
|
| 19 | + ] |
|
| 20 | + ]; |
|
| 21 | + } |
|
| 22 | 22 | } |
@@ -11,31 +11,31 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | interface RequestHandler |
| 13 | 13 | { |
| 14 | - /** |
|
| 15 | - * Check if the request is authorized to perform the action |
|
| 16 | - * |
|
| 17 | - * @param ServerRequestInterface $request |
|
| 18 | - * |
|
| 19 | - * @return bool |
|
| 20 | - */ |
|
| 21 | - public function authorized(ServerRequestInterface $request): bool; |
|
| 14 | + /** |
|
| 15 | + * Check if the request is authorized to perform the action |
|
| 16 | + * |
|
| 17 | + * @param ServerRequestInterface $request |
|
| 18 | + * |
|
| 19 | + * @return bool |
|
| 20 | + */ |
|
| 21 | + public function authorized(ServerRequestInterface $request): bool; |
|
| 22 | 22 | |
| 23 | - /** |
|
| 24 | - * Check if the request is valid to perform the action |
|
| 25 | - * |
|
| 26 | - * @param ServerRequestInterface $request |
|
| 27 | - * |
|
| 28 | - * @return bool |
|
| 29 | - */ |
|
| 30 | - public function valid(ServerRequestInterface $request): bool; |
|
| 23 | + /** |
|
| 24 | + * Check if the request is valid to perform the action |
|
| 25 | + * |
|
| 26 | + * @param ServerRequestInterface $request |
|
| 27 | + * |
|
| 28 | + * @return bool |
|
| 29 | + */ |
|
| 30 | + public function valid(ServerRequestInterface $request): bool; |
|
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * Perform the action that is requested |
|
| 34 | - * |
|
| 35 | - * @param ServerRequestInterface $request |
|
| 36 | - * @param ResponseInterface $response |
|
| 37 | - * |
|
| 38 | - * @return ResponseInterface |
|
| 39 | - */ |
|
| 40 | - public function perform(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface; |
|
| 32 | + /** |
|
| 33 | + * Perform the action that is requested |
|
| 34 | + * |
|
| 35 | + * @param ServerRequestInterface $request |
|
| 36 | + * @param ResponseInterface $response |
|
| 37 | + * |
|
| 38 | + * @return ResponseInterface |
|
| 39 | + */ |
|
| 40 | + public function perform(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface; |
|
| 41 | 41 | } |
@@ -4,5 +4,5 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface FormatterInterface |
| 6 | 6 | { |
| 7 | - public function format(\Throwable $e): array; |
|
| 7 | + public function format(\Throwable $e): array; |
|
| 8 | 8 | } |