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.9 ( 404e32...290916 )
by Thorsten
13:13 queued 04:19
created
phpmyfaq/admin/record.edit.php 2 patches
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -623,12 +623,15 @@  discard block
 block discarded – undo
623 623
                                         <input type="radio" name="active" value="no"
624 624
                                             <?php if (isset($sul)) { echo $sul; } ?>>
625 625
                                         <?php echo $PMF_LANG['ad_gen_no'] ?>
626
-                                <?php else: ?>
626
+                                <?php else {
627
+    : ?>
627 628
                                         <br>
628 629
                                         <input type="radio" name="active" value="no" checked>
629 630
                                         <?php echo $PMF_LANG['ad_gen_no'] ?>
630 631
 
631
-                                <?php endif; ?>
632
+                                <?php endif;
633
+}
634
+?>
632 635
                                     </label>
633 636
                             </div>
634 637
                         </div>
@@ -689,9 +692,12 @@  discard block
 block discarded – undo
689 692
                             </div>
690 693
                         </div>
691 694
                     </div>
692
-                    <?php else: ?>
695
+                    <?php else {
696
+    : ?>
693 697
                         <input type="hidden" name="grouppermission" value="all">
694
-                    <?php endif; ?>
698
+                    <?php endif;
699
+}
700
+?>
695 701
                     <div class="panel-heading">
696 702
                         <?php echo $PMF_LANG['ad_entry_userpermission']; ?>
697 703
                     </div>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
             $queryString = 'saveentry&amp;id='.$faqData['id'];
122 122
         } else {
123 123
             $queryString = 'insertentry';
124
-            if (isset($categoryId)){
124
+            if (isset($categoryId)) {
125 125
                 $categories = ['category_id' => $categoryId, 'category_lang' => $lang];
126 126
             } 
127 127
         }
Please login to merge, or discard this patch.
phpmyfaq/admin/category.main.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
                             <i aria-hidden="true" class="fa fa-plus fa-fw"></i> <?php echo $PMF_LANG['ad_kateg_add']; ?>
37 37
                         </a>
38 38
                         <a class="btn btn-info" href="?action=showcategory">
39
-                            <i aria-hidden="true" class="fa fa-th fa-fw"></i> <?php echo $PMF_LANG['ad_categ_show'];?>
39
+                            <i aria-hidden="true" class="fa fa-th fa-fw"></i> <?php echo $PMF_LANG['ad_categ_show']; ?>
40 40
                         </a>
41 41
                     </div>
42 42
                 </h2>
Please login to merge, or discard this patch.
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -322,26 +322,26 @@  discard block
 block discarded – undo
322 322
         // add faq to category (always)
323 323
         printf('
324 324
            <a class="btn btn-info btn-sm" href="?action=editentry&amp;cat=%s&amp;lang=%s"><span title="%s" class="fa fa-file-text-o fa-fw"></span></a> ',
325
-           $cat['id'],
326
-           $cat['lang'],
327
-           $PMF_LANG['ad_quick_entry']
325
+            $cat['id'],
326
+            $cat['lang'],
327
+            $PMF_LANG['ad_quick_entry']
328 328
         );
329 329
 
330 330
         if ($cat['lang'] == $lang) {
331 331
             // add sub category (if current language)
332
-           printf('
332
+            printf('
333 333
                <a class="btn btn-info btn-sm" href="?action=addcategory&amp;cat=%s&amp;lang=%s"><span title="%s" class="fa fa-plus fa-fw"></span></a> ',
334
-               $cat['id'],
335
-               $cat['lang'],
336
-               $PMF_LANG['ad_quick_category']
337
-           );
334
+                $cat['id'],
335
+                $cat['lang'],
336
+                $PMF_LANG['ad_quick_category']
337
+            );
338 338
 
339
-           // rename (sub) category (if current language)
340
-           printf('
339
+            // rename (sub) category (if current language)
340
+            printf('
341 341
                <a class="btn btn-info btn-sm" href="?action=editcategory&amp;cat=%s"><span title="%s" class="fa fa-edit fa-fw"></a> ',
342
-               $cat['id'],
343
-               $PMF_LANG['ad_kateg_rename']
344
-           );
342
+                $cat['id'],
343
+                $PMF_LANG['ad_kateg_rename']
344
+            );
345 345
         }
346 346
 
347 347
         // translate category (always)
@@ -365,20 +365,20 @@  discard block
 block discarded – undo
365 365
 
366 366
         if ($cat['lang'] == $lang) {
367 367
             // cut category (if current language)
368
-           printf(
369
-               '<a class="btn btn-warning btn-sm" href="?action=cutcategory&amp;cat=%s"><span title="%s" class="fa fa-cut fa-fw"></a> ',
370
-               $cat['id'],
371
-               $PMF_LANG['ad_categ_cut']
372
-           );
368
+            printf(
369
+                '<a class="btn btn-warning btn-sm" href="?action=cutcategory&amp;cat=%s"><span title="%s" class="fa fa-cut fa-fw"></a> ',
370
+                $cat['id'],
371
+                $PMF_LANG['ad_categ_cut']
372
+            );
373 373
 
374 374
             if ($category->numParent($cat['parent_id']) > 1) {
375 375
                 // move category (if current language) AND more than 1 category at the same level)
376
-              printf(
377
-                  '<a class="btn btn-warning btn-sm" href="?action=movecategory&amp;cat=%s&amp;parent_id=%s"><span title="%s" class="fa fa-sort fa-fw"></a> ',
378
-                  $cat['id'],
379
-                  $cat['parent_id'],
380
-                  $PMF_LANG['ad_categ_move']
381
-              );
376
+                printf(
377
+                    '<a class="btn btn-warning btn-sm" href="?action=movecategory&amp;cat=%s&amp;parent_id=%s"><span title="%s" class="fa fa-sort fa-fw"></a> ',
378
+                    $cat['id'],
379
+                    $cat['parent_id'],
380
+                    $PMF_LANG['ad_categ_move']
381
+                );
382 382
             }
383 383
         }
384 384
 
Please login to merge, or discard this patch.
phpmyfaq/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         'writeNumberOfArticles' => $plr->getMsg('plmsgHomeArticlesOnline', $faq->getNumberOfRecords($LANGCODE)),
65 65
         'writeSendAdress' => '?'.$sids.'action=search',
66 66
         'searchBox' => $PMF_LANG['msgSearch'],
67
-        'categoryId' => ($cat === 0) ? '%' : (int) $cat,
67
+        'categoryId' => ($cat === 0) ? '%' : (int)$cat,
68 68
         'msgSearch' => sprintf(
69 69
             '<a class="help" href="%sindex.php?action=search">%s</a>',
70 70
             $faqSystem->getSystemUri($faqConfig),
Please login to merge, or discard this patch.
phpmyfaq/feed/news/rss.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     }
63 63
 } else {
64 64
     $user = PMF_User_CurrentUser::getFromCookie($faqConfig);
65
-    if (! $user instanceof PMF_User_CurrentUser) {
65
+    if (!$user instanceof PMF_User_CurrentUser) {
66 66
         $user = PMF_User_CurrentUser::getFromSession($faqConfig);
67 67
     }
68 68
 }
Please login to merge, or discard this patch.
phpmyfaq/admin/footer.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -169,12 +169,15 @@
 block discarded – undo
169 169
             action: 'ajax',
170 170
             ajax: 'recordAdd'
171 171
         };
