GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — dev (#2644)
by
unknown
13:38
created
cli/data/predb_export.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
 php {$argv[0]} /path/to/write/to/[<file-name>]                    ...: To export.
44 44
 
45
-HELP;
45
+help;
46 46
 	exit($message);
47 47
 } else {
48 48
 	$path = !preg_match('#^/#', $argv[1]) ? realpath($argv[1]) : $argv[1];
Please login to merge, or discard this patch.
cli/data/predb_import.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
 php {$argv[0]} [remote | local] /path/with/filename
43 43
 
44
-HELP;
44
+help;
45 45
 	exit($message);
46 46
 } else {
47 47
 	$path = !preg_match('#^/#', $argv[2]) ? getcwd() . '/' . $argv[2] : $argv[2];
Please login to merge, or discard this patch.
misc/IRCScraper/scrape.php 1 patch
Switch Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -8,16 +8,16 @@
 block discarded – undo
8 8
 }
9 9
 
10 10
 switch (true) {
11
-	case is_file(IRC_SCRAPER_CONFIG):
12
-		break;
13
-	case is_file(nZEDb_ROOT . 'misc/testing/IRCScraper/settings.php'):
14
-		rename(nZEDb_ROOT . 'misc/testing/IRCScraper/settings.php', IRC_SCRAPER_CONFIG);
15
-		break;
16
-	default:
17
-		exit(
18
-			'Copy ' . nZEDb_CONFIGS . 'ircscraper_settings_example.php to ' .
19
-			IRC_SCRAPER_CONFIG . ' and change the settings.' . PHP_EOL
20
-		);
11
+		case is_file(IRC_SCRAPER_CONFIG):
12
+			break;
13
+		case is_file(nZEDb_ROOT . 'misc/testing/IRCScraper/settings.php'):
14
+			rename(nZEDb_ROOT . 'misc/testing/IRCScraper/settings.php', IRC_SCRAPER_CONFIG);
15
+			break;
16
+		default:
17
+			exit(
18
+				'Copy ' . nZEDb_CONFIGS . 'ircscraper_settings_example.php to ' .
19
+				IRC_SCRAPER_CONFIG . ' and change the settings.' . PHP_EOL
20
+			);
21 21
 }
22 22
 
23 23
 if (!isset($argv[1]) || $argv[1] != 'true') {
Please login to merge, or discard this patch.
misc/sphinxsearch/create_se_tables.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 	filename    VARCHAR(1000) NULL,
37 37
 	INDEX(query)
38 38
 ) ENGINE=SPHINX CONNECTION="%sreleases_rt"
39
-DDLSQL;
39
+ddlsql;
40 40
 
41 41
 $tables                     = [];
42 42
 $tables['releases_se']      = sprintf($tableSQL_releases, $sphinxConnection);
