Passed
Push — master ( 6181e3...9e6397 )
by Darko
07:35 queued 11s
created
app/Http/Controllers/MovieController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         $this->setPreferences();
17 17
         $movie = new Movie;
18 18
 
19
-        $moviecats = Category::getChildren(Category::MOVIE_ROOT)->map(function ($mcat) {
19
+        $moviecats = Category::getChildren(Category::MOVIE_ROOT)->map(function($mcat) {
20 20
             return ['id' => $mcat->id, 'title' => $mcat->title];
21 21
         });
22 22
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         $orderby = $request->input('ob', '');
42 42
         $ordering = $movie->getMovieOrdering();
43
-        if (! in_array($orderby, $ordering, false)) {
43
+        if (!in_array($orderby, $ordering, false)) {
44 44
             $orderby = '';
45 45
         }
46 46
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $results = $this->paginate($rslt ?? [], $rslt[0]->_totalcount ?? 0, config('nntmux.items_per_cover_page'), $page, $request->url(), $request->query());
49 49
 
50 50
         // First process the original data mapping that was removed
51
-        $movies = $results->map(function ($result) {
51
+        $movies = $results->map(function($result) {
52 52
             $result['genre'] = makeFieldLinks($result, 'genre', 'movies');
53 53
             $result['actors'] = makeFieldLinks($result, 'actors', 'movies');
54 54
             $result['director'] = makeFieldLinks($result, 'director', 'movies');
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         if ($request->has('id') && ctype_digit($request->input('id'))) {
104 104
             $mov = $movie->getMovieInfo($request->input('id'));
105 105
 
106
-            if (! $mov) {
106
+            if (!$mov) {
107 107
                 return response()->json(['message' => 'There is no trailer for this movie.'], 404);
108 108
             }
109 109
 
Please login to merge, or discard this patch.