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 — 2.9 ( 422742...75c69b )
by Thorsten
12:25
created
phpmyfaq/admin/ajax.trans.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 }
30 30
 
31 31
 $ajax_action = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
32
-$csrfToken  = PMF_Filter::filterInput(INPUT_POST, 'csrf', FILTER_SANITIZE_STRING);
32
+$csrfToken = PMF_Filter::filterInput(INPUT_POST, 'csrf', FILTER_SANITIZE_STRING);
33 33
 if (is_null($csrfToken)) {
34
-    $csrfToken  = PMF_Filter::filterInput(INPUT_GET, 'csrf', FILTER_SANITIZE_STRING);
34
+    $csrfToken = PMF_Filter::filterInput(INPUT_GET, 'csrf', FILTER_SANITIZE_STRING);
35 35
 }
36 36
 
37 37
 if (!isset($_SESSION['phpmyfaq_csrf_token']) || $_SESSION['phpmyfaq_csrf_token'] !== $csrfToken) {
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
          * Build language variable definitions
46 46
          * @todo Change input handling using PMF_Filter
47 47
          */
48
-        foreach ((array) @$_POST['PMF_LANG'] as $key => $val) {
48
+        foreach ((array)@$_POST['PMF_LANG'] as $key => $val) {
49 49
             if (is_string($val)) {
50 50
                 $val = str_replace(array('\\\\', '\"', '\\\''), array('\\', '"', "'"), $val);
51 51
                 $val = str_replace("'", "\\'", $val);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             }
63 63
         }
64 64
 
65
-        foreach ((array) @$_POST['LANG_CONF'] as $key => $val) {
65
+        foreach ((array)@$_POST['LANG_CONF'] as $key => $val) {
66 66
             // if string like array(blah-blah-blah), extract the contents inside the brackets
67 67
             if (preg_match('/^\s*array\s*\(\s*(\d+.+)\s*\).*$/', $val, $matches1)) {
68 68
                 // split the resulting string of delimiters such as "number =>"
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
         $langDir = PMF_Filter::filterInput(INPUT_POST, 'langdir', FILTER_SANITIZE_STRING);
193 193
         $langNPlurals = strval(PMF_Filter::filterVar(@$_POST['langnplurals'], FILTER_VALIDATE_INT, -1));
194 194
         $langDesc = PMF_Filter::filterInput(INPUT_POST, 'langdesc', FILTER_SANITIZE_STRING);
195
-        $author = (array) @$_POST['author'];
195
+        $author = (array)@$_POST['author'];
196 196
 
197 197
         if (empty($langCode) || empty($langName) || empty($langCharset) ||
198 198
            empty($langDir) || empty($langDesc) || empty($author)) {
@@ -260,6 +260,6 @@  discard block
 block discarded – undo
260 260
         $mail->addTo('[email protected]');
261 261
         $mail->addAttachment($filename, null, 'text/plain');
262 262
 
263
-        echo (int) $mail->send();
263
+        echo (int)$mail->send();
264 264
     break;
265 265
 }
Please login to merge, or discard this patch.