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.8 ( 731d0f...651d2c )
by Thorsten
29:16 queued 15:10
created
phpmyfaq/inc/PMF/HttpStreamer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
         // Set the correct HTTP headers:
211 211
         // 1. Prevent proxies&browsers caching
212
-        header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
212
+        header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
213 213
         header("Expires: 0");
214 214
         header("Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
215 215
         header("Pragma: no-cache");
@@ -221,13 +221,13 @@  discard block
 block discarded – undo
221 221
             header("Content-Type: application/force-download");
222 222
         }
223 223
         // RFC2616, �19.5.1: $filename must be a quoted-string
224
-        header("Content-Disposition: " . $this->disposition."; filename=\"" . PMF_Export::getExportTimestamp() . "_" . $filename."\"");
224
+        header("Content-Disposition: ".$this->disposition."; filename=\"".PMF_Export::getExportTimestamp()."_".$filename."\"");
225 225
         if (!empty($description)) {
226
-            header("Content-Description: " . $description);
226
+            header("Content-Description: ".$description);
227 227
         }
228 228
         header("Content-Transfer-Encoding: binary");
229 229
         header("Accept-Ranges: none");
230
-        header("Content-Length: " . $this->size);
230
+        header("Content-Length: ".$this->size);
231 231
     }
232 232
 
233 233
     /**
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Auth.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         $message = '';
131 131
         
132 132
         if (!is_array($this->errors)) {
133
-            $this->errors = array((string) $this->errors);
133
+            $this->errors = array((string)$this->errors);
134 134
         }
135 135
         foreach ($this->errors as $error) {
136 136
             $message .= $error."\n";
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
             return $this;
166 166
         }
167 167
 
168
-        $authClass = 'PMF_Auth_' . $method;
168
+        $authClass = 'PMF_Auth_'.$method;
169 169
         if (!class_exists($authClass)) {
170 170
             $this->errors[] = self::PMF_ERROR_USER_NO_AUTHTYPE;
171 171
             return $this;
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Comment.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
39 39
      *
40 40
      * @const string
41 41
      */
42
-    const COMMENT_TYPE_FAQ  = 'faq';
42
+    const COMMENT_TYPE_FAQ = 'faq';
43 43
 
44 44
     /**
45 45
      * News type
46 46
      *
47 47
      * @const string
48 48
      */
49
-    const COMMENT_TYPE_NEWS ='news';
49
+    const COMMENT_TYPE_NEWS = 'news';
50 50
 