172
-        <?php else: ?>
172
+        <?php else {
173
+    : ?>
173 174
         var data = {
174 175
             action: 'ajax',
175 176
             ajax: 'recordSave'
176 177
         };
177
-        <?php endif; ?>
178
+        <?php endif;
179
+}
180
+?>
178 181
 
179 182
         $.each($('#faqEditor').serializeArray(), function(i, field) {
180 183
             data[field.name] = field.value;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 <iframe id="keepPMFSessionAlive" src="session.keepalive.php?lang=<?php echo $LANGCODE ?>" width="0" height="0"
61 61
         style="display: none;"></iframe>
62 62
 <?php
63
-    if (isset($auth) && (('takequestion' == $action) || ('editentry' == $action) || ('editpreview'  == $action) ||
63
+    if (isset($auth) && (('takequestion' == $action) || ('editentry' == $action) || ('editpreview' == $action) ||
64 64
                          ('addnews' == $action) || ('editnews' == $action) || ('copyentry' == $action))) {
65 65
         if ($faqConfig->get('main.enableWysiwygEditor') == true) {
66 66
             ?>
Please login to merge, or discard this patch.
phpmyfaq/admin/backup.import.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
                 $errorMessage = 'The uploaded file exceeds the upload_max_filesize directive in php.ini.';
124 124
                 break;
125 125
             case 2:
126
-                $errorMessage = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the ' .
126
+                $errorMessage = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the '.
127 127
                                 'HTML form.';
128 128
                 break;
129 129
             case 3:
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Helper/Search.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -208,8 +208,8 @@  discard block
 block discarded – undo
208 208
         $confPerPage = $this->_config->get('records.numberOfRecordsPerPage');
209 209
         $numOfResults = $resultSet->getNumberOfResults();
210 210
 
211
-        $totalPages = ceil($numOfResults / $confPerPage);
212
-        $lastPage = $currentPage * $confPerPage;
211
+        $totalPages = ceil($numOfResults/$confPerPage);
212
+        $lastPage = $currentPage*$confPerPage;
213 213
         $firstPage = $lastPage - $confPerPage;
214 214
         if ($lastPage > $numOfResults) {
215 215
             $lastPage = $numOfResults;
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
                 $oLink->itemTitle = $oLink->tooltip = $result->question;
287 287
 
288 288
                 $html .= '<li>';
289
-                $html .= $this->renderScore($result->score * 33);
289
+                $html .= $this->renderScore($result->score*33);
290 290
                 $html .= sprintf('<strong>%s</strong>: %s<br />',
291 291
                     $categoryInfo[0]['name'],
292 292
                     $oLink->toHtmlAnchor()
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Auth/Ldap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
                 }
216 216
 
217 217
                 if (false !== $this->ldap->getDn($login)) {
218
-                    $this->activeServer = (int) $key;
218
+                    $this->activeServer = (int)$key;
219 219
                     break;
220 220
                 }
221 221
             }
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
             htmlspecialchars_decode($password)
252 252
         );
253 253
 
254
-        if (! $this->ldap->bind($bindLogin, htmlspecialchars_decode($password))) {
254
+        if (!$this->ldap->bind($bindLogin, htmlspecialchars_decode($password))) {
255 255
             $this->errors[] = $this->ldap->error;
256 256
 
257 257
             return false;
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
                 }
289 289
 
290 290
                 if (false !== $this->ldap->getDn($login)) {
291
-                    $this->activeServer = (int) $key;
291
+                    $this->activeServer = (int)$key;
292 292
                     break;
293 293
                 }
294 294
             }
Please login to merge, or discard this patch.
phpmyfaq/setup/update.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     // Backup of config/elasticsearch.php if exists
232 232
     if (file_exists(PMF_ROOT_DIR.'/config/elasticsearch.php')) {
233 233
         if (!copy(PMF_ROOT_DIR.'/config/elasticsearch.php', PMF_ROOT_DIR.'/config/elasticsearch.bak.php')) {
234
-            echo '<p class="alert alert-danger"><strong>Error:</strong> The backup file ' .
234
+            echo '<p class="alert alert-danger"><strong>Error:</strong> The backup file '.
235 235
                 '../config/elasticsearch.bak.php could not be written. Please correct this!</p>';
236 236
         } else {
237 237
             $checkElasticsearchSetupFile = true;
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
         foreach ($query as $key => $executeQuery) {
600 600
             $result = $faqConfig->getDb()->query($executeQuery);
601 601
             echo '.';
602
-            if (!($key % 100)) {
602
+            if (!($key%100)) {
603 603
                 echo '<br />';
604 604
             }
605 605
             if (!$result) {
@@ -619,7 +619,7 @@  discard block
 block discarded – undo
619 619
             }
620 620
             usleep(10000);
621 621
             ++$count;
622
-            if (!($count % 10)) {
622
+            if (!($count%10)) {
623 623
                 ob_flush();
624 624
             }
625 625
         }
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
         $faqConfig->add('main.enableGzipCompression', 'true');
714 714
 
715 715
         if ('sqlite3' === $DB['type']) {
716
-            $query[] = 'ALTER TABLE ' . $prefix . 'faquser ADD COLUMN success INT(1) NULL DEFAULT 1';
716
+            $query[] = 'ALTER TABLE '.$prefix.'faquser ADD COLUMN success INT(1) NULL DEFAULT 1';
717 717
         } elseif ('pgsql' === $DB['type']) {
718 718
             $query[] = 'ALTER TABLE '.$prefix.'faquser ADD success SMALLINT NULL DEFAULT 1';
719 719
         } else {
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 // 2.5 versions only
161 161
                 if (version_compare($version, '2.6.0-alpha', '<') && !is_writeable('../template')) {
162 162
                     echo '<p class="alert alert-danger text-center"><strong>Please change the directory ../template '.
163
-                         'and its contents writable (777 on Linux/UNIX).</strong></p>';
163
+                            'and its contents writable (777 on Linux/UNIX).</strong></p>';
164 164
                 }
165 165
 
166 166
                 // We only support updates from 2.6+
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     if (file_exists(PMF_ROOT_DIR.'/config/database.php')) {
207 207
         if (!copy(PMF_ROOT_DIR.'/config/database.php', PMF_ROOT_DIR.'/config/database.bak.php')) {
208 208
             echo '<p class="alert alert-danger"><strong>Error:</strong> The backup file ../config/database.bak.php '.
209
-                  'could not be written. Please correct this!</p>';
209
+                    'could not be written. Please correct this!</p>';
210 210
         } else {
211 211
             $checkDatabaseSetupFile = true;
212 212
             $updateMessages[] = 'A backup of your database configuration file has been made.';
@@ -603,8 +603,8 @@  discard block
 block discarded – undo
603 603
             if (!$result) {
604 604
                 echo '</div>';
605 605
                 echo '<p class="alert alert-danger"><strong>Error:</strong> Please update your version of phpMyFAQ '.
606
-                      'once again or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.'.
607
-                      '</p>';
606
+                        'once again or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.'.
607
+                        '</p>';
608 608
                 printf(
609 609
                     '<p class="alert alert-danger"><strong>DB error:</strong> %s</p>',
610 610
                     $faqConfig->getDb()->error()
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
             printf('<span title="%s"><i aria-hidden="true" class="fa fa-circle"></i></span>', $executeQuery);
907 907
             if (!$result) {
908 908
                 echo '<p class="alert alert-danger"><strong>Error:</strong> Please install your version of phpMyFAQ once again '.
909
-                      'or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.</p>';
909
+                        'or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.</p>';
910 910
                 printf('<p class="error"><strong>DB error:</strong> %s</p>', $faqConfig->getDb()->error());
911 911
                 printf('<code>%s</code>', htmlentities($executeQuery));
912 912
                 PMF_System::renderFooter();
Please login to merge, or discard this patch.