Passed
Push — master ( 97dcd1...d302fb )
by Darko
06:51
created
app/Http/Controllers/MyShowsController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         switch ($action) {
27 27
             case 'delete':
28 28
                 $show = UserSerie::getShow($this->userdata->id, $videoId);
29
-                if (! $show) {
29
+                if (!$show) {
30 30
                     return redirect()->back();
31 31
                 }
32 32
 
@@ -46,12 +46,12 @@  discard block
 block discarded – undo
46 46
                 }
47 47
 
48 48
                 $show = Video::getByVideoID($videoId);
49
-                if (! $show) {
49
+                if (!$show) {
50 50
                     return redirect()->to('myshows');
51 51
                 }
52 52
 
53 53
                 if ($action === 'doadd') {
54
-                    $category = ($request->has('category') && \is_array($request->input('category')) && ! empty($request->input('category'))) ? $request->input('category') : [];
54
+                    $category = ($request->has('category') && \is_array($request->input('category')) && !empty($request->input('category'))) ? $request->input('category') : [];
55 55
                     UserSerie::addShow($this->userdata->id, $videoId, $category);
56 56
                     if ($request->has('from')) {
57 57
                         return redirect()->to($request->input('from'));
@@ -85,12 +85,12 @@  discard block
 block discarded – undo
85 85
             case 'doedit':
86 86
                 $show = UserSerie::getShow($this->userdata->id, $videoId);
87 87
 
88
-                if (! $show) {
88
+                if (!$show) {
89 89
                     return redirect()->to('myshows');
90 90
                 }
91 91
 
92 92
                 if ($action === 'doedit') {
93
-                    $category = ($request->has('category') && \is_array($request->input('category')) && ! empty($request->input('category'))) ? $request->input('category') : [];
93
+                    $category = ($request->has('category') && \is_array($request->input('category')) && !empty($request->input('category'))) ? $request->input('category') : [];
94 94
                     UserSerie::updateShow($this->userdata->id, $videoId, $category);
95 95
                     if ($request->has('from')) {
96 96
                         return redirect()->to($request->input('from'));
@@ -136,9 +136,9 @@  discard block
 block discarded – undo
136 136
                 if ($shows !== null) {
137 137
                     foreach ($shows as $showk => $show) {
138 138
                         $showcats = explode('|', $show['categories']);
139
-                        if (\is_array($showcats) && ! empty($showcats)) {
139
+                        if (\is_array($showcats) && !empty($showcats)) {
140 140
                             foreach ($showcats as $scat) {
141
-                                if (! empty($scat)) {
141
+                                if (!empty($scat)) {
142 142
                                     $catArr[] = $categories[$scat];
143 143
                                 }
144 144
                             }
Please login to merge, or discard this patch.