| 1 | <?php |
||
| 13 | class Application extends ConsoleApplication |
||
| 14 | { |
||
| 15 | |||
| 16 | const APP_NAME = 'Inspector'; |
||
| 17 | |||
| 18 | const APP_VERSION = '0.0.1'; |
||
| 19 | |||
| 20 | const APP_DEFAULT_CONFIG = 'inspector.yml'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var IocBinder |
||
| 24 | */ |
||
| 25 | protected $binder; |
||
| 26 | |||
| 27 | public function __construct() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Returns the list of commands that the application exposes |
||
| 40 | * |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | protected function getCommands() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param InputInterface $input |
||
| 53 | * @param OutputInterface $output |
||
| 54 | * @return int |
||
|
|
|||
| 55 | */ |
||
| 56 | public function run(InputInterface $input = null, OutputInterface $output = null) |
||
| 62 | } |
||
| 63 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.