Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
45 | public function handle() |
||
46 | { |
||
47 | 3 | // get the path to composer.lock |
|
48 | $composerLock = base_path('composer.lock'); |
||
49 | |||
50 | 3 | // and feed it into the SecurityChecker |
|
51 | $checkResult = $this->checker->check($composerLock); |
||
52 | 3 | ||
53 | // then display it using the formatter provided for Symfony |
||
54 | app(SimpleFormatter::class)->displayResults($this->getOutput(), $composerLock, $checkResult); |
||
55 | |||
56 | return 0; |
||
57 | } |
||
59 |