Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function process() |
||
17 | { |
||
18 | echo "\n----- Start Pre-Commit Hook -----\n"; |
||
19 | |||
20 | $files = $this->retrieveCommitedFiles(); |
||
21 | |||
22 | $pipeline = (new Pipeline) |
||
23 | ->pipe(new LintStage) |
||
24 | ->pipe(new CsFixerStage); |
||
25 | |||
26 | $pipeline->process($files); |
||
27 | |||
28 | echo "----- Finish Pre-Commit Hook -----\n\n"; |
||
29 | } |
||
31 |