Please login to merge, or discard this patch.
misc/testing/DB/mysqldump_tables.php 1 patch
Upper-Lower-Casing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	(isset($argv[3]) && file_exists($argv[3]))
72 72
 ) {
73 73
 	$filename = $argv[3] . "/" . $dbname . ".gz";
74
-	echo $pdo->log->header("Dumping $dbname.");
74
+	echo $pdo->log->header("dumping $dbname.");
75 75
 	if (file_exists($filename)) {
76 76
 		newname($filename);
77 77
 	}
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	) {
85 85
 		$filename = $argv[3] . "/" . $dbname . ".gz";
86 86
 		if (file_exists($filename)) {
87
-			echo $pdo->log->header("Restoring $dbname.");
87
+			echo $pdo->log->header("restoring $dbname.");
88 88
 			$command = "zcat < $filename | mysql --defaults-file=mysql-defaults.txt $host $use $dbname";
89 89
 			$pdo->queryExec("SET FOREIGN_KEY_CHECKS=0");
90 90
 			system($command);
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 			foreach ($tables as $row) {
100 100
 				$tbl      = $row['tables_in_' . DB_NAME];
101 101
 				$filename = $argv[3] . "/" . $tbl . ".gz";
102
-				echo $pdo->log->header("Dumping $tbl.");
102
+				echo $pdo->log->header("dumping $tbl.");
103 103
 				if (file_exists($filename)) {
104 104
 					newname($filename);
105 105
 				}
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 					$tbl      = $row['tables_in_' . DB_NAME];
120 120
 					$filename = $argv[3] . "/" . $tbl . ".gz";
121 121
 					if (file_exists($filename)) {
122
-						echo $pdo->log->header("Restoring $tbl.");
122
+						echo $pdo->log->header("restoring $tbl.");
123 123
 						$command = "zcat < $filename | mysql --defaults-file=mysql-defaults.txt $host $use $dbname";
124 124
 						system($command);
125 125
 					}
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 					$arr = ["parts", "binaries", "collections", "missed_parts", "groups"];
134 134
 					foreach ($arr as &$tbl) {
135 135
 						$filename = $argv[3] . "/" . $tbl . ".gz";
136
-						echo $pdo->log->header("Dumping $tbl..");
136
+						echo $pdo->log->header("dumping $tbl..");
137 137
 						if (file_exists($filename)) {
138 138
 							newname($filename);
139 139
 						}
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 						foreach ($arr as &$tbl) {
153 153
 							$filename = $argv[3] . "/" . $tbl . ".gz";
154 154
 							if (file_exists($filename)) {
155
-								echo $pdo->log->header("Restoring $tbl.");
155
+								echo $pdo->log->header("restoring $tbl.");
156 156
 								$command = "zcat < $filename | mysql --defaults-file=mysql-defaults.txt $host $use $dbname";
157 157
 								system($command);
158 158
 							}
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 							foreach ($tables as $row) {
169 169
 								$tbl      = $row['tables_in_' . DB_NAME];
170 170
 								$filename = $argv[3] . $tbl . ".csv";
171
-								echo $pdo->log->header("Dumping $tbl.");
171
+								echo $pdo->log->header("dumping $tbl.");
172 172
 								if (file_exists($filename)) {
173 173
 									newname($filename);
174 174
 								}
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 									$tbl      = $row['tables_in_' . DB_NAME];
189 189
 									$filename = $argv[3] . $tbl . ".csv";
190 190
 									if (file_exists($filename)) {
191
-										echo $pdo->log->header("Restoring $tbl.");
191
+										echo $pdo->log->header("restoring $tbl.");
192 192
 										$pdo->queryExec(sprintf("LOAD DATA INFILE %s INTO TABLE %s",
193 193
 																$pdo->escapeString($filename),
194 194
 																$tbl));
Please login to merge, or discard this patch.
misc/testing/DB/setUserPasswordHash.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 	if ($result === false || $hash === false) {
55 55
 		echo $pdo->log->error('An error occured during update attempt.' . PHP_EOL . $pdo->errorInfo());
56 56
 	} else {
57
-		echo $pdo->log->headerOver("Updated {$user['username']}'s password hash to: ") . $pdo->log->primary("$hash");
57
+		echo $pdo->log->headerOver("updated {$user['username']}'s password hash to: ") . $pdo->log->primary("$hash");
58 58
 	}
59 59
 } else {
60 60
 	echo $pdo->log->error("Unable to find {$field} '{$identifier}' in the users. Cannot change password.");
Please login to merge, or discard this patch.
misc/testing/DB/setUserPasswordHashesToEmail.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
   It is intended for use ONLY if you have a *lot* of users, as this is not
30 30
 secure (a user's email addresses may be known to other users). If you only have
31 31
 a few users then run setUsersPasswordHash.php for each of them instead.
32
-WARNING;
32
+warning;
33 33
 $usage = "\nUsage: php {$argv[0]} <IUnderStandTheRisks>";
34 34
 
35 35
 echo $colorCLI->warning($warning);
Please login to merge, or discard this patch.
misc/testing/NZBs/nzb-reorg.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@
 block discarded – undo
37 37
 	}
38 38
 	$iFilesProcessed++;
39 39
 	if ($iFilesProcessed % 100 == 0) {
40
-		$consoleTools->overWrite("Reorganized $iFilesProcessed");
40
+		$consoleTools->overWrite("reorganized $iFilesProcessed");
41 41
 	}
42 42
 }
43 43
 
44 44
 $pdo->ping(true);
45 45
 $pdo->queryExec(sprintf("UPDATE settings SET value = %s WHERE setting = 'nzbsplitlevel'", $argv[1]));
46
-$consoleTools->overWrite("Processed $iFilesProcessed nzbs in " . relativeTime($time) . "\n");
46
+$consoleTools->overWrite("processed $iFilesProcessed nzbs in " . relativeTime($time) . "\n");
47 47
 
48 48
 function relativeTime($_time)
49 49
 {
Please login to merge, or discard this patch.
misc/testing/Usenet/change_usenet_provider.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 foreach ($arr as &$value) {
53 53
 	$rel = $pdo->queryExec("TRUNCATE TABLE $value");
54 54
 	if ($rel !== false) {
55
-		echo $pdo->log->header("Truncating $value completed.");
55
+		echo $pdo->log->header("truncating $value completed.");
56 56
 	}
57 57
 }
58 58
 unset($value);
Please login to merge, or discard this patch.