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.
Completed
Push — master ( 62d3cd...ba517c )
by Marco
01:43
created
contrib/ipImap/getip.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 #!/usr/bin/php
2 2
 <?php
3 3
 /* Config */
4
-$path='/var/www/html/RBL/';
4
+$path = '/var/www/html/RBL/';
5 5
 include_once($path.'config.php');
6 6
 require_once($path.'function.php');
7
-if ( !isset($version) ) {
7
+if (!isset($version)) {
8 8
         openlog('myRBLemergency', LOG_PID, LOG_LOCAL0);
9
-        syslog (LOG_EMERG, 'unknown: I can\'t read the config files. Do you have configured the $path in getip.php?');
9
+        syslog(LOG_EMERG, 'unknown: I can\'t read the config files. Do you have configured the $path in getip.php?');
10 10
         closelog();
11 11
         exit(255);
12 12
 }
13
-include_once(dirname(__FILE__) . '/function.php');
13
+include_once(dirname(__FILE__).'/function.php');
14 14
 $conf = parse_ini_file($confImap_file);
15 15
 
16 16
 
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
 openlog($tag, LOG_PID, $fac);
20 20
 
21 21
 
22
-if ( !$imapListActive ) {
23
-	syslog (LOG_INFO, $conf['user'].': This plugin isn\'t active.');
22
+if (!$imapListActive) {
23
+	syslog(LOG_INFO, $conf['user'].': This plugin isn\'t active.');
24 24
 	closelog();
25 25
 	exit(255);
26 26
 }
@@ -31,20 +31,20 @@  discard block
 block discarded – undo
31 31
 $arr_tpl_data = array(date("Y-m-d", time()));
32 32
 
33 33
 
34
-if ( !$conf['onlyReport'] ) {
34
+if (!$conf['onlyReport']) {
35 35
 
36 36
 	/* check you select a right list */
37
-	if ( !$tables[$conf['list']['spam']]['bl'] ) {
37
+	if (!$tables[$conf['list']['spam']]['bl']) {
38 38
        		syslog(LOG_EMERG, $conf['user'].': <'.$conf['list']['spam'].'> is not a blocklist. Are you stupid? Do you want to whitelist a spammer? I refuse to continue.');
39 39
 	       	exit (254);
40 40
 	}
41
-	if ( $tables[$conf['list']['ham']]['bl'] ) {
41
+	if ($tables[$conf['list']['ham']]['bl']) {
42 42
         	syslog(LOG_EMERG, $conf['user'].': <'.$conf['list']['ham'].'> is a blocklist. Are you stupid? Do you want to block a legitimate sender? I refuse to continue.');
43 43
 	        exit (254);
44 44
 	}
45 45
 
46 46
 	/* Make MYSQL connection Array */
47
-	$mysqlconf= array(
47
+	$mysqlconf = array(
48 48
 		'dbhost' => $dbhost,
49 49
 		'userdb' => $userdb,
50 50
 		'pwd'	 => $pwd,
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
 else {
57 57
 	$mysqlconf = NULL;
58
-	syslog(LOG_INFO, $conf['user'].': Report only, no listing activated in configuration.') ;
58
+	syslog(LOG_INFO, $conf['user'].': Report only, no listing activated in configuration.');
59 59
 }
60 60
 
61 61
 
@@ -67,16 +67,16 @@  discard block
 block discarded – undo
67 67
 
68 68
 
69 69
 /* The hard work has hidden in imapReport */
70
-$learnfromArray = array('ham','spam');
71
-foreach ( $learnfromArray as $learnfrom ) {
70
+$learnfromArray = array('ham', 'spam');
71
+foreach ($learnfromArray as $learnfrom) {
72 72
 	$conf['reportFile']["$learnfrom"] = str_replace($arr_tpl_vars, $arr_tpl_data, $conf['reportFile']["$learnfrom"]);
73 73
 	$conf['badreportFile']["$learnfrom"] = str_replace($arr_tpl_vars, $arr_tpl_data, $conf['badreportFile']["$learnfrom"]);
74
-	imapReport ($conf,$mysqlconf,$splservice,$tables,$learnfrom);
74
+	imapReport($conf, $mysqlconf, $splservice, $tables, $learnfrom);
75 75
 }
76 76
 
77
-if ( !$conf['onlyReport'] ) {
77
+if (!$conf['onlyReport']) {
78 78
 	/* Close connection */
79
-	syslog (LOG_INFO, $conf['user'].': Successfully end of session.');
79
+	syslog(LOG_INFO, $conf['user'].': Successfully end of session.');
80 80
 }
81 81
 closelog();
82 82
 ?>
Please login to merge, or discard this patch.