1 | <?php |
||
14 | class Launcher |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Main |
||
19 | * |
||
20 | * @param string $filepath |
||
21 | */ |
||
22 | public static function main($filepath) |
||
27 | |||
28 | /** |
||
29 | * Run |
||
30 | * |
||
31 | * @param string $filepath |
||
32 | */ |
||
33 | public function run($filepath) |
||
40 | |||
41 | /** |
||
42 | * Construct PHPCleaner instance with its dependencies |
||
43 | * |
||
44 | * @return PHPCleaner |
||
45 | */ |
||
46 | private function setup() |
||
56 | } |
||
57 |
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.