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
Pull Request — master (#1301)
by
unknown
13:19
created
phpmyfaq/admin/ajax.config.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $password = PMF_Filter::filterInput(INPUT_GET, 'password', FILTER_SANITIZE_STRING);
46 46
 
47 47
         $data = array(
48
-            'url'      => 'http://' . $url . '.' . $_SERVER['SERVER_NAME'],
48
+            'url'      => 'http://'.$url.'.'.$_SERVER['SERVER_NAME'],
49 49
             'instance' => $instance,
50 50
             'comment'  => $comment
51 51
         );
@@ -61,12 +61,12 @@  discard block
 block discarded – undo
61 61
 
62 62
         if ($faqInstanceClient->createClientFolder($hostname)) {
63 63
 
64
-            $clientDir   = PMF_ROOT_DIR . '/multisite/' . $hostname;
64
+            $clientDir   = PMF_ROOT_DIR.'/multisite/'.$hostname;
65 65
             $clientSetup = new PMF_Instance_Setup();
66 66
             $clientSetup->setRootDir($clientDir);
67 67
 
68
-            $faqInstanceClient->copyConstantsFile($clientDir . '/constants.php');
69
-            $faqInstanceClient->copyLdapConstantsFile($clientDir . '/constants_ldap.php');
68
+            $faqInstanceClient->copyConstantsFile($clientDir.'/constants.php');
69
+            $faqInstanceClient->copyLdapConstantsFile($clientDir.'/constants_ldap.php');
70 70
 
71 71
             $dbSetup = array(
72 72
                 'dbServer'       => $DB['server'],
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             );
79 79
             $clientSetup->createDatabaseFile($dbSetup, '');
80 80
 
81
-            $faqInstanceClient->setClientUrl('http://' . $hostname);
81
+            $faqInstanceClient->setClientUrl('http://'.$hostname);
82 82
             $faqInstanceClient->createClientTables($dbSetup['dbPrefix']);
83 83
 
84 84
             PMF_Db::setTablePrefix($dbSetup['dbPrefix']);
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             $stopwords->setLanguage($stopwordsLang);
169 169
             if (null !== $stopwordId && -1 < $stopwordId) {
170 170
                 echo $stopwords->update($stopwordId, $stopword);
171
-            } elseif (!$stopwords->match($stopword)){
171
+            } elseif (!$stopwords->match($stopword)) {
172 172
                 echo $stopwords->add($stopword);
173 173
             } else {
174 174
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 use Symfony\Component\HttpFoundation\JsonResponse;
22
-
23 22
 use PMF\Helper\ResponseWrapper;
24 23
 if (!defined('IS_VALID_PHPMYFAQ') || !$user->perm->checkRight($user->getUserId(), 'editconfig')) {
25 24
     header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.category.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,16 +19,16 @@
 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
 $ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
30 30
 
31
-switch($ajaxAction) {
31
+switch ($ajaxAction) {
32 32
 
33 33
     case 'getpermissions':
34 34
 
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 1 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
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.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -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.
phpmyfaq/services/twitter/clearsessions.php 1 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/feed/category/rss.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
                 $oLink            = new PMF_Link($link, $faqConfig);
127 127
                 $oLink->itemTitle = $item['record_title'];
128 128
                 $link             = $oLink->toString();
129
-           }
129
+            }
130 130
         }
131 131
 
132 132
         $rss->startElement('item');
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 //
26 26
 // Bootstrapping
27 27
 //
28
-require PMF_ROOT_DIR . '/inc/Bootstrap.php';
28
+require PMF_ROOT_DIR.'/inc/Bootstrap.php';
29 29
 
30 30
 //
31 31
 // get language (default: english)
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 PMF_String::init($LANGCODE);
40 40
 
41 41
 // Preload English strings
42
-require_once PMF_ROOT_DIR . '/lang/language_en.php';
42
+require_once PMF_ROOT_DIR.'/lang/language_en.php';
43 43
 $faqConfig->setLanguage($Language);
44 44
 
45 45
 if ($faqConfig->get('security.enableLoginOnly')) {
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 $rss->startElement('rss');
111 111
 $rss->writeAttribute('version', '2.0');
112 112
 $rss->startElement('channel');
113
-$rss->writeElement('title', $faqConfig->get('main.titleFAQ') . ' - ');
113
+$rss->writeElement('title', $faqConfig->get('main.titleFAQ').' - ');
114 114
 $rss->writeElement('description', html_entity_decode($faqConfig->get('main.metaDescription')));
115 115
 $rss->writeElement('link', $faqConfig->get('main.referenceURL'));
116 116
 
@@ -129,14 +129,14 @@  discard block
 block discarded – undo
129 129
         }
130 130
 
131 131
         $rss->startElement('item');
132
-        $rss->writeElement('title', html_entity_decode($item['record_title'] .
133
-                                    ' (' . $item['visits'] . ' '.$PMF_LANG['msgViews'].')', ENT_COMPAT, 'UTF-8'));
132
+        $rss->writeElement('title', html_entity_decode($item['record_title'].
133
+                                    ' ('.$item['visits'].' '.$PMF_LANG['msgViews'].')', ENT_COMPAT, 'UTF-8'));
134 134
 
135 135
         $rss->startElement('description');
136 136
         $rss->writeCdata($item['record_preview']);
137 137
         $rss->endElement();
138 138
 
139
-        $rss->writeElement('link', $faqConfig->get('main.referenceURL') . $link);
139
+        $rss->writeElement('link', $faqConfig->get('main.referenceURL').$link);
140 140
         $rss->writeElement('pubDate', PMF_Date::createRFC822Date($item['record_date'], true));
141 141
 
142 142
         $rss->endElement();
Please login to merge, or discard this patch.
phpmyfaq/contact.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  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
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 $captchaHelper = new PMF_Helper_Captcha($faqConfig);
40 40
 
41
-$tpl->parse (
41
+$tpl->parse(
42 42
     'writeContent',
43 43
     array(
44 44
         'msgContact'         => $PMF_LANG['msgContact'],
Please login to merge, or discard this patch.