Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function handle() |
||
40 | { |
||
41 | $process = new Process('php '.base_path('vendor/bin/php-cs-fixer').' fix'); |
||
42 | |||
43 | try { |
||
44 | $process->run(function ($type, $buffer) { |
||
45 | if (Process::ERR === $type) { |
||
46 | $this->error($buffer); |
||
47 | } else { |
||
48 | $this->info($buffer); |
||
49 | } |
||
50 | }); |
||
51 | |||
52 | $this->line('Finished.'); |
||
53 | } catch (Exception $e) { |
||
54 | $this->error($e->getMessage()); |
||
55 | } |
||
56 | } |
||
57 | } |
||
58 |