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 ( 670a78...6a8f45 )
by Thorsten
24:18 queued 06:35
created
phpmyfaq/admin/ajax.records.php 1 patch
Switch Indentation   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -51,102 +51,102 @@
 block discarded – undo
51 51
 switch($ajax_action) {
52 52
 
53 53
     // save active FAQs
54
-    case 'save_active_records':
55
-        if ($permission['approverec']) {
56
-            if (!empty($items)) {
57
-                $faq = new PMF_Faq($faqConfig);
54
+        case 'save_active_records':
55
+            if ($permission['approverec']) {
56
+                if (!empty($items)) {
57
+                    $faq = new PMF_Faq($faqConfig);
58 58
                 
59
-                foreach ($items as $item) {
60
-                    if (is_array($item) && count($item) == 3 && PMF_Language::isASupportedLanguage($item[1])) {
61
-                        echo $faq->updateRecordFlag((int)$item[0], addslashes($item[1]), $item[2], 'active');
59
+                    foreach ($items as $item) {
60
+                        if (is_array($item) && count($item) == 3 && PMF_Language::isASupportedLanguage($item[1])) {
61
+                            echo $faq->updateRecordFlag((int)$item[0], addslashes($item[1]), $item[2], 'active');
62
+                        }
62 63
                     }
63 64
                 }
65
+            } else {
66
+                echo $PMF_LANG['err_NotAuth'];
64 67
             }
65
-        } else {
66
-            echo $PMF_LANG['err_NotAuth'];
67
-        }
68
-        break;
68
+            break;
69 69
 
70
-    // save sticky FAQs
71
-    case 'save_sticky_records':
72
-        if ($permission['editbt']) {
70
+        // save sticky FAQs
71
+        case 'save_sticky_records':
72
+            if ($permission['editbt']) {
73 73
 
74
-            if (!empty($items)) {
75
-                $faq = new PMF_Faq($faqConfig);
74
+                if (!empty($items)) {
75
+                    $faq = new PMF_Faq($faqConfig);
76 76
 
77
-                foreach ($items as $item) {
78
-                    if (is_array($item) && count($item) == 3 && PMF_Language::isASupportedLanguage($item[1])) {
79
-                        echo $faq->updateRecordFlag((int)$item[0], addslashes($item[1]), $item[2], 'sticky');
77
+                    foreach ($items as $item) {
78
+                        if (is_array($item) && count($item) == 3 && PMF_Language::isASupportedLanguage($item[1])) {
79
+                            echo $faq->updateRecordFlag((int)$item[0], addslashes($item[1]), $item[2], 'sticky');
80
+                        }
80 81
                     }
81 82
                 }
83
+            } else {
84
+                echo $PMF_LANG['err_NotAuth'];
82 85
             }
83
-        } else {
84
-            echo $PMF_LANG['err_NotAuth'];
85
-        }
86
-        break;
86
+            break;
87 87
 
88
-    // search FAQs for suggestions
89
-    case 'search_records':
90
-        if ($permission['editbt']) {
88
+        // search FAQs for suggestions
89
+        case 'search_records':
90
+            if ($permission['editbt']) {
91 91
 
92
-            $faq             = new PMF_Faq($faqConfig);
93
-            $faqSearch       = new PMF_Search($faqConfig);
94
-            $faqSearchResult = new PMF_Search_Resultset($user, $faq, $faqConfig);
95
-            $searchResult    = '';
96
-            $searchString    = PMF_Filter::filterInput(INPUT_POST, 'search', FILTER_SANITIZE_STRIPPED);
92
+                $faq             = new PMF_Faq($faqConfig);
93
+                $faqSearch       = new PMF_Search($faqConfig);
94
+                $faqSearchResult = new PMF_Search_Resultset($user, $faq, $faqConfig);
95
+                $searchResult    = '';
96
+                $searchString    = PMF_Filter::filterInput(INPUT_POST, 'search', FILTER_SANITIZE_STRIPPED);
97 97
 
98
-            if (!is_null($searchString)) {
99
-                $searchResult = $faqSearch->search($searchString, false);
98
+                if (!is_null($searchString)) {
99
+                    $searchResult = $faqSearch->search($searchString, false);
100 100
 
101
-                $faqSearchResult->reviewResultset($searchResult);
101
+                    $faqSearchResult->reviewResultset($searchResult);
102 102
 
103
-                $searchHelper = new PMF_Helper_Search($faqConfig);
104
-                $searchHelper->setSearchterm($searchString);
103
+                    $searchHelper = new PMF_Helper_Search($faqConfig);
104
+                    $searchHelper->setSearchterm($searchString);
105 105
 
106
-                echo $searchHelper->renderAdminSuggestionResult($faqSearchResult);
107
-            }
106
+                    echo $searchHelper->renderAdminSuggestionResult($faqSearchResult);
107
+                }
108 108
             
109
-        } else {
110
-            echo $PMF_LANG['err_NotAuth'];
111
-        }
112
-        break;
109
+            } else {
110
+                echo $PMF_LANG['err_NotAuth'];
111
+            }
112
+            break;
113 113
 
114
-    // delete FAQs
115
-    case 'delete_record':
116
-        if ($permission['delbt']) {
114
+        // delete FAQs
115
+        case 'delete_record':
116
+            if ($permission['delbt']) {
117 117
 
118
-            $recordId   = PMF_Filter::filterInput(INPUT_POST, 'record_id', FILTER_VALIDATE_INT);
119
-            $recordLang = PMF_Filter::filterInput(INPUT_POST, 'record_lang', FILTER_SANITIZE_STRING);
118
+                $recordId   = PMF_Filter::filterInput(INPUT_POST, 'record_id', FILTER_VALIDATE_INT);
119
+                $recordLang = PMF_Filter::filterInput(INPUT_POST, 'record_lang', FILTER_SANITIZE_STRING);
120 120
 
121
-            $logging = new PMF_Logging($faqConfig);
122
-            $logging->logAdmin($user, 'Deleted FAQ ID ' . $recordId);
121
+                $logging = new PMF_Logging($faqConfig);
122
+                $logging->logAdmin($user, 'Deleted FAQ ID ' . $recordId);
123 123
 
124
-            $faq->deleteRecord($recordId, $recordLang);
125
-            echo $PMF_LANG['ad_entry_delsuc'];
124
+                $faq->deleteRecord($recordId, $recordLang);
125
+                echo $PMF_LANG['ad_entry_delsuc'];
126 126
             
127
-        } else {
128
-            echo $PMF_LANG['err_NotAuth'];
129
-        }
130
-        break;
131
-
132
-    // delete open questions
133
-    case 'delete_question':
134
-        if ($permission['delquestion']) {
135
-
136
-            $checks  = array(
137
-                'filter'  => FILTER_VALIDATE_INT,
138
-                'flags'   => FILTER_REQUIRE_ARRAY
139
-            );
140
-            $questionIds = PMF_Filter::filterInputArray(INPUT_POST, array('questions' => $checks));
141
-
142
-            if (!is_null($questionIds['questions'])) {
143
-                foreach ($questionIds['questions'] as $questionId) {
144
-                    $faq->deleteQuestion((int)$questionId);
127
+            } else {
128
+                echo $PMF_LANG['err_NotAuth'];
129
+            }
130
+            break;
131
+
132
+        // delete open questions
133
+        case 'delete_question':
134
+            if ($permission['delquestion']) {
135
+
136
+                $checks  = array(
137
+                    'filter'  => FILTER_VALIDATE_INT,
138
+                    'flags'   => FILTER_REQUIRE_ARRAY
139
+                );
140
+                $questionIds = PMF_Filter::filterInputArray(INPUT_POST, array('questions' => $checks));
141
+
142
+                if (!is_null($questionIds['questions'])) {
143
+                    foreach ($questionIds['questions'] as $questionId) {
144
+                        $faq->deleteQuestion((int)$questionId);
145
+                    }
145 146
                 }
147
+                echo $PMF_LANG['ad_entry_delsuc'];
148
+            } else {
149
+                echo $PMF_LANG['err_NotAuth'];
146 150
             }
147
-            echo $PMF_LANG['ad_entry_delsuc'];
148
-        } else {
149
-            echo $PMF_LANG['err_NotAuth'];
150
-        }
151
-        break;
151
+            break;
152 152
 }
Please login to merge, or discard this patch.
phpmyfaq/install/update.php 1 patch
Switch Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -291,18 +291,18 @@
 block discarded – undo
291 291
         if (isset($PMF_LANG['metaCharset']) && strtolower($PMF_LANG['metaCharset']) != 'utf-8') {
292 292
             // UTF-8 Migration
293 293
             switch($DB['type']) {
294
-            case 'mysql':
295
-                include 'mysql.utf8migration.php';
296
-                break;
297
-
298
-            case 'mysqli':
299
-                include 'mysqli.utf8migration.php';
300
-                break;
301
-
302
-            default:
303
-                echo '<p class="hint">Please read <a target="_blank" href="../docs/documentation.en.html">' .
304
-                      'documenation</a> about migration to UTF-8.</p>';
305
-                break;
294
+                case 'mysql':
295
+                    include 'mysql.utf8migration.php';
296
+                    break;
297
+
298
+                case 'mysqli':
299
+                    include 'mysqli.utf8migration.php';
300
+                    break;
301
+
302
+                default:
303
+                    echo '<p class="hint">Please read <a target="_blank" href="../docs/documentation.en.html">' .
304
+                          'documenation</a> about migration to UTF-8.</p>';
305
+                    break;
306 306
             }
307 307
         }
308 308
 
Please login to merge, or discard this patch.