Passed
Push — dev ( 76ce63...ac1a94 )
by Darko
11:33
created
misc/update/nix/multiprocessing/postprocess.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
misc/update/nix/multiprocessing/safe.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/tmux/bin/groupfixrelnames.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
misc/update/nix/tmux/bin/fixreleasenames.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
misc/update/nix/tmux/bin/postprocess_threaded.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
misc/update/nix/tmux/monitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -390,7 +390,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
misc/update/nntpproxy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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';
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
@@ -71,7 +71,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
misc/testing/refreshMovie.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
36 36
     die();
37 37
 }
38 38
 
39
-echo "Updating ".count($movies)." records - Sleep interval ".$sleepsecsbetweenscrape." second(s)\n";
39
+echo "Updating " . count($movies) . " records - Sleep interval " . $sleepsecsbetweenscrape . " second(s)\n";
40 40
 foreach ($movies as $mov) {
41
-    echo "Updating ".$mov['imdbid']." (".$counter++."/".count($movies).")\n";
41
+    echo "Updating " . $mov['imdbid'] . " (" . $counter++ . "/" . count($movies) . ")\n";
42 42
 	$mov = $movie->updateMovieInfo($mov['imdbid']);
43 43
 	sleep($sleepsecsbetweenscrape);
44 44
 }
Please login to merge, or discard this patch.