51 51
     /**
52 52
      * @var PMF_Configuration
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
                 $mail->safeEmail($item['email']),
183 183
                 $item['user'],
184 184
                 $this->showShortComment($id, $item['content']),
185
-                $this->pmfStr['newsCommentDate'] .
185
+                $this->pmfStr['newsCommentDate'].
186 186
                     $date->format(
187 187
                         PMF_Date::createIsoDate($item['date'], 'Y-m-d H:i', false)
188 188
                     )
@@ -355,12 +355,12 @@  discard block
 block discarded – undo
355 355
 
356 356
         $comment = '';
357 357
         foreach ($words as $word) {
358
-            $comment .= $word . ' ';
358
+            $comment .= $word.' ';
359 359
             if (15 === $numWords) {
360
-            $comment .= '<span class="comment-dots-' . $id . '">... </span>' .
361
-                        '<a onclick="showLongComment(' . $id . ')" class="comment-show-more-' . $id .
362
-                        ' pointer">' . $this->pmfStr['msgShowMore'] . '</a>' .
363
-                        '<span class="comment-more-' . $id . ' hide">';
360
+            $comment .= '<span class="comment-dots-'.$id.'">... </span>'.
361
+                        '<a onclick="showLongComment('.$id.')" class="comment-show-more-'.$id.
362
+                        ' pointer">'.$this->pmfStr['msgShowMore'].'</a>'.
363
+                        '<span class="comment-more-'.$id.' hide">';
364 364
             }
365 365
             $numWords++;
366 366
         }
@@ -368,6 +368,6 @@  discard block
 block discarded – undo
368 368
         // Convert URLs to HTML anchors
369 369
 
370 370
 
371
-        return PMF_Utils::parseUrl($comment) . '</span>';
371
+        return PMF_Utils::parseUrl($comment).'</span>';
372 372
     }
373 373
 }
374 374
\ No newline at end of file
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Ldap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $this->base = $ldapBase;
107 107
         $this->ds   = ldap_connect($ldapServer, $ldapPort);
108 108
 
109
-        if (! $this->ds) {
109
+        if (!$this->ds) {
110 110
             $this->error = sprintf(
111 111
                 'Unable to connect to LDAP server (Error: %s)',
112 112
                 ldap_error($this->ds)
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         // optionally set Bind version
120 120
         if (isset($this->_ldapConfig['ldap_options'])) {
121 121
             foreach ($this->_ldapConfig['ldap_options'] as $key => $value) {
122
-                if (! ldap_set_option($this->ds, $key, $value)) {
122
+                if (!ldap_set_option($this->ds, $key, $value)) {
123 123
                     $this->errno = ldap_errno($this->ds);
124 124
                     $this->error = sprintf(
125 125
                         'Unable to set LDAP option "%s" to "%s" (Error: %s).',
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
         if (isset($this->_ldapConfig['ldap_use_dynamic_login']) && $this->_ldapConfig['ldap_use_dynamic_login']) {
137 137
             // Check for dynamic user binding
138
-            $ldapRdn  = $this->_ldapConfig['ldap_dynamic_login_attribute'] . '=' . $ldapUser . ',' . $ldapBase;
138
+            $ldapRdn  = $this->_ldapConfig['ldap_dynamic_login_attribute'].'='.$ldapUser.','.$ldapBase;
139 139
             $ldapBind = $this->bind($ldapRdn, $ldapPassword);
140 140
         } elseif (isset($this->_ldapConfig['ldap_use_anonymous_login']) && $this->_ldapConfig['ldap_use_anonymous_login']) {
141 141
             // Check for anonymous binding
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      *
241 241
      * @return string|false
242 242
      */
243
-    private function getLdapData ($username, $data)
243
+    private function getLdapData($username, $data)
244 244
     {
245 245
         if (!is_resource($this->ds)) {
246 246
             $this->error = 'The LDAP connection handler is not a valid resource.';
@@ -358,8 +358,8 @@  discard block
 block discarded – undo
358 358
     public function quote($string)
359 359
     {
360 360
         return str_replace(
361
-            array( '\\', ' ', '*', '(', ')' ),
362
-            array( '\\5c', '\\20', '\\2a', '\\28', '\\29' ),
361
+            array('\\', ' ', '*', '(', ')'),
362
+            array('\\5c', '\\20', '\\2a', '\\28', '\\29'),
363 363
             $string
364 364
         );
365 365
     }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/User/CurrentUser.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -292,8 +292,8 @@
 block discarded – undo
292 292
                 %sfaquser
293 293
             WHERE
294 294
                 user_id = %d",
295
-           PMF_Db::getTablePrefix(),
296
-           $this->getUserId()
295
+            PMF_Db::getTablePrefix(),
296
+            $this->getUserId()
297 297
         );
298 298
            
299 299
         $res = $this->config->getDb()->query($select);
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
         if (!isset($_SESSION[PMF_SESSION_ID_TIMESTAMP])) {
272 272
             return 0;
273 273
         }
274
-        return ($_SERVER['REQUEST_TIME'] - $_SESSION[PMF_SESSION_ID_TIMESTAMP]) / 60;
274
+        return ($_SERVER['REQUEST_TIME'] - $_SESSION[PMF_SESSION_ID_TIMESTAMP])/60;
275 275
     }
276 276
 
