Passed
Push — master ( 000248...829d2e )
by Darko
07:16 queued 13s
created
misc/testing/DB/reset_postprocessing.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
misc/testing/NZB/nzb-reorg.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
misc/testing/PostProc/updateMusicImages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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++;
Please login to merge, or discard this patch.
misc/testing/PostProc/updateGamesImages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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++;
Please login to merge, or discard this patch.
misc/testing/PostProc/updateXXXImages.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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++;
Please login to merge, or discard this patch.
misc/testing/PostProc/updateBookImages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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++;
Please login to merge, or discard this patch.
misc/testing/PostProc/check_previews.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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') {
Please login to merge, or discard this patch.
misc/testing/PostProc/getXXXSamples.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
misc/testing/PostProc/updateMovieImages.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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++;
Please login to merge, or discard this patch.