@@ -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,14 +40,14 @@ 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 | |
47 | 47 | $rslt = $movie->getMovieRange($page, $catarray, $offset, config('nntmux.items_per_cover_page'), $orderby, -1, $this->userdata->categoryexclusions); |
48 | 48 | $results = $this->paginate($rslt ?? [], $rslt[0]->_totalcount ?? 0, config('nntmux.items_per_cover_page'), $page, $request->url(), $request->query()); |
49 | 49 | |
50 | - $movies = $results->map(function ($result) { |
|
50 | + $movies = $results->map(function($result) { |
|
51 | 51 | $result['genre'] = makeFieldLinks($result, 'genre', 'movies'); |
52 | 52 | $result['actors'] = makeFieldLinks($result, 'actors', 'movies'); |
53 | 53 | $result['director'] = makeFieldLinks($result, 'director', 'movies'); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | if ($request->has('id') && ctype_digit($request->input('id'))) { |
97 | 97 | $mov = $movie->getMovieInfo($request->input('id')); |
98 | 98 | |
99 | - if (! $mov) { |
|
99 | + if (!$mov) { |
|
100 | 100 | return response()->json(['message' => 'There is no trailer for this movie.'], 404); |
101 | 101 | } |
102 | 102 |