@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | switch ($action) { |
| 32 | 32 | case 'delete': |
| 33 | 33 | $show = UserSerie::getShow($this->userdata->id, $videoId); |
| 34 | - if (! $show) { |
|
| 34 | + if (!$show) { |
|
| 35 | 35 | return redirect()->back(); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -51,12 +51,12 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | $show = Video::getByVideoID($videoId); |
| 54 | - if (! $show) { |
|
| 54 | + if (!$show) { |
|
| 55 | 55 | return redirect()->to('myshows'); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | if ($action === 'doadd') { |
| 59 | - $category = ($request->has('category') && \is_array($request->input('category')) && ! empty($request->input('category'))) ? $request->input('category') : []; |
|
| 59 | + $category = ($request->has('category') && \is_array($request->input('category')) && !empty($request->input('category'))) ? $request->input('category') : []; |
|
| 60 | 60 | UserSerie::addShow($this->userdata->id, $videoId, $category); |
| 61 | 61 | if ($request->has('from')) { |
| 62 | 62 | return redirect()->to($request->input('from')); |
@@ -90,12 +90,12 @@ discard block |
||
| 90 | 90 | case 'doedit': |
| 91 | 91 | $show = UserSerie::getShow($this->userdata->id, $videoId); |
| 92 | 92 | |
| 93 | - if (! $show) { |
|
| 93 | + if (!$show) { |
|
| 94 | 94 | return redirect()->to('myshows'); |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | if ($action === 'doedit') { |
| 98 | - $category = ($request->has('category') && \is_array($request->input('category')) && ! empty($request->input('category'))) ? $request->input('category') : []; |
|
| 98 | + $category = ($request->has('category') && \is_array($request->input('category')) && !empty($request->input('category'))) ? $request->input('category') : []; |
|
| 99 | 99 | UserSerie::updateShow($this->userdata->id, $videoId, $category); |
| 100 | 100 | if ($request->has('from')) { |
| 101 | 101 | return redirect()->to($request->input('from')); |
@@ -140,9 +140,9 @@ discard block |
||
| 140 | 140 | $catArr = []; |
| 141 | 141 | foreach ($shows as $showk => $show) { |
| 142 | 142 | $showcats = explode('|', $show['categories']); |
| 143 | - if (\is_array($showcats) && ! empty($showcats)) { |
|
| 143 | + if (\is_array($showcats) && !empty($showcats)) { |
|
| 144 | 144 | foreach ($showcats as $scat) { |
| 145 | - if (! empty($scat)) { |
|
| 145 | + if (!empty($scat)) { |
|
| 146 | 146 | $catArr[] = $categories[$scat]; |
| 147 | 147 | } |
| 148 | 148 | } |