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 — 2.9 (#1384)
by
unknown
11:04
created
phpmyfaq/index.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
     'dir' => $PMF_LANG['dir'],
498 498
     'writeSendAdress' => '?'.$sids.'action=search',
499 499
     'searchBox' => $PMF_LANG['msgSearch'],
500
-    'categoryId' => ($cat === 0) ? '%' : (int) $cat,
500
+    'categoryId' => ($cat === 0) ? '%' : (int)$cat,
501 501
     'showInstantResponse' => '', // @deprecated
502 502
     'headerCategories' => $PMF_LANG['msgFullCategories'],
503 503
     'msgCategory' => $PMF_LANG['msgCategory'],
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
         array(
545 545
             'writeSendAdress' => '?'.$sids.'action=search',
546 546
             'searchBox' => $PMF_LANG['msgSearch'],
547
-            'categoryId' => ($cat === 0) ? '%' : (int) $cat,
547
+            'categoryId' => ($cat === 0) ? '%' : (int)$cat,
548 548
             'msgSearch' => sprintf(
549 549
                 '<a class="help" href="%sindex.php?action=search">%s</a>',
550 550
                 $faqSystem->getSystemUri($faqConfig),
@@ -579,7 +579,7 @@  discard block
 block discarded – undo
579 579
         'allCategories' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'showcat.html">'.$PMF_LANG['msgShowAllCategories'].'</a>',
580 580
         'faqOverview' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'overview.html">'.$PMF_LANG['faqOverview'].'</a>',
581 581
         'showSitemap' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'sitemap/A/'.$LANGCODE.'.html">'.$PMF_LANG['msgSitemap'].'</a>',
582
-        'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.html', );
582
+        'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.html',);
583 583
 } else {
584 584
     $tplNavigation = array(
585 585
         'msgSearch' => '<a href="index.php?'.$sids.'action=search">'.$PMF_LANG['msgAdvancedSearch'].'</a>',
@@ -593,7 +593,7 @@  discard block
 block discarded – undo
593 593
         'faqOverview' => '<a href="index.php?'.$sids.'action=overview">'.$PMF_LANG['faqOverview'].'</a>',
594 594
         'backToHome' => '<a href="index.php?'.$sids.'">'.$PMF_LANG['msgHome'].'</a>',
595 595
         'showSitemap' => '<a href="index.php?'.$sids.'action=sitemap&amp;lang='.$LANGCODE.'">'.$PMF_LANG['msgSitemap'].'</a>',
596
-        'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.php', );
596
+        'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.php',);
597 597
 }
598 598
 
599 599
 $tplNavigation['faqHome'] = $faqConfig->getDefaultUrl();
@@ -607,12 +607,12 @@  discard block
 block discarded – undo
607 607
 //
608 608
 // Hide "Add new FAQ" and "Add Question" from navigation if user does not have permission
609 609
 //
610
-if(!$faqConfig->get('records.allowNewFaqsForGuests') &&
610
+if (!$faqConfig->get('records.allowNewFaqsForGuests') &&
611 611
    !$user->perm->checkRight($user->getUserId(), 'addfaq'))
612 612
 {
613 613
     $tplNavigation['msgAddContent'] = '';
614 614
 }
615
-if(!$faqConfig->get('records.allowQuestionsForGuests') &&
615
+if (!$faqConfig->get('records.allowQuestionsForGuests') &&
616 616
    !$user->perm->checkRight($user->getUserId(), 'addquestion'))
617 617
 {
618 618
     $tplNavigation['msgQuestion'] = '';
@@ -708,7 +708,7 @@  discard block
 block discarded – undo
708 708
     );
709 709
 } else {
710 710
     $tpl->parseBlock('rightBox', 'latestEntriesListError', array(
711
-        'errorMsgLatest' => $latestEntriesParams['error'], )
711
+        'errorMsgLatest' => $latestEntriesParams['error'],)
712 712
     );
713 713
 }
714 714
 
Please login to merge, or discard this patch.
phpmyfaq/add.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 $captchaHelper = new PMF_Helper_Captcha($faqConfig);
68 68
 
69 69
 