277 277
     /**
@@ -319,10 +319,10 @@  discard block
 block discarded – undo
319 319
         $oldSessionId = session_id();
320 320
         if (session_regenerate_id(true)) {
321 321
             $sessionPath = session_save_path();
322
-            if (strpos ($sessionPath, ';') !== false) {
323
-                $sessionPath = substr ($sessionPath, strpos ($sessionPath, ';') + 1);
322
+            if (strpos($sessionPath, ';') !== false) {
323
+                $sessionPath = substr($sessionPath, strpos($sessionPath, ';') + 1);
324 324
             }
325
-            $sessionFilename = $sessionPath . '/sess_' . $oldSessionId;
325
+            $sessionFilename = $sessionPath.'/sess_'.$oldSessionId;
326 326
             if (@file_exists($sessionFilename)) {
327 327
                 @unlink($sessionFilename);
328 328
             }
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
             PMF_Db::getTablePrefix(),
344 344
             session_id(),
345 345
             $_SERVER['REQUEST_TIME'],
346
-            $updateLastlogin ?  "last_login = '".date('YmdHis', $_SERVER['REQUEST_TIME'])."'," : '',
346
+            $updateLastlogin ? "last_login = '".date('YmdHis', $_SERVER['REQUEST_TIME'])."'," : '',
347 347
             $_SERVER['REMOTE_ADDR'],
348 348
             $this->getUserId()
349 349
         );
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
      */
491 491
     public static function getFromCookie(PMF_Configuration $config)
492 492
     {
493
-        if (! isset($_COOKIE[PMF_Session::PMF_COOKIE_NAME_REMEMBERME])) {
493
+        if (!isset($_COOKIE[PMF_Session::PMF_COOKIE_NAME_REMEMBERME])) {
494 494
             return null;
495 495
         }
496 496
 
@@ -612,6 +612,6 @@  discard block
 block discarded – undo
612 612
      */
613 613
     private function createCsrfToken()
614 614
     {
615
-        return sha1(microtime() . $this->getLogin());
615
+        return sha1(microtime().$this->getLogin());
616 616
     }
617 617
 }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Perm/Basic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@
 block discarded – undo
318 318
             isset($rightData['for_groups']) ? (int)$rightData['for_groups'] : 1
319 319
         );
320 320
 
321
-        if (! $this->config->getDb()->query($insert)) {
321
+        if (!$this->config->getDb()->query($insert)) {
322 322
             return 0;
323 323
         }
324 324
         
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Perm/Medium.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@
 block discarded – undo
258 258
         
259 259
         $nextId    = $this->config->getDb()->nextId(PMF_Db::getTablePrefix()."faqgroup", "group_id");
260 260
         $groupData = $this->checkGroupData($groupData);
261
-        $insert     = sprintf("
261
+        $insert = sprintf("
262 262
             INSERT INTO
263 263
                 %sfaqgroup
264 264
             (group_id, name, description, auto_join)
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Attachment/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,8 @@
 block discarded – undo
79 79
                 fa.record_id = fd.id
80 80
             GROUP BY
81 81
                 fa.id",
82
-            PMF_Db::getTablePrefix() . 'faqattachment',
83
-            PMF_Db::getTablePrefix() . 'faqdata'
82
+            PMF_Db::getTablePrefix().'faqattachment',
83
+            PMF_Db::getTablePrefix().'faqdata'
84 84
         );
85 85
 
86 86
         $result = $this->config->getDb()->query($query);
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Attachment/Filesystem/File.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $this->handle = @fopen($this->path, $this->mode);
67 67
         
68 68
         if (!is_resource($this->handle)) {
69
-            throw new PMF_Attachment_Filesystem_File_Exception('Could not open file: ' . $this->path);
69
+            throw new PMF_Attachment_Filesystem_File_Exception('Could not open file: '.$this->path);
70 70
         }
71 71
     }
72 72
     
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     {
152 152
         $retval = false;
153 153
         
154
-        if(in_array($mode, array(self::MODE_WRITE, self::MODE_READ, self::MODE_APPEND))) {
154
+        if (in_array($mode, array(self::MODE_WRITE, self::MODE_READ, self::MODE_APPEND))) {
155 155
             fclose($this->handle);
156 156
             $this->handle = fopen($this->path, $mode);
157 157
         
Please login to merge, or discard this patch.