@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $this->setPreferences(); |
17 | 17 | $movie = new Movie(['Settings' => $this->settings]); |
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 |
||
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 |
||
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 | // Optimize data processing - do heavy lifting in backend |
51 | - $movies = $results->map(function ($result) { |
|
51 | + $movies = $results->map(function($result) { |
|
52 | 52 | // Pre-process exploded data to avoid template overhead |
53 | 53 | $result['genre'] = makeFieldLinks($result, 'genre', 'movies'); |
54 | 54 | $result['actors'] = makeFieldLinks($result, 'actors', 'movies'); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | if ($request->has('id') && ctype_digit($request->input('id'))) { |
120 | 120 | $mov = $movie->getMovieInfo($request->input('id')); |
121 | 121 | |
122 | - if (! $mov) { |
|
122 | + if (!$mov) { |
|
123 | 123 | return response()->json(['message' => 'There is no trailer for this movie.'], 404); |
124 | 124 | } |
125 | 125 |