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