| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 25 | public function handle(ErrorEvent $event) |
||
| 26 | { |
||
| 27 | // |
||
| 28 | \Log::error('problems during optimise (company id = ' . $event->getCompany()->id . '): ' . $event->getError()); |
||
| 29 | $company = $event->getCompany(); |
||
| 30 | //$company = $event->getCompany()->fresh(); |
||
| 31 | self::sendEmail($company->email, $event->getError()); |
||
| 32 | } |
||
| 33 | |||
| 46 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.