1 | <?php |
||
12 | trait GithubCommand |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * Show error run llum init first. |
||
17 | * |
||
18 | * @param OutputInterface $output |
||
19 | * @param $varname |
||
20 | */ |
||
21 | protected function showErrorRunLlumInitFirst(OutputInterface $output, $varname) |
||
27 | |||
28 | /** |
||
29 | * Show message running command. |
||
30 | * |
||
31 | * @param OutputInterface $output |
||
32 | */ |
||
33 | protected function showMessageRunningCommand(OutputInterface $output, $commandName) { |
||
36 | } |
An exit expression should only be used in rare cases. For example, if you write a short command line script.
In most cases however, using an
exit
expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.