| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | 2 | public function deleteFileLink($linkID) |
|
| 32 | { |
||
| 33 | 2 | $linkData = FileLinks::findOrFail($linkID); |
|
| 34 | |||
| 35 | 2 | $this->removeLinkFiles(); |
|
| 36 | 2 | Log::notice('File Link has been deleted by '.Auth::user()->full_name.'. Link Data - ', array($linkData)); |
|
| 37 | 2 | $linkData->delete(); |
|
| 38 | |||
| 39 | 2 | return true; |
|
| 40 | } |
||
| 60 |