@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | $qry = DB::select('SELECT id FROM releases'.$where); |
68 | - if (! empty($qry)) { |
|
68 | + if (!empty($qry)) { |
|
69 | 69 | $total = \count($qry); |
70 | 70 | } else { |
71 | 71 | $total = 0; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $qry = DB::select('SELECT id FROM releases'.$where); |
94 | 94 | |
95 | 95 | $total = 0; |
96 | - if (! empty($qry)) { |
|
96 | + if (!empty($qry)) { |
|
97 | 97 | $total = \count($qry); |
98 | 98 | } |
99 | 99 | |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | $qry = DB::select('SELECT id FROM releases'.$where); |
121 | - if (! empty($qry)) { |
|
121 | + if (!empty($qry)) { |
|
122 | 122 | $total = \count($qry); |
123 | 123 | } else { |
124 | 124 | $total = 0; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | |
167 | 167 | $colorCli->primary('SELECT id FROM releases'.$where); |
168 | 168 | $qry = DB::select('SELECT id FROM releases'.$where); |
169 | - if (! empty($qry)) { |
|
169 | + if (!empty($qry)) { |
|
170 | 170 | $total = \count($qry); |
171 | 171 | } else { |
172 | 172 | $total = 0; |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | } |
195 | 195 | |
196 | 196 | $qry = DB::select('SELECT id FROM releases'.$where); |
197 | - if (! empty($qry)) { |
|
197 | + if (!empty($qry)) { |
|
198 | 198 | $total = \count($qry); |
199 | 199 | } else { |
200 | 200 | $total = 0; |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | } |
222 | 222 | |
223 | 223 | $qry = DB::select('SELECT id FROM releases'.$where); |
224 | - if (! empty($qry)) { |
|
224 | + if (!empty($qry)) { |
|
225 | 225 | $total = \count($qry); |
226 | 226 | } else { |
227 | 227 | $total = 0; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Blacklight\ConsoleTools; |
6 | 6 | use Blacklight\NZB; |
7 | 7 | |
8 | -if (! isset($argv[1]) || ! isset($argv[2])) { |
|
8 | +if (!isset($argv[1]) || !isset($argv[2])) { |
|
9 | 9 | exit("ERROR: You must supply the level you want to reorganize it to, and the source directory (You would use: 3 .../newznab/resources/nzb/ to move it to 3 levels deep)\n"); |
10 | 10 | } |
11 | 11 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | $qry = MusicInfo::query()->where('cover', '=', 1)->select(['id'])->get(); |
38 | 38 | foreach ($qry as $rows) { |
39 | - if (! is_file($path2covers.$rows['id'].'.jpg')) { |
|
39 | + if (!is_file($path2covers.$rows['id'].'.jpg')) { |
|
40 | 40 | MusicInfo::query()->where(['cover' => 1, 'id' => $rows['id']])->update(['cover' => 0]); |
41 | 41 | $colorCli->info($path2covers.$rows['id'].'.jpg does not exist.'); |
42 | 42 | $deleted++; |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | $qry = GamesInfo::query()->where('cover', '=', 1)->select(['id'])->get(); |
40 | 40 | foreach ($qry as $rows) { |
41 | - if (! is_file($path2covers.$rows['id'].'.jpg')) { |
|
41 | + if (!is_file($path2covers.$rows['id'].'.jpg')) { |
|
42 | 42 | GamesInfo::query()->where(['cover' => 1, 'id' => $rows['id']])->update(['cover' => 0]); |
43 | 43 | $colorCli->info($path2covers.$rows['id'].'.jpg does not exist.'); |
44 | 44 | $deleted++; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | $qry = XxxInfo::query()->where('cover', '=', 1)->select(['id'])->get(); |
52 | 52 | foreach ($qry as $rows) { |
53 | - if (! is_file($path2covers.$rows['id'].'-cover.jpg')) { |
|
53 | + if (!is_file($path2covers.$rows['id'].'-cover.jpg')) { |
|
54 | 54 | XxxInfo::query()->where(['cover' => 1, 'id' => $rows['id']])->update(['cover' => 0]); |
55 | 55 | $colorCli->info($path2covers.$rows['id'].'-cover.jpg does not exist.'); |
56 | 56 | $deleted++; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | } |
59 | 59 | $qry1 = XxxInfo::query()->where('backdrop', '=', 1)->select(['id'])->get(); |
60 | 60 | foreach ($qry1 as $rows) { |
61 | - if (! is_file($path2covers.$rows['id'].'-backdrop.jpg')) { |
|
61 | + if (!is_file($path2covers.$rows['id'].'-backdrop.jpg')) { |
|
62 | 62 | XxxInfo::query()->where(['backdrop' => 1, 'id' => $rows['id']])->update(['backdrop' => 0]); |
63 | 63 | $colorCli->info($path2covers.$rows['id'].'-backdrop.jpg does not exist.'); |
64 | 64 | $deleted++; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | $qry = BookInfo::query()->where('cover', '=', 1)->select(['id'])->get(); |
38 | 38 | foreach ($qry as $rows) { |
39 | - if (! is_file($path2covers.$rows['id'].'.jpg')) { |
|
39 | + if (!is_file($path2covers.$rows['id'].'.jpg')) { |
|
40 | 40 | BookInfo::query()->where(['cover' => 1, 'id' => $rows['id']])->update(['cover' => 0]); |
41 | 41 | $colorCli->info($path2covers.$rows['id'].'.jpg does not exist.'); |
42 | 42 | $deleted++; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $res = Release::query()->select('id', 'guid')->where(['nzbstatus' => 1, 'haspreview' => 1])->get()->toArray(); |
33 | 33 | foreach ($res as $row) { |
34 | 34 | $nzbpath = $path2preview.$row['guid'].'_thumb.jpg'; |
35 | - if (! file_exists($nzbpath)) { |
|
35 | + if (!file_exists($nzbpath)) { |
|
36 | 36 | $counterfixed++; |
37 | 37 | $colorCli->warning('Missing preview '.$nzbpath); |
38 | 38 | if ($argv[1] === 'true') { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | WHERE r.nzbstatus = 1 AND r.jpgstatus = 0 AND r.categories_id IN (%s, %s, %s) ORDER BY r.adddate DESC', Category::XXX_CLIPHD, Category::XXX_CLIPSD, Category::XXX_UHD)); |
26 | 26 | foreach ($res as $row) { |
27 | 27 | $nzbpath = $path2cover.$row['guid'].'_thumb.jpg'; |
28 | - if (! file_exists($nzbpath)) { |
|
28 | + if (!file_exists($nzbpath)) { |
|
29 | 29 | $counterfixed++; |
30 | 30 | if ($argv[1] === 'true') { |
31 | 31 | $imgpath = 'http://pic4all.eu/images/'.$row['searchname'].'_1.jpg'; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | $qry = MovieInfo::query()->where('cover', '=', 1)->select(['imdbid'])->get(); |
52 | 52 | foreach ($qry as $rows) { |
53 | - if (! is_file($path2covers.$rows['imdbid'].'-cover.jpg')) { |
|
53 | + if (!is_file($path2covers.$rows['imdbid'].'-cover.jpg')) { |
|
54 | 54 | MovieInfo::query()->where('cover', '=', 1)->where('imdbid', $rows['imdbid'])->update(['cover' => 0]); |
55 | 55 | $colorCli->info($path2covers.$rows['imdbid'].'-cover.jpg does not exist.'); |
56 | 56 | $deleted++; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | } |
59 | 59 | $qry1 = MovieInfo::query()->where('backdrop', '=', 1)->select(['imdbid'])->get(); |
60 | 60 | foreach ($qry1 as $rows) { |
61 | - if (! is_file($path2covers.$rows['imdbid'].'-backdrop.jpg')) { |
|
61 | + if (!is_file($path2covers.$rows['imdbid'].'-backdrop.jpg')) { |
|
62 | 62 | MovieInfo::query()->where('backdrop', '=', 1)->where('imdbid', $rows['imdbid'])->update(['backdrop' => 0]); |
63 | 63 | $colorCli->climate()->info($path2covers.$rows['imdbid'].'-backdrop.jpg does not exist.'); |
64 | 64 | $deleted++; |