Passed
Push — dev ( 9708e4...6d545c )
by Darko
09:51
created
nntmux/processing/tv/TVMaze.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	 * @param      $process
54 54
 	 * @param bool $local
55 55
 	 */
56
-	public function processSite ($groupID, $guidChar, $process, $local = false)
56
+	public function processSite($groupID, $guidChar, $process, $local = false)
57 57
 	{
58 58
 		$res = $this->getTvReleases($groupID, $guidChar, $process, parent::PROCESS_TMDB);
59 59
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 						$this->setVideoNotFound(parent::PROCESS_TRAKT, $row['id']);
183 183
 						$this->titleCache[] = $release['cleanname'];
184 184
 					}
185
-				} else{
185
+				} else {
186 186
 					//Processing failed, set the episode ID to the next processing group
187 187
 					$this->setVideoNotFound(parent::PROCESS_TRAKT, $row['id']);
188 188
 					$this->titleCache[] = $release['cleanname'];
Please login to merge, or discard this patch.
misc/update/nix/multiprocessing/releases.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
 	);
8 8
 }
9 9
 
10
-declare(ticks=1);
10
+declare(ticks = 1);
11 11
 require('.do_not_run/require.php');
12 12
 
13 13
 use \nntmux\libraries\Forking;
Please login to merge, or discard this patch.
misc/update/nix/multiprocessing/update_per_group.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
 	);
8 8
 }
9 9
 
10
-declare(ticks=1);
10
+declare(ticks = 1);
11 11
 require('.do_not_run/require.php');
12 12
 
13 13
 use \nntmux\libraries\Forking;
Please login to merge, or discard this patch.
misc/update/nix/multiprocessing/backfill.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
 	);
8 8
 }
9 9
 
10
-declare(ticks=1);
10
+declare(ticks = 1);
11 11
 require('.do_not_run/require.php');
12 12
 
13 13
 use \nntmux\libraries\Forking;
Please login to merge, or discard this patch.
misc/update/nix/multiprocessing/requestid.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
 	);
8 8
 }
9 9
 
10
-declare(ticks=1);
10
+declare(ticks = 1);
11 11
 require('.do_not_run/require.php');
12 12
 
13 13
 use \nntmux\libraries\Forking;
Please login to merge, or discard this patch.
misc/update/nix/multiprocessing/import.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
 	);
8 8
 }
9 9
 
10
-declare(ticks=1);
10
+declare(ticks = 1);
11 11
 require('.do_not_run/require.php');
12 12
 
13 13
 use \nntmux\libraries\Forking;
Please login to merge, or discard this patch.
misc/testing/Tests/test_regex.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -33,25 +33,25 @@
 block discarded – undo
33 33
 # fetch enabled regular expression
34 34
 $catsql = "select ID,groupname,regex from releaseregex where status = 1";
35 35
 $res = $db->query($catsql);
36
-$total=count($res);
37
-$errcnt=0;
36
+$total = count($res);
37
+$errcnt = 0;
38 38
 
39 39
 echo "\n";
40 40
 foreach ($res as $regexrow)
41 41
 {
42
-   foreach ($regs as $regex){
42
+   foreach ($regs as $regex) {
43 43
       try {
44
-         $res=preg_match($regexrow["regex"], $regex);
45
-      }catch(Exception $e){
44
+         $res = preg_match($regexrow["regex"], $regex);
45
+      } catch (Exception $e) {
46 46
          $errcnt++;
47
-         $strerr=str_pad((int) $errcnt,2," ",STR_PAD_LEFT);
48
-         echo "$strerr. id=".$regexrow["id"].
49
-            ", group=".$regexrow["groupname"]."\n";
50
-         echo "    regex='".$regexrow["regex"]."'\n";
51
-         echo "    error=".$e->getMessage()."\n\n";
47
+         $strerr = str_pad((int)$errcnt, 2, " ", STR_PAD_LEFT);
48
+         echo "$strerr. id=" . $regexrow["id"] .
49
+            ", group=" . $regexrow["groupname"] . "\n";
50
+         echo "    regex='" . $regexrow["regex"] . "'\n";
51
+         echo "    error=" . $e->getMessage() . "\n\n";
52 52
          break;
53 53
       }
54 54
    }
55 55
 }
56 56
 echo "Scanned $total record(s), $errcnt error(s) found.\n";
57
-exit(($errcnt>0)?1:0);
57
+exit(($errcnt > 0) ? 1 : 0);
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
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 	// Use the first show found (highest match) and get the requested season/episode from $argv
25 25
 	if ($series) {
26 26
 
27
-		echo PHP_EOL . $c->info("Server Time: " . $serverTime) .  PHP_EOL;
27
+		echo PHP_EOL . $c->info("Server Time: " . $serverTime) . PHP_EOL;
28 28
 		print_r($series[0]);
29 29
 
30 30
 		if ($season > 0 && $episode > 0 && $day === '') {
Please login to merge, or discard this patch.