| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 4.125 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | 2 | protected function removeLinkFiles() |
|
| 44 | { |
||
| 45 | 2 | $fileList = FileLinkFiles::where('link_id', $this->linkID); |
|
| 46 | |||
| 47 | 2 | if(!empty($fileList)) |
|
| 48 | { |
||
| 49 | 2 | foreach($fileList as $file) |
|
| 50 | { |
||
| 51 | Log::debug('File from File Link being deleted. File Data - ', array($file)); |
||
| 52 | $fileID = $file->file_id; |
||
| 53 | $file->delete(); |
||
| 54 | |||
| 55 | $this->deleteFile($fileID); |
||
| 56 | } |
||
| 60 |