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