| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 12 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | View Code Duplication | private function doEdit() |
|
| 52 | { |
||
| 53 | if (is_callable(array('self', 'save'))) { |
||
| 54 | $this->save(); |
||
| 55 | |||
| 56 | event(new ModelEdit($this)); |
||
| 57 | |||
| 58 | return; |
||
| 59 | } |
||
| 60 | |||
| 61 | throw new WriteableException('For a Model to be Editable the ModelAdmin must have the Save method implemented using the ModelWriting trait', 1); |
||
| 62 | } |
||
| 63 | |||
| 73 |