@@ -14,6 +14,5 @@ |
||
14 | 14 | /** |
15 | 15 | * @author Jérôme Tamarelle <[email protected]> |
16 | 16 | */ |
17 | -class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface |
|
18 | -{ |
|
17 | +class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface { |
|
19 | 18 | } |
@@ -16,6 +16,5 @@ |
||
16 | 16 | * |
17 | 17 | * @author Jérôme Tamarelle <[email protected]> |
18 | 18 | */ |
19 | -interface ExceptionInterface extends \Throwable |
|
20 | -{ |
|
19 | +interface ExceptionInterface extends \Throwable { |
|
21 | 20 | } |
@@ -16,6 +16,5 @@ |
||
16 | 16 | * |
17 | 17 | * @author Gabriel Ostrolucký <[email protected]> |
18 | 18 | */ |
19 | -class MissingInputException extends RuntimeException implements ExceptionInterface |
|
20 | -{ |
|
19 | +class MissingInputException extends RuntimeException implements ExceptionInterface { |
|
21 | 20 | } |
@@ -16,6 +16,5 @@ |
||
16 | 16 | * |
17 | 17 | * @author Jérôme Tamarelle <[email protected]> |
18 | 18 | */ |
19 | -class InvalidOptionException extends \InvalidArgumentException implements ExceptionInterface |
|
20 | -{ |
|
19 | +class InvalidOptionException extends \InvalidArgumentException implements ExceptionInterface { |
|
21 | 20 | } |
@@ -16,8 +16,7 @@ discard block |
||
16 | 16 | * |
17 | 17 | * @author Jérôme Tamarelle <[email protected]> |
18 | 18 | */ |
19 | -class CommandNotFoundException extends \InvalidArgumentException implements ExceptionInterface |
|
20 | -{ |
|
19 | +class CommandNotFoundException extends \InvalidArgumentException implements ExceptionInterface { |
|
21 | 20 | private $alternatives; |
22 | 21 | |
23 | 22 | /** |
@@ -26,8 +25,7 @@ discard block |
||
26 | 25 | * @param int $code Exception code |
27 | 26 | * @param \Throwable|null $previous Previous exception used for the exception chaining |
28 | 27 | */ |
29 | - public function __construct(string $message, array $alternatives = [], int $code = 0, \Throwable $previous = null) |
|
30 | - { |
|
28 | + public function __construct(string $message, array $alternatives = [], int $code = 0, \Throwable $previous = null) { |
|
31 | 29 | parent::__construct($message, $code, $previous); |
32 | 30 | |
33 | 31 | $this->alternatives = $alternatives; |
@@ -36,8 +34,7 @@ discard block |
||
36 | 34 | /** |
37 | 35 | * @return string[] A list of similar defined names |
38 | 36 | */ |
39 | - public function getAlternatives() |
|
40 | - { |
|
37 | + public function getAlternatives() { |
|
41 | 38 | return $this->alternatives; |
42 | 39 | } |
43 | 40 | } |
@@ -14,6 +14,5 @@ |
||
14 | 14 | /** |
15 | 15 | * @author Jérôme Tamarelle <[email protected]> |
16 | 16 | */ |
17 | -class RuntimeException extends \RuntimeException implements ExceptionInterface |
|
18 | -{ |
|
17 | +class RuntimeException extends \RuntimeException implements ExceptionInterface { |
|
19 | 18 | } |
@@ -14,6 +14,5 @@ |
||
14 | 14 | /** |
15 | 15 | * @author Jérôme Tamarelle <[email protected]> |
16 | 16 | */ |
17 | -class LogicException extends \LogicException implements ExceptionInterface |
|
18 | -{ |
|
17 | +class LogicException extends \LogicException implements ExceptionInterface { |
|
19 | 18 | } |
@@ -16,6 +16,5 @@ |
||
16 | 16 | * |
17 | 17 | * @author Pierre du Plessis <[email protected]> |
18 | 18 | */ |
19 | -class NamespaceNotFoundException extends CommandNotFoundException |
|
20 | -{ |
|
19 | +class NamespaceNotFoundException extends CommandNotFoundException { |
|
21 | 20 | } |
@@ -22,15 +22,13 @@ discard block |
||
22 | 22 | * |
23 | 23 | * @author Fabien Potencier <[email protected]> |
24 | 24 | */ |
25 | -class HelpCommand extends Command |
|
26 | -{ |
|
25 | +class HelpCommand extends Command { |
|
27 | 26 | private $command; |
28 | 27 | |
29 | 28 | /** |
30 | 29 | * {@inheritdoc} |
31 | 30 | */ |
32 | - protected function configure() |
|
33 | - { |
|
31 | + protected function configure() { |
|
34 | 32 | $this->ignoreValidationErrors(); |
35 | 33 | |
36 | 34 | $this |
@@ -56,16 +54,14 @@ discard block |
||
56 | 54 | ; |
57 | 55 | } |
58 | 56 | |
59 | - public function setCommand(Command $command) |
|
60 | - { |
|
57 | + public function setCommand(Command $command) { |
|
61 | 58 | $this->command = $command; |
62 | 59 | } |
63 | 60 | |
64 | 61 | /** |
65 | 62 | * {@inheritdoc} |
66 | 63 | */ |
67 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
68 | - { |
|
64 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
69 | 65 | if (null === $this->command) { |
70 | 66 | $this->command = $this->getApplication()->find($input->getArgument('command_name')); |
71 | 67 | } |