@@ -4,7 +4,7 @@ |
||
| 4 | 4 | 'Argument 1 => (Number) Set to 0 to ignore, else fetches up to x new headers for every active group.' . PHP_EOL |
| 5 | 5 | ); |
| 6 | 6 | } |
| 7 | -declare(ticks=1); |
|
| 7 | +declare(ticks = 1); |
|
| 8 | 8 | require('.do_not_run/require.php'); |
| 9 | 9 | use nntmux\libraries\Forking; |
| 10 | 10 | (new Forking())->processWorkType('binaries', array(0 => $argv[1])); |
| 11 | 11 | \ No newline at end of file |
@@ -7,13 +7,13 @@ |
||
| 7 | 7 | 'mov => Do movie processing.' . PHP_EOL . |
| 8 | 8 | 'nfo => Do NFO processing.' . PHP_EOL . |
| 9 | 9 | 'sha => Do sharing processing, this does not use multi-processing.' . PHP_EOL . |
| 10 | - 'tv => Do TV processing.' . PHP_EOL . PHP_EOL . |
|
| 10 | + 'tv => Do TV processing.' . PHP_EOL . PHP_EOL . |
|
| 11 | 11 | 'Second argument (optional):' . PHP_EOL . |
| 12 | 12 | 'true|false => Only post-process renamed releases. This is for the mov|tv options.' . PHP_EOL |
| 13 | 13 | ); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | -declare(ticks=1); |
|
| 16 | +declare(ticks = 1); |
|
| 17 | 17 | require('.do_not_run/require.php'); |
| 18 | 18 | |
| 19 | 19 | 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; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - if($namefixer->matched) { |
|
| 115 | + if ($namefixer->matched) { |
|
| 116 | 116 | continue; |
| 117 | 117 | } |
| 118 | 118 | $namefixer->reset(); |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | // Not all gate requirements in query always set column status as PP Add check is in query |
| 126 | 126 | $namefixer->_updateSingleColumn('proc_uid', NameFixer::PROC_UID_DONE, $release['releases_id']); |
| 127 | 127 | |
| 128 | - if($namefixer->matched) { |
|
| 128 | + if ($namefixer->matched) { |
|
| 129 | 129 | continue; |
| 130 | 130 | } |
| 131 | 131 | $namefixer->reset(); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | $namefixer->_updateSingleColumn('proc_nfo', NameFixer::PROC_NFO_DONE, $release['releases_id']); |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - if($namefixer->matched) { |
|
| 144 | + if ($namefixer->matched) { |
|
| 145 | 145 | continue; |
| 146 | 146 | } |
| 147 | 147 | $namefixer->reset(); |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | // Not all gate requirements in query always set column status as PP Add check is in query |
| 169 | 169 | $namefixer->_updateSingleColumn('proc_files', NameFixer::PROC_FILES_DONE, $release['releases_id']); |
| 170 | 170 | |
| 171 | - if($namefixer->matched) { |
|
| 171 | + if ($namefixer->matched) { |
|
| 172 | 172 | continue; |
| 173 | 173 | } |
| 174 | 174 | $namefixer->reset(); |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | $nzbcontents->checkPAR2($release['guid'], $release['releases_id'], $release['groups_id'], 1, 1); |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | - if($namefixer->matched) { |
|
| 194 | + if ($namefixer->matched) { |
|
| 195 | 195 | continue; |
| 196 | 196 | } |
| 197 | 197 | $namefixer->reset(); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | } |
| 57 | 57 | $namefixer->checked++; |
| 58 | 58 | } |
| 59 | - }else if (isset($pieces[1]) && $pieces[0] == 'md5') { |
|
| 59 | + } else if (isset($pieces[1]) && $pieces[0] == 'md5') { |
|
| 60 | 60 | $release = $pieces[1]; |
| 61 | 61 | if ($res = $db->queryOneRow(sprintf('SELECT r.id AS releases_id, r.name, r.searchname, r.categories_id, r.groups_id, dehashstatus, rf.name AS filename FROM releases r LEFT JOIN release_files rf ON r.id = rf.releases_id WHERE r.id = %d', $release))) { |
| 62 | 62 | if (preg_match('/[a-fA-F0-9]{32,40}/i', $res['name'], $matches)) { |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | if (isset($pieces[6])) { |
| 23 | 23 | // Create the connection here and pass |
| 24 | 24 | $nntp = new NNTP(); |
| 25 | - if ($nntp->doConnect() === false) { |
|
| 25 | + if ($nntp->doConnect() === false) { |
|
| 26 | 26 | exit($c->error("Unable to connect to usenet.")); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -390,7 +390,7 @@ |
||
| 390 | 390 | exit; |
| 391 | 391 | } |
| 392 | 392 | |
| 393 | -function getTableRowCount(\PDOStatement &$ps, $table) |
|
| 393 | +function getTableRowCount(\PDOStatement & $ps, $table) |
|
| 394 | 394 | { |
| 395 | 395 | $success = $ps->execute([':table' => $table]); |
| 396 | 396 | if ($success) { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | $t = new \Tmux(); |
| 11 | 11 | $tmux = $t->get(); |
| 12 | 12 | $powerline = (isset($tmux->powerline)) ? $tmux->powerline : 0; |
| 13 | -$s= new Sites(); |
|
| 13 | +$s = new Sites(); |
|
| 14 | 14 | $site = $s->get(); |
| 15 | 15 | |
| 16 | 16 | $tmux_session = 'NNTPProxy'; |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | |
| 72 | 72 | $postProcess = new PostProcess(['Settings' => $pdo, 'Echo' => ($argv[2] === 'true' ? true : false)]); |
| 73 | 73 | |
| 74 | -$charArray = ['a','b','c','d','e','f','0','1','2','3','4','5','6','7','8','9']; |
|
| 74 | +$charArray = ['a', 'b', 'c', 'd', 'e', 'f', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']; |
|
| 75 | 75 | |
| 76 | 76 | switch ($argv[1]) { |
| 77 | 77 | |