| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 26 | public function compose(View $view) |
||
| 27 | { |
||
| 28 | $theme = null; |
||
| 29 | |||
| 30 | if (Auth::check()) { |
||
| 31 | $user = $this->user; |
||
| 32 | |||
| 33 | if ($user->profile) { |
||
|
|
|||
| 34 | $theme = Theme::find($user->profile->theme_id); |
||
| 35 | |||
| 36 | if ($theme->status == 0) { |
||
| 37 | $theme = Theme::find(1); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 42 | $view->with('theme', $theme); |
||
| 43 | } |
||
| 45 |