| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function deleting($model) |
||
| 37 | { |
||
| 38 | if ($this->recordLogs()) |
||
| 39 | Log::info('[' . __METHOD__ . '()] -> User deleting model with id ' . $model->id, [ |
||
| 40 | 'id' => \Auth::id() |
||
| 41 | ]); |
||
| 42 | |||
| 43 | $destroyed =(new ImageProcessor)->destroyImageOnly($model); |
||
| 44 | |||
| 45 | if($this->recordLogs() && $destroyed) |
||
| 46 | Log::info('[' . __METHOD__ . '()] -> Image '.$model->image.' was deleted from folder'); |
||
| 47 | } |
||
| 48 | |||
| 60 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.