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 (#1192)
by
unknown
14:48
created
phpmyfaq/attachment.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
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $attachment->rawOut();
70 70
         exit(0);
71 71
     } catch (Exception $e) {
72
-        $attachmentErrors[] = $PMF_LANG['msgAttachmentInvalid'] . ' (' . $e->getMessage() . ')';
72
+        $attachmentErrors[] = $PMF_LANG['msgAttachmentInvalid'].' ('.$e->getMessage().')';
73 73
     }
74 74
 } else {
75 75
     $attachmentErrors[] = $PMF_LANG['err_NotAuth'];
Please login to merge, or discard this patch.
phpmyfaq/ucp.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
 
22 22
 if (!defined('IS_VALID_PHPMYFAQ')) {
23 23
     $protocol = 'http';
24
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
25 25
         $protocol = 'https';
26 26
     }
27
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
28 28
     exit();
29 29
 }
30 30
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     $tpl->merge('writeContent', 'index');
68 68
 } else {
69 69
     // Redirect to login
70
-    RedirectResponse::create($faqConfig->get('main.referenceURL') . '/')
70
+    RedirectResponse::create($faqConfig->get('main.referenceURL').'/')
71 71
         ->send();
72 72
     exit;
73 73
 }
74 74
\ No newline at end of file
Please login to merge, or discard this patch.
phpmyfaq/pdf.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
 
38 38
 // Found an article language?
39 39
 $lang = PMF_Filter::filterInput(INPUT_POST, 'artlang', FILTER_SANITIZE_STRING);
40
-if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang) ) {
40
+if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang)) {
41 41
     $lang = PMF_Filter::filterInput(INPUT_GET, 'artlang', FILTER_SANITIZE_STRING);
42
-    if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang) ) {
42
+    if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang)) {
43 43
         $lang = $LANGCODE;
44 44
     }
45 45
 }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
 // Get current user and group id - default: -1
67 67
 if (!is_null($user) && $user instanceof PMF_User_CurrentUser) {
68
-    $current_user   = $user->getUserId();
68
+    $current_user = $user->getUserId();
69 69
     if ($user->perm instanceof PMF_Perm_Medium) {
70 70
         $current_groups = $user->perm->getUserGroups($current_user);
71 71
     } else {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 $category = new PMF_Category($faqConfig, $current_groups, true);
91 91
 $category->setUser($current_user);
92 92
 
93
-$pdf  = new PMF_Export_Pdf($faq, $category, $faqConfig);
93
+$pdf = new PMF_Export_Pdf($faq, $category, $faqConfig);
94 94
 
95 95
 if (true === $getAll) {
96 96
     $category->buildTree();
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     $faq->getRecord($id);
115 115
     $faq->faqRecord['category_id'] = $currentCategory;
116 116
 
117
-    $filename = 'FAQ-' . $id . '-' . $lang . '.pdf';
117
+    $filename = 'FAQ-'.$id.'-'.$lang.'.pdf';
118 118
     $pdfFile  = $pdf->generateFile($faq->faqRecord, $filename);
119 119
 }
120 120
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
 if (preg_match("/MSIE/i", $_SERVER["HTTP_USER_AGENT"])) {
128 128
     $response->headers->set('Content-Transfer-Encoding', 'binary');
129
-    $response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
129
+    $response->headers->set('Content-Disposition', 'attachment; filename='.$filename);
130 130
 }
131 131
 
132 132
 $response->send();
Please login to merge, or discard this patch.
phpmyfaq/news.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
 
24 24
 if (!defined('IS_VALID_PHPMYFAQ')) {
25 25
     $protocol = 'http';
26
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
26
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
27 27
         $protocol = 'https';
28 28
     }
29
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
29
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
30 30
     exit();
31 31
 }
32 32
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 $newsId = PMF_Filter::filterInput(INPUT_GET, 'newsid', FILTER_VALIDATE_INT);
44 44
 
45 45
 if (is_null($newsId)) {
46
-    RedirectResponse::create('http://'.$_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']))
46
+    RedirectResponse::create('http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']))
47 47
         ->send();
48 48
     exit;
49 49
 }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 }
56 56
 
57 57
 // Define the header of the page
58
-$newsMainHeader = $faqConfig->get('main.titleFAQ') . $PMF_LANG['msgNews'];
58
+$newsMainHeader = $faqConfig->get('main.titleFAQ').$PMF_LANG['msgNews'];
59 59
 if ($faqConfig->get('main.enableRssFeeds')) {
60 60
     $newsFeed = '&nbsp;<a href="feed/news/rss.php" target="_blank"><i class="fa fa-rss"></i></a>';
61 61
 } else {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         'writeContent'        => $newsContent,
128 128
         'writeDateMsg'        => $newsDate,
129 129
         'msgAboutThisNews'    => $PMF_LANG['msgAboutThisNews'],
130
-        'writeAuthor'         => ($news['active'] && (!$expired)) ? $PMF_LANG['msgAuthor'] . ': ' . $news['authorName'] : '',
130
+        'writeAuthor'         => ($news['active'] && (!$expired)) ? $PMF_LANG['msgAuthor'].': '.$news['authorName'] : '',
131 131
         'editThisEntry'       => $editThisEntry,
132 132
         'writeCommentMsg'     => $commentMessage,
133 133
         'msgWriteComment'     => $PMF_LANG['newsWriteComment'],
Please login to merge, or discard this patch.