@@ -53,7 +53,7 @@ discard block |
||
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 |
||
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']; |
@@ -7,7 +7,7 @@ |
||
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; |
@@ -7,7 +7,7 @@ |
||
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; |
@@ -7,7 +7,7 @@ |
||
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; |
@@ -7,7 +7,7 @@ |
||
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; |
@@ -7,7 +7,7 @@ |
||
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; |
@@ -33,25 +33,25 @@ |
||
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); |
@@ -24,7 +24,7 @@ |
||
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 === '') { |