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 ( 9e397c...2e0f71 )
by Marco
04:51
created
contrib/ipImap/function.php 1 patch
Doc Comments   +34 added lines patch added patch discarded remove patch
@@ -1,4 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
+/**
3
+ * @param string $header
4
+ */
2 5
 function getIP($header,$mxserver,$msa) {
3 6
 /* Get submission server's IP from header's mail */
4 7
 /* Each line must end with /r/n			 */
@@ -28,11 +31,23 @@  discard block
 block discarded – undo
28 31
 	return array($ip,$host,$dateR,$dateC['date'],$mid['mid']);
29 32
 }
30 33
 
34
+/**
35
+ * @param string $hostname
36
+ * @param string $dateC
37
+ * @param string|null $msgid
38
+ * @param string|false $dateL
39
+ */
31 40
 function updateReport ($ip,$uid,$ipcount,$uidcount,$hostname,$dateC,$msgid,$dateL) {
32 41
 
33 42
 	return sprintf ('<tr><td nowrap>%s</td><td nowrap>%s</td><td>%s</td><td>%s</td><td>%u</td><td>%u</td><td>%s</td><td>%s</td></tr>'."\n",$dateL,$dateC,$uid,$ip,$uidcount,$ipcount,$hostname,htmlentities($msgid) );
34 43
 }
35 44
 
45
+/**
46
+ * @param string $dateC
47
+ * @param string|null $msgid
48
+ * @param false|string $dateL
49
+ * @param string $text
50
+ */
36 51
 function updatebadReport ( $uid,$dateC,$msgid,$dateL,$text ) {
37 52
 	return sprintf ('<tr><td nowrap>%s</td><td nowrap>%s</td><td>%s</td><td>%s</td><td nowrap>%s</td></tr>'."\n",$dateL,$dateC,$uid,htmlentities($msgid),$text );
38 53
 }
@@ -84,6 +99,10 @@  discard block
 block discarded – undo
84 99
 }
85 100
 
86 101
 
102
+/**
103
+ * @param null|mysqli $myconn
104
+ * @param string $key
105
+ */
87 106
 function summaryReportAndList ($cf,$myconn,$tables,$category,$vet,$key) {
88 107
 	$nk = $vet['count'];
89 108
 
@@ -160,6 +179,10 @@  discard block
 block discarded – undo
160 179
 }
161 180
 
162 181
 
182
+/**
183
+ * @param string $message_id
184
+ * @param string $date
185
+ */
163 186
 function splunksearch ($service,$message_id,$date) {
164 187
 
165 188
 	// Run a blocking search
@@ -272,6 +295,9 @@  discard block
 block discarded – undo
272 295
 }
273 296
 /***********************************/
274 297
 
298
+/**
299
+ * @param string $text
300
+ */
275 301
 function getDomains ($text) {
276 302
 	$pattern = '/((?:https?:\/\/)?(?:[a-z0-9-]+\.)*(?:(?:[a-z0-9-]+\.)[a-z]+))\S+/';
277 303
 	$ret = array();
@@ -324,6 +350,9 @@  discard block
 block discarded – undo
324 350
 	return array();
325 351
 }
326 352
 
353
+/**
354
+ * @return string
355
+ */
327 356
 function humanKey($key) {
328 357
 	switch($key) {
329 358
 		case 'ip':
@@ -334,6 +363,11 @@  discard block
 block discarded – undo
334 363
 	return $key;
335 364
 }
336 365
 
366
+/**
367
+ * @param resource $f
368
+ * @param string $key
369
+ * @param string $rtime
370
+ */
337 371
 function writeFileHeader($f,$conf,$key,$type,$rtime) {
338 372
         fwrite( $f, file_get_contents(dirname(__FILE__) . '/' . $conf['report']['reportTemplateHeader']) );
339 373
         fwrite( $f,sprintf('<h1> Report of %s %s</h1><h5>%s</h5><h2>Detailed Report</h2>',$type, strtoupper(humanKey($key)),$rtime) );
Please login to merge, or discard this patch.