70
-if(!$faqConfig->get('records.allowNewFaqsForGuests') &&
70
+if (!$faqConfig->get('records.allowNewFaqsForGuests') &&
71 71
    !$user->perm->checkRight($user->getUserId(), 'addfaq')) {
72 72
     $tpl->parseBlock(
73 73
         'writeContent',
Please login to merge, or discard this patch.
phpmyfaq/ask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
 $captchaHelper = new PMF_Helper_Captcha($faqConfig);
57 57
 
58
-if(!$faqConfig->get('records.allowNewFaqsForGuests') &&
58
+if (!$faqConfig->get('records.allowNewFaqsForGuests') &&
59 59
    !$user->perm->checkRight($user->getUserId(), 'addquestion')) {
60 60
     $tpl->parseBlock(
61 61
     'writeContent',
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Faq.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -28,17 +28,17 @@  discard block
 block discarded – undo
28 28
  * SQL constants definitions
29 29
  */
30 30
 define('FAQ_SQL_ACTIVE_YES', 'yes');
31
-define('FAQ_SQL_ACTIVE_NO',  'no');
31
+define('FAQ_SQL_ACTIVE_NO', 'no');
32 32
 
33 33
 /*
34 34
  * Query type definitions
35 35
  */
36
-define('FAQ_QUERY_TYPE_DEFAULT',      'faq_default');
37
-define('FAQ_QUERY_TYPE_APPROVAL',     'faq_approval');
38
-define('FAQ_QUERY_TYPE_EXPORT_PDF',   'faq_export_pdf');
36
+define('FAQ_QUERY_TYPE_DEFAULT', 'faq_default');
37
+define('FAQ_QUERY_TYPE_APPROVAL', 'faq_approval');
38
+define('FAQ_QUERY_TYPE_EXPORT_PDF', 'faq_export_pdf');
39 39
 define('FAQ_QUERY_TYPE_EXPORT_XHTML', 'faq_export_xhtml');
40
-define('FAQ_QUERY_TYPE_EXPORT_XML',   'faq_export_xml');
41
-define('FAQ_QUERY_TYPE_RSS_LATEST',   'faq_rss_latest');
40
+define('FAQ_QUERY_TYPE_EXPORT_XML', 'faq_export_xml');
41
+define('FAQ_QUERY_TYPE_RSS_LATEST', 'faq_rss_latest');
42 42
 
43 43
 /*
44 44
  * Sorting type definitions
@@ -379,12 +379,12 @@  discard block
 block discarded – undo
379 379
 
380 380
         $result = $this->_config->getDb()->query($query);
381 381
         $num = $this->_config->getDb()->numRows($result);
382
-        $pages = (int) ceil($num / $numPerPage);
382
+        $pages = (int)ceil($num/$numPerPage);
383 383
 
384 384
         if ($page == 1) {
385 385
             $first = 0;
386 386
         } else {
387
-            $first = $page * $numPerPage - $numPerPage;
387
+            $first = $page*$numPerPage - $numPerPage;
388 388
         }
389 389
 
390 390
         if ($num > 0) {
@@ -565,12 +565,12 @@  discard block
 block discarded – undo
565 565
         $result = $this->_config->getDb()->query($query);
566 566
 
567 567
         $num = $this->_config->getDb()->numRows($result);
568
-        $pages = ceil($num / $this->_config->get('records.numberOfRecordsPerPage'));
568
+        $pages = ceil($num/$this->_config->get('records.numberOfRecordsPerPage'));
569 569
 
570 570
         if ($page == 1) {
571 571
             $first = 0;
572 572
         } else {
573
-            $first = ($page * $this->_config->get('records.numberOfRecordsPerPage')) - $this->_config->get('records.numberOfRecordsPerPage');
573
+            $first = ($page*$this->_config->get('records.numberOfRecordsPerPage')) - $this->_config->get('records.numberOfRecordsPerPage');
574 574
         }
575 575
 
576 576
         if ($num > 0) {
@@ -1368,7 +1368,7 @@  discard block
 block discarded – undo
1368 1368
                 AND
1369 1369
                 lang = '%s'",
1370 1370
             PMF_Db::getTablePrefix(),
1371
-            (int) $faqId,
1371
+            (int)$faqId,
1372 1372
             $this->_config->getDb()->escape($faqLang)
1373 1373
         );
1374 1374
 
@@ -2441,7 +2441,7 @@  discard block
 block discarded – undo
2441 2441
                     'category_id' => $row->category_id,
2442 2442
                     'question' => $row->question,
2443 2443
                     'created' => $row->created,
2444
-                    'is_visible' => $row->is_visible, );
2444
+                    'is_visible' => $row->is_visible,);
2445 2445
             }
2446 2446
         }
2447 2447
 
@@ -2597,7 +2597,7 @@  discard block
 block discarded – undo
2597 2597
                     'revision_id' => $row->revision_id,
2598 2598
                     'user' => $row->usr,
2599 2599
                     'date' => $row->datum,
2600
-                    'changelog' => $row->what, );
2600
+                    'changelog' => $row->what,);
2601 2601
             }
2602 2602
         }
2603 2603
 
@@ -2897,13 +2897,13 @@  discard block
 block discarded – undo
2897 2897
             $mode,
2898 2898
             PMF_Db::getTablePrefix(),
2899 2899
             $mode,
2900
-            (int) $recordId);
2900
+            (int)$recordId);
2901 2901
 
2902 2902
         $result = $this->_config->getDb()->query($query);
2903 2903
 
2904 2904
         if ($this->_config->getDb()->numRows($result) > 0) {
2905 2905
             while (($row = $this->_config->getDb()->fetchObject($result))) {
2906
-                $permissions[] = (int) $row->permission;
2906
+                $permissions[] = (int)$row->permission;
2907 2907
             }
2908 2908
         }
2909 2909
 
@@ -2998,7 +2998,7 @@  discard block
 block discarded – undo
2998 2998
                 $oLink->itemTitle = $title;
2999 2999
                 $oLink->text = $title;
3000 3000
                 $oLink->tooltip = $title;
3001
-                $listItem = '<li>' . $oLink->toHtmlAnchor() . '</li>';
3001
+                $listItem = '<li>'.$oLink->toHtmlAnchor().'</li>';
3002 3002
 
3003 3003
                 $output .= $listItem;
3004 3004
             }
@@ -3087,7 +3087,7 @@  discard block
 block discarded – undo
3087 3087
                         $row->answer_id,
3088 3088
                         $this->pmf_lang['msg2answerFAQ']
3089 3089
                     );
3090
-                } else if(!$this->_config->get('records.allowNewFaqsForGuests') &&
3090
+                } else if (!$this->_config->get('records.allowNewFaqsForGuests') &&
3091 3091
                           !$user->perm->checkRight($user->getUserId(), 'addfaq')) {
3092 3092
                     $output .= sprintf(
3093 3093
                         '<td>%s</td>',
@@ -3160,7 +3160,7 @@  discard block
 block discarded – undo
3160 3160
                 $lang
3161 3161
             );
3162 3162
 
3163
-            $retval = (bool) $this->_config->getDb()->query($update);
3163
+            $retval = (bool)$this->_config->getDb()->query($update);
3164 3164
         }
3165 3165
 
3166 3166
         return $retval;
Please login to merge, or discard this patch.