| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 6 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 42 | public function fire()  | 
            ||
| 43 |     { | 
            ||
| 44 | // get the path to composer.lock  | 
            ||
| 45 |         $composerLock = base_path('composer.lock'); | 
            ||
| 46 | |||
| 47 | // and feed it into the SecurityChecker  | 
            ||
| 48 | $checkResult = $this->checker->check($composerLock);  | 
            ||
| 49 | |||
| 50 |         $recipients = config('laravel-security-checker.recipients', []); | 
            ||
| 51 |         if (count($recipients) === 0) { | 
            ||
| 52 |             $this->error(__('No recipients has been configured yet!')); | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 53 | return 1;  | 
            ||
| 54 | }  | 
            ||
| 55 | |||
| 56 | Mail::to($recipients)->send(new SecurityMail($checkResult));  | 
            ||
| 57 | }  | 
            ||
| 59 |