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 ( ec5d29...7accb9 )
by Thorsten
15:36
created
phpmyfaq/inc/PMF/Attachment.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Attachment handler class 
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   Attachment
13
- * @author    Anatoliy Belsky <[email protected]>
14
- * @copyright 2009-2015 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2009-08-21
18
- */
3
+     * Attachment handler class 
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @package   Attachment
13
+     * @author    Anatoliy Belsky <[email protected]>
14
+     * @copyright 2009-2015 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2009-08-21
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
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
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.
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -1,28 +1,28 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Manages authentication process using PHP sessions.
4
- *
5
- * The CurrentUser class is an extension of the User class. It provides methods
6
- * manage user authentication using multiple database accesses. There are three
7
- * ways of making a new current user object, using the login(), getFromSession(),
8
- * getFromCookie() or manually. login(), getFromSession() and getFromCookie() may
9
- * be combined.
10
- *
11
- * PHP Version 5.3
12
- *
13
- * This Source Code Form is subject to the terms of the Mozilla Public License,
14
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
15
- * obtain one at http://mozilla.org/MPL/2.0/.
16
- *
17
- * @category  phpMyFAQ
18
- * @package   User
19
- * @author    Lars Tiedemann <[email protected]>
20
- * @author    Thorsten Rinne <[email protected]>
21
- * @copyright 2005-2015 phpMyFAQ Team
22
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
23
- * @link      http://www.phpmyfaq.de
24
- * @since     2005-09-28
25
- */
3
+     * Manages authentication process using PHP sessions.
4
+     *
5
+     * The CurrentUser class is an extension of the User class. It provides methods
6
+     * manage user authentication using multiple database accesses. There are three
7
+     * ways of making a new current user object, using the login(), getFromSession(),
8
+     * getFromCookie() or manually. login(), getFromSession() and getFromCookie() may
9
+     * be combined.
10
+     *
11
+     * PHP Version 5.3
12
+     *
13
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
14
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
15
+     * obtain one at http://mozilla.org/MPL/2.0/.
16
+     *
17
+     * @category  phpMyFAQ
18
+     * @package   User
19
+     * @author    Lars Tiedemann <[email protected]>
20
+     * @author    Thorsten Rinne <[email protected]>
21
+     * @copyright 2005-2015 phpMyFAQ Team
22
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
23
+     * @link      http://www.phpmyfaq.de
24
+     * @since     2005-09-28
25
+     */
26 26
 
27 27
 if (!defined('IS_VALID_PHPMYFAQ')) {
28 28
     exit();
@@ -292,8 +292,8 @@  discard block
 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.
phpmyfaq/inc/PMF/Report.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The reporting class for simple report generation
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   PMF_Report
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Gustavo Solt <[email protected]>
15
- * @copyright 2011-2015 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- * @link      http://www.phpmyfaq.de
18
- * @since     2011-02-04
19
- */
3
+     * The reporting class for simple report generation
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @package   PMF_Report
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Gustavo Solt <[email protected]>
15
+     * @copyright 2011-2015 phpMyFAQ Team
16
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+     * @link      http://www.phpmyfaq.de
18
+     * @since     2011-02-04
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     exit();
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Glossary.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The main glossary class
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   PMF_Glossary
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2005-2015 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2005-09-15
18
- */
3
+     * The main glossary class
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @package   PMF_Glossary
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2005-2015 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2005-09-15
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Visits.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Handles all the stuff for visits
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   PMF_Visits
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2009-2015 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2009-03-08
18
- */
3
+     * Handles all the stuff for visits
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @package   PMF_Visits
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2009-2015 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2009-03-08
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Perm/Basic.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The basic permission class provides user rights.
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ 
12
- * @package   Perm
13
- * @author    Lars Tiedemann <[email protected]>
14
- * @copyright 2005-2015 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2005-09-17
18
- */
3
+     * The basic permission class provides user rights.
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ 
12
+     * @package   Perm
13
+     * @author    Lars Tiedemann <[email protected]>
14
+     * @copyright 2005-2015 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2005-09-17
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
Please login to merge, or discard this 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/Perm/Large.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The large permission class is not yet implemented in phpMyFAQ.
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ 
12
- * @package   Perm
13
- * @author    Lars Tiedemann <[email protected]>
14
- * @copyright 2005-2015 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2005-09-17
18
- */
3
+     * The large permission class is not yet implemented in phpMyFAQ.
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ 
12
+     * @package   Perm
13
+     * @author    Lars Tiedemann <[email protected]>
14
+     * @copyright 2005-2015 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2005-09-17
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
Please login to merge, or discard this patch.