Completed
Push — master ( 9f575e...eb4dfb )
by Darko
37s queued 20s
created
misc/testing/Tests/test_trakt_API.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 $c = new Blacklight\ColorCLI;
8 8
 $trakt = new TraktTv;
9 9
 
10
-if (! empty($argv[1]) && is_numeric($argv[2]) && is_numeric($argv[3])) {
10
+if (!empty($argv[1]) && is_numeric($argv[2]) && is_numeric($argv[3])) {
11 11
     // Test if your Trakt API key and configuration are working
12 12
     // If it works you should get a printed array of the show/season/episode entered
13 13
 
Please login to merge, or discard this patch.
misc/testing/Tests/test_omdb_API.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 $omdb = new OMDbAPI(config('nntmux_api.omdb_api_key'));
9 9
 $colorCli = new ColorCLI;
10 10
 
11
-if (! empty($argv[1]) && ! empty($argv[2]) && ($argv[2] !== 'series' || $argv[2] !== 'movie')) {
11
+if (!empty($argv[1]) && !empty($argv[2]) && ($argv[2] !== 'series' || $argv[2] !== 'movie')) {
12 12
     // Test if your OMDb API key and configuration are working
13 13
     // If it works you should get a printed array of the show entered
14 14
 
Please login to merge, or discard this patch.
misc/testing/Tests/test_fanarttv_API.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 $fanart = new FanartTV(config('nntmux_api.fanarttv_api_key'));
9 9
 $colorCli = new ColorCLI;
10 10
 
11
-if (! empty($argv[1])) {
11
+if (!empty($argv[1])) {
12 12
     // Test if you can fetch Fanart.TV images
13 13
 
14 14
     // Search for a movie/tv
Please login to merge, or discard this patch.
misc/testing/Tests/test_tvmaze_API.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 $c = new Blacklight\ColorCLI;
8 8
 $tvmaze = new TVMaze;
9 9
 
10
-if (! empty($argv[1]) && is_numeric($argv[2]) && is_numeric($argv[3])) {
10
+if (!empty($argv[1]) && is_numeric($argv[2]) && is_numeric($argv[3])) {
11 11
     // Test if your TVMaze API configuration is working
12 12
     // If it works you should get a var dumped array of the show/season/episode entered
13 13
 
Please login to merge, or discard this patch.
misc/testing/Tests/test_tmdb_API.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 $colorCli = new ColorCLI;
9 9
 
10
-if (! empty($argv[1]) && is_numeric($argv[2]) && is_numeric($argv[3])) {
10
+if (!empty($argv[1]) && is_numeric($argv[2]) && is_numeric($argv[3])) {
11 11
     // Test if your TMDB API configuration is working
12 12
     // If it works you should get a var dumped array of the show/season/episode entered
13 13
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     print_r($series);
20 20
 
21 21
     // Use the first show found (highest match) and get the requested season/episode from $argv
22
-    if (! empty($series) && $series['total_results'] > 0) {
22
+    if (!empty($series) && $series['total_results'] > 0) {
23 23
         $seriesAppends = [
24 24
             'networks' => Tmdb::getTvApi()->getTvshow($series['results'][0]['id'])['networks'],
25 25
             'alternative_titles' => Tmdb::getTvApi()->getAlternativeTitles($series['results'][0]['id']),
Please login to merge, or discard this patch.
misc/testing/Tests/test_tvdb_API.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 $c = new Blacklight\ColorCLI;
8 8
 $tvDB = new TVDB;
9 9
 
10
-if (! empty($argv[1]) && isset($argv[2], $argv[3]) && is_numeric($argv[2]) && is_numeric($argv[3])) {
10
+if (!empty($argv[1]) && isset($argv[2], $argv[3]) && is_numeric($argv[2]) && is_numeric($argv[3])) {
11 11
     // Test if your TvDB API key and configuration are working
12 12
     // If it works you should get a var dumped array of the show/season/episode entered
13 13
 
Please login to merge, or discard this patch.
misc/update/backfill.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 // Create the connection here and pass
9 9
 $nntp = new NNTP;
10 10
 
11
-if (isset($argv[1]) && $argv[1] === 'all' && ! isset($argv[2])) {
11
+if (isset($argv[1]) && $argv[1] === 'all' && !isset($argv[2])) {
12 12
     $backfill = new Backfill(['NNTP' => $nntp]);
13 13
     $backfill->backfillAllGroups();
14
-} elseif (isset($argv[1]) && ! isset($argv[2]) && preg_match('/^alt\.binaries\..+$/i', $argv[1])) {
14
+} elseif (isset($argv[1]) && !isset($argv[2]) && preg_match('/^alt\.binaries\..+$/i', $argv[1])) {
15 15
     $backfill = new Backfill(['NNTP' => $nntp]);
16 16
     $backfill->backfillAllGroups($argv[1]);
17 17
 } elseif (isset($argv[1], $argv[2]) && is_numeric($argv[2]) && preg_match('/^alt\.binaries\..+$/i', $argv[1])) {
Please login to merge, or discard this patch.
misc/update/postprocess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     'false',
35 35
 ];
36 36
 
37
-if (! isset($argv[1], $argv[2]) || ! in_array($argv[1], $args, false) || ! in_array($argv[2], $bool, false)) {
37
+if (!isset($argv[1], $argv[2]) || !in_array($argv[1], $args, false) || !in_array($argv[2], $bool, false)) {
38 38
     exit(
39 39
         (new Blacklight\ColorCLI)->error(
40 40
             "\nIncorrect arguments.\n"
Please login to merge, or discard this patch.
misc/update/match_prefiles.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\ColorCLI;
6 6
 use Blacklight\NameFixer;
7 7
 
8
-if (empty($argv[1]) && ($argv[1] !== 'full' || ! is_numeric($argv[1]))) {
8
+if (empty($argv[1]) && ($argv[1] !== 'full' || !is_numeric($argv[1]))) {
9 9
     exit(
10 10
         (new ColorCLI)->error(
11 11
             PHP_EOL
Please login to merge, or discard this patch.