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 ( 03bafd...757b80 )
by Thorsten
19:17
created
phpmyfaq/admin/category.cut.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
- * Cuts out a category
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   Administration
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2003-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     2003-12-25
18
- */
3
+     * Cuts out a category
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   Administration
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2003-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     2003-12-25
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
Please login to merge, or discard this patch.
phpmyfaq/glossary.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
- * This is the page there a user can view all glossary items
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   Frontend
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2012-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     2012-09-03
18
- */
3
+     * This is the page there a user can view all glossary items
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   Frontend
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2012-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     2012-09-03
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
29
-$page = PMF_Filter::filterInput(INPUT_GET, 'page' , FILTER_VALIDATE_INT, 1);
29
+$page = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 1);
30 30
 
31 31
 $glossary      = new PMF_Glossary($faqConfig);
32 32
 $glossaryItems = $glossary->getAllGlossaryItems();
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 if (0 < $numItems) {
52 52
         
53 53
     $output       = array();
54
-    $visibleItems = array_slice($glossaryItems, ($page - 1) * $itemsPerPage, $itemsPerPage);
54
+    $visibleItems = array_slice($glossaryItems, ($page - 1)*$itemsPerPage, $itemsPerPage);
55 55
 
56 56
     foreach ($visibleItems as $item) {
57 57
         $output['item'][]       = $item['item'];
Please login to merge, or discard this patch.
phpmyfaq/login.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,24 +19,24 @@
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
29 29
 if (is_null($error)) {
30
-    $loginMessage = '<p>' . $PMF_LANG['ad_auth_insert'] . '</p>';
30
+    $loginMessage = '<p>'.$PMF_LANG['ad_auth_insert'].'</p>';
31 31
 } else {
32
-    $loginMessage = '<p class="alert alert-error">' . $error . '</p>';
32
+    $loginMessage = '<p class="alert alert-error">'.$error.'</p>';
33 33
 }
34 34
 
35 35
 $tpl->parse(
36 36
     'writeContent',
37 37
     array(
38
-        'registerUser'   => '<a href="?action=register">' . $PMF_LANG['msgRegistration'] . '</a>',
39
-        'sendPassword'   => '<a href="?action=password">' . $PMF_LANG['lostPassword'] . '</a>',
38
+        'registerUser'   => '<a href="?action=register">'.$PMF_LANG['msgRegistration'].'</a>',
39
+        'sendPassword'   => '<a href="?action=password">'.$PMF_LANG['lostPassword'].'</a>',
40 40
         'loginHeader'    => $PMF_LANG['msgLoginUser'],
41 41
         'loginMessage'   => $loginMessage,
42 42
         'writeLoginPath' => $faqSystem->getSystemUri($faqConfig),
Please login to merge, or discard this patch.
phpmyfaq/services/twitter/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
 //
28 28
 // Bootstrapping
29 29
 //
30
-require PMF_ROOT_DIR . '/inc/Bootstrap.php';
31
-require PMF_ROOT_DIR . '/inc/libs/twitteroauth/twitteroauth.php';
30
+require PMF_ROOT_DIR.'/inc/Bootstrap.php';
31
+require PMF_ROOT_DIR.'/inc/libs/twitteroauth/twitteroauth.php';
32 32
 
33 33
 if (empty($_SESSION['access_token']) ||
34 34
     empty($_SESSION['access_token']['oauth_token']) ||
Please login to merge, or discard this patch.
phpmyfaq/services/twitter/redirect.php 2 patches
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
- * Clears PHP sessions and redirects to the connect page.
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   Services
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Thomas Zeithaml <[email protected]>
15
- * @copyright 2010-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     2010-09-18
19
- */
3
+     * Clears PHP sessions and redirects to the connect page.
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   Services
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Thomas Zeithaml <[email protected]>
15
+     * @copyright 2010-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     2010-09-18
19
+     */
20 20
 
21 21
 //
22 22
 // Prepend and start the PHP session
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
 //
28 28
 // Bootstrapping
29 29
 //
30
-require PMF_ROOT_DIR . '/inc/Bootstrap.php';
31
-require PMF_ROOT_DIR . '/inc/libs/twitteroauth/twitteroauth.php';
30
+require PMF_ROOT_DIR.'/inc/Bootstrap.php';
31
+require PMF_ROOT_DIR.'/inc/libs/twitteroauth/twitteroauth.php';
32 32
 
33 33
 $connection = new TwitterOAuth(
34 34
     $faqConfig->get('socialnetworks.twitterConsumerKey'),
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 );
37 37
 
38 38
 $requestToken = $connection->getRequestToken(
39
-    $faqConfig->get('main.referenceURL') . '/services/twitter/callback.php'
39
+    $faqConfig->get('main.referenceURL').'/services/twitter/callback.php'
40 40
 );
41 41
 
42 42
 $_SESSION['oauth_token']        = $requestToken['oauth_token'];
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 switch ($connection->http_code) {
46 46
     case 200:
47 47
         $url = $connection->getAuthorizeURL($requestToken['oauth_token']);
48
-        header('Location: ' . $url);
48
+        header('Location: '.$url);
49 49
         break;
50 50
     default:
51 51
         print 'Could not connect to Twitter. Refresh the page or try again later.';
Please login to merge, or discard this patch.
phpmyfaq/services/twitter/callback.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Take the user when they return from Twitter. Get access tokens.
4
- * Verify credentials and redirect to based on response from Twitter.
5
- *
6
- * PHP Version 5.3
7
- *
8
- * This Source Code Form is subject to the terms of the Mozilla Public License,
9
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
10
- * obtain one at http://mozilla.org/MPL/2.0/.
11
- *
12
- * @category  phpMyFAQ
13
- * @package   Services
14
- * @author    Thorsten Rinne <[email protected]>
15
- * @copyright 2010-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     2010-09-18
19
- */
3
+         * Take the user when they return from Twitter. Get access tokens.
4
+         * Verify credentials and redirect to based on response from Twitter.
5
+         *
6
+         * PHP Version 5.3
7
+         *
8
+         * This Source Code Form is subject to the terms of the Mozilla Public License,
9
+         * v. 2.0. If a copy of the MPL was not distributed with this file, You can
10
+         * obtain one at http://mozilla.org/MPL/2.0/.
11
+         *
12
+         * @category  phpMyFAQ
13
+         * @package   Services
14
+         * @author    Thorsten Rinne <[email protected]>
15
+         * @copyright 2010-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     2010-09-18
19
+         */
20 20
 
21 21
 //
22 22
 // Prepend and start the PHP session
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
 $oAuthVerifier = PMF_Filter::filterInput(INPUT_GET, 'oauth_verifier', FILTER_SANITIZE_STRING);
35 35
 
36 36
 if (!is_null($oAuthToken) && $_SESSION['oauth_token'] !== $oAuthToken) {
37
-  $_SESSION['oauth_status'] = 'oldtoken';
38
-  header('Location: ./clearsessions.php');
37
+    $_SESSION['oauth_status'] = 'oldtoken';
38
+    header('Location: ./clearsessions.php');
39 39
 }
40 40
 
41 41
 $connection = new TwitterOAuth(
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
 unset($_SESSION['oauth_token_secret']);
53 53
 
54 54
 if (200 === $connection->http_code) {
55
-  $_SESSION['status'] = 'verified';
56
-  header('Location: ./index.php');
55
+    $_SESSION['status'] = 'verified';
56
+    header('Location: ./index.php');
57 57
 } else {
58
-  header('Location: ./clearsessions.php');
58
+    header('Location: ./clearsessions.php');
59 59
 }
60 60
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
 //
28 28
 // Bootstrapping
29 29
 //
30
-require PMF_ROOT_DIR . '/inc/Bootstrap.php';
31
-require PMF_ROOT_DIR . '/inc/libs/twitteroauth/twitteroauth.php';
30
+require PMF_ROOT_DIR.'/inc/Bootstrap.php';
31
+require PMF_ROOT_DIR.'/inc/libs/twitteroauth/twitteroauth.php';
32 32
 
33 33
 $oAuthToken    = PMF_Filter::filterInput(INPUT_GET, 'oauth_token', FILTER_SANITIZE_STRING);
34 34
 $oAuthVerifier = PMF_Filter::filterInput(INPUT_GET, 'oauth_verifier', FILTER_SANITIZE_STRING);
Please login to merge, or discard this patch.
phpmyfaq/services/twitter/clearsessions.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
- * Clears PHP sessions and redirects to the connect page.
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   Services
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2010-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     2010-09-18
18
- */
3
+     * Clears PHP sessions and redirects to the connect page.
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   Services
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2010-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     2010-09-18
18
+     */
19 19
 
20 20
 //
21 21
 // Prepend and start the PHP session
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 //
27 27
 // Bootstrapping
28 28
 //
29
-require PMF_ROOT_DIR . '/inc/Bootstrap.php';
29
+require PMF_ROOT_DIR.'/inc/Bootstrap.php';
30 30
 
31 31
 session_destroy();
32 32
 
Please login to merge, or discard this patch.
phpmyfaq/services/twitter/connect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 //
28 28
 // Bootstrapping
29 29
 //
30
-require PMF_ROOT_DIR . '/inc/Bootstrap.php';
30
+require PMF_ROOT_DIR.'/inc/Bootstrap.php';
31 31
 
32 32
 if ($faqConfig->get('socialnetworks.twitterConsumerKey') === '' ||
33 33
     $faqConfig->get('socialnetworks.twitterConsumerSecret') === '') {
Please login to merge, or discard this patch.
phpmyfaq/ajaxresponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
 if (PMF_Language::isASupportedLanguage($ajaxLanguage)) {
41 41
     $languageCode = trim($ajaxLanguage);
42
-    require_once 'lang/language_' . $languageCode . '.php';
42
+    require_once 'lang/language_'.$languageCode.'.php';
43 43
 } else {
44 44
     $languageCode = 'en';
45 45
     require_once 'lang/language_en.php';
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 // Get current user and group id - default: -1
58 58
 //
59 59
 $user = PMF_User_CurrentUser::getFromCookie($faqConfig);
60
-if (! $user instanceof PMF_User_CurrentUser) {
60
+if (!$user instanceof PMF_User_CurrentUser) {
61 61
     $user = PMF_User_CurrentUser::getFromSession($faqConfig);
62 62
 }
63 63
 if (isset($user) && is_object($user)) {
Please login to merge, or discard this patch.