| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 63 | public static function storeNewTheme($validatedRequest) |
||
| 64 | { |
||
| 65 | $taggableBase = [ |
||
| 66 | 'taggable_id' => 0, |
||
| 67 | 'taggable_type' => 'theme', |
||
| 68 | ]; |
||
| 69 | |||
| 70 | $theme = Theme::create(array_merge($validatedRequest, $taggableBase)); |
||
| 71 | $theme->taggable_id = $theme->id; |
||
| 72 | $theme->save(); |
||
| 73 | |||
| 74 | return $theme; |
||
| 75 | } |
||
| 108 |