Passed
Push — master ( 844117...ea6c18 )
by Darko
03:42
created
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.
misc/testing/PostProc/updateConsoleImages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
 $qry = ConsoleInfo::query()->where('cover', '=', 1)->value('id');
43 43
 foreach ($qry as $rows) {
44
-    if (! is_file($path2covers.$rows['id'].'.jpg')) {
44
+    if (!is_file($path2covers.$rows['id'].'.jpg')) {
45 45
         ConsoleInfo::query()->where(
46 46
             [
47 47
                 ['cover' => 1],
Please login to merge, or discard this patch.
misc/testing/PostProc/check_covers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
 
29 29
     foreach ($res as $row) {
30 30
         $nzbpath = $path2cover.$row->imdbid.'-cover.jpg';
31
-        if (! file_exists($nzbpath)) {
31
+        if (!file_exists($nzbpath)) {
32 32
             $counterfixed++;
33 33
             $colorCli->warning('Missing cover '.$nzbpath);
34 34
             if ($argv[1] === 'true') {
35 35
                 $cover = $movie->updateMovieInfo($row->imdbid);
36
-                if ($cover === false || ! file_exists($nzbpath)) {
36
+                if ($cover === false || !file_exists($nzbpath)) {
37 37
                     DB::update(sprintf('UPDATE movieinfo m SET m.cover = 0 WHERE m.imdbid = %d', $row->imdbid));
38 38
                 }
39 39
             }
Please login to merge, or discard this patch.
misc/run_me_once/updateUserRoles.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
18 18
 $neededPerms = ['preview', 'hideads', 'edit release', 'view console', 'view movies', 'view audio', 'view pc', 'view tv', 'view adult', 'view books', 'view other'];
19 19
 
20 20
 foreach ($neededPerms as $neededPerm) {
21
-    if (! in_array($neededPerm, $permissions, false)) {
21
+    if (!in_array($neededPerm, $permissions, false)) {
22 22
         Permission::create(['name' => $neededPerm]);
23 23
     }
24 24
 }
25 25
 
26 26
 foreach ($oldRoles as $oldRole) {
27
-    if (! in_array($oldRole->name, $roles, false)) {
27
+    if (!in_array($oldRole->name, $roles, false)) {
28 28
         $role = Role::create(
29 29
             [
30 30
                 'name' => $oldRole->name,
Please login to merge, or discard this patch.
misc/IRCScraper/scrape.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Blacklight\IRCScraper;
6 6
 
7
-if (! isset($argv[1]) || $argv[1] !== 'true') {
7
+if (!isset($argv[1]) || $argv[1] !== 'true') {
8 8
     exit(
9 9
         'Argument 1: (required) false|true  ; false prints this help screen, true runs the scraper.'.PHP_EOL.
10 10
         'Argument 2: (optional) false|true  ; true runs in silent mode (no text output)'.PHP_EOL.
Please login to merge, or discard this patch.
misc/update/multiprocessing/import.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Blacklight\libraries\ForkingImportNZB;
6 6
 
7
-if (! isset($argv[1]) || ! is_dir($argv[1])) {
7
+if (!isset($argv[1]) || !is_dir($argv[1])) {
8 8
     exit(
9 9
         'First argument (mandatory):'.PHP_EOL.
10 10
         'Path to a folder, containing folders with .nzb or .nzb.gz files inside them.'.PHP_EOL.
Please login to merge, or discard this patch.
misc/update/multiprocessing/binaries.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! isset($argv[1]) || ! is_numeric($argv[1])) {
3
+if (!isset($argv[1]) || !is_numeric($argv[1])) {
4 4
     exit(
5 5
         'Argument 1 => (Number) Set to 0 to ignore, else fetches up to x new headers for every active group.'.PHP_EOL
6 6
     );
Please login to merge, or discard this patch.
misc/update/multiprocessing/postprocess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
4 4
 
5
-if (! isset($argv[1]) || ! in_array($argv[1], ['ama', 'add', 'mov', 'nfo', 'sha', 'tv'], false)) {
5
+if (!isset($argv[1]) || !in_array($argv[1], ['ama', 'add', 'mov', 'nfo', 'sha', 'tv'], false)) {
6 6
     exit(
7 7
         'First argument (mandatory):'.PHP_EOL.
8 8
         'ama => Do amazon processing, this does not use multi-processing, because of amazon API restrictions.'.PHP_EOL.
Please login to merge, or discard this patch.