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 ( dd391a...bc727d )
by Thorsten
13:32
created
phpmyfaq/inc/PMF/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             }
88 88
 
89 89
             foreach ($botBlacklist as $bot) {
90
-                if ((bool) PMF_String::strstr($agent, $bot)) {
90
+                if ((bool)PMF_String::strstr($agent, $bot)) {
91 91
                     ++$bots;
92 92
                 }
93 93
             }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/String/Abstract.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -77,14 +77,14 @@
 block discarded – undo
77 77
             return mb_detect_encoding($str, 'UTF-8', true);
78 78
         } else {
79 79
             $regex = '/^([\x00-\x7f]|'
80
-                   .'[\xc2-\xdf][\x80-\xbf]|'
81
-                   .'\xe0[\xa0-\xbf][\x80-\xbf]|'
82
-                   .'[\xe1-\xec][\x80-\xbf]{2}|'
83
-                   .'\xed[\x80-\x9f][\x80-\xbf]|'
84
-                   .'[\xee-\xef][\x80-\xbf]{2}|'
85
-                   .'\xf0[\x90-\xbf][\x80-\xbf]{2}|'
86
-                   .'[\xf1-\xf3][\x80-\xbf]{3}|'
87
-                   .'\xf4[\x80-\x8f][\x80-\xbf]{2})*$/';
80
+                    .'[\xc2-\xdf][\x80-\xbf]|'
81
+                    .'\xe0[\xa0-\xbf][\x80-\xbf]|'
82
+                    .'[\xe1-\xec][\x80-\xbf]{2}|'
83
+                    .'\xed[\x80-\x9f][\x80-\xbf]|'
84
+                    .'[\xee-\xef][\x80-\xbf]{2}|'
85
+                    .'\xf0[\x90-\xbf][\x80-\xbf]{2}|'
86
+                    .'[\xf1-\xf3][\x80-\xbf]{3}|'
87
+                    .'\xf4[\x80-\x8f][\x80-\xbf]{2})*$/';
88 88
 
89 89
             return preg_match($regex, $str) === 1;
90 90
         }
Please login to merge, or discard this patch.
phpmyfaq/index.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -427,8 +427,8 @@  discard block
 block discarded – undo
427 427
     $users = $faqsession->getUsersOnline();
428 428
     $totUsers = $users[0] + $users[1];
429 429
     $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers).' | '.
430
-                   $plr->getMsg('plmsgGuestOnline', $users[0]).
431
-                   $plr->getMsg('plmsgRegisteredOnline', $users[1]);
430
+                    $plr->getMsg('plmsgGuestOnline', $users[0]).
431
+                    $plr->getMsg('plmsgRegisteredOnline', $users[1]);
432 432
 } else {
433 433
     $usersOnline = '';
434 434
 }
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
     'switchLanguages' => PMF_Language::selectLanguages($LANGCODE, true),
485 485
     'userOnline' => $usersOnline,
486 486
     'copyright' => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> '.
487
-                              $faqConfig->get('main.currentVersion'),
487
+                                $faqConfig->get('main.currentVersion'),
488 488
     'registerUser' => $faqConfig->get('security.enableRegistration') ? '<a href="?action=register">'.$PMF_LANG['msgRegistration'].'</a>' : '',
489 489
     'sendPassword' => '<a href="?action=password">'.$PMF_LANG['lostPassword'].'</a>',
490 490
     'msgFullName' => $PMF_LANG['ad_user_loggedin'].$user->getLogin(),
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
     'dir' => $PMF_LANG['dir'],
476 476
     'writeSendAdress' => '?'.$sids.'action=search',
477 477
     'searchBox' => $PMF_LANG['msgSearch'],
478
-    'categoryId' => ($cat === 0) ? '%' : (int) $cat,
478
+    'categoryId' => ($cat === 0) ? '%' : (int)$cat,
479 479
     'headerCategories' => $PMF_LANG['msgFullCategories'],
480 480
     'msgCategory' => $PMF_LANG['msgCategory'],
481 481
     'msgExportAllFaqs' => $PMF_LANG['msgExportAllFaqs'],
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
         array(
520 520
             'writeSendAdress' => '?'.$sids.'action=search',
521 521
             'searchBox' => $PMF_LANG['msgSearch'],
522
-            'categoryId' => ($cat === 0) ? '%' : (int) $cat,
522
+            'categoryId' => ($cat === 0) ? '%' : (int)$cat,
523 523
             'msgSearch' => sprintf(
524 524
                 '<a class="help" href="%sindex.php?action=search">%s</a>',
525 525
                 $faqSystem->getSystemUri($faqConfig),
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
         'allCategories' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'showcat.html">'.$PMF_LANG['msgShowAllCategories'].'</a>',
555 555
         'faqOverview' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'overview.html">'.$PMF_LANG['faqOverview'].'</a>',
556 556
         'showSitemap' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'sitemap/A/'.$LANGCODE.'.html">'.$PMF_LANG['msgSitemap'].'</a>',
557
-        'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.html', );
557
+        'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.html',);
558 558
 } else {
559 559
     $tplNavigation = array(
560 560
         'msgSearch' => '<a href="index.php?'.$sids.'action=search">'.$PMF_LANG['msgAdvancedSearch'].'</a>',
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
         'faqOverview' => '<a href="index.php?'.$sids.'action=overview">'.$PMF_LANG['faqOverview'].'</a>',
569 569
         'backToHome' => '<a href="index.php?'.$sids.'">'.$PMF_LANG['msgHome'].'</a>',
570 570
         'showSitemap' => '<a href="index.php?'.$sids.'action=sitemap&amp;lang='.$LANGCODE.'">'.$PMF_LANG['msgSitemap'].'</a>',
571
-        'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.php', );
571
+        'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.php',);
572 572
 }
573 573
 
574 574
 $tplNavigation['faqHome'] = $faqConfig->getDefaultUrl();
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
     );
663 663
 } else {
664 664
     $tpl->parseBlock('rightBox', 'latestEntriesListError', array(
665
-        'errorMsgLatest' => $latestEntriesParams['error'], )
665
+        'errorMsgLatest' => $latestEntriesParams['error'],)
666 666
     );
667 667
 }
668 668
 
Please login to merge, or discard this patch.
phpmyfaq/lang/language_sr.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -664,14 +664,14 @@
 block discarded – undo
664 664
 $PMF_LANG['ad_entry_visibility'] = 'Objavi?';
665 665
 
666 666
 // added v2.0.0 - 2006-01-02 by Lars
667
-$PMF_LANG['ad_user_error_password'] =  "Molimo unesite lozinku. ";
668
-$PMF_LANG['ad_user_error_passwordsDontMatch'] =  "Lozinke se ne poklapaju. ";
669
-$PMF_LANG['ad_user_error_loginInvalid'] =  "Une&scaron;eno korisni&#269;ko ime nije na&#273;eno.";
670
-$PMF_LANG['ad_user_error_noEmail'] =  "Unesite va&#382;e&#263;u email adresu. ";
671
-$PMF_LANG['ad_user_error_noRealName'] =  "Unesite Va&scaron;e pravo ime. ";
672
-$PMF_LANG['ad_user_error_delete'] =  "Korisni&#269;ki nalog ne mo&#382;e biti izbrisan. ";
673
-$PMF_LANG['ad_user_error_noId'] =  "Nije prilo&#382;en ID. ";
674
-$PMF_LANG['ad_user_error_protectedAccount'] =  "Korisni&#269;ki nalog je za&scaron;ti&#263;en. ";
667
+$PMF_LANG['ad_user_error_password'] = "Molimo unesite lozinku. ";
668
+$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Lozinke se ne poklapaju. ";
669
+$PMF_LANG['ad_user_error_loginInvalid'] = "Une&scaron;eno korisni&#269;ko ime nije na&#273;eno.";
670
+$PMF_LANG['ad_user_error_noEmail'] = "Unesite va&#382;e&#263;u email adresu. ";
671
+$PMF_LANG['ad_user_error_noRealName'] = "Unesite Va&scaron;e pravo ime. ";
672
+$PMF_LANG['ad_user_error_delete'] = "Korisni&#269;ki nalog ne mo&#382;e biti izbrisan. ";
673
+$PMF_LANG['ad_user_error_noId'] = "Nije prilo&#382;en ID. ";
674
+$PMF_LANG['ad_user_error_protectedAccount'] = "Korisni&#269;ki nalog je za&scaron;ti&#263;en. ";
675 675
 $PMF_LANG['ad_user_deleteUser'] = "Obri&scaron;i korisnika";
676 676
 $PMF_LANG['ad_user_status'] = "Status:";
677 677
 $PMF_LANG['ad_user_lastModified'] = "zadnji put menjano:";
Please login to merge, or discard this patch.
phpmyfaq/search.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
             }
112 112
         }
113 113
 
114
-        uasort($relatedTags, function ($a, $b) {
114
+        uasort($relatedTags, function($a, $b) {
115 115
             return ($b - $a);
116 116
             }
117 117
         );
Please login to merge, or discard this patch.
phpmyfaq/send2friend.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
47 47
 
48 48
 $send2friendLink = sprintf('%sindex.php?action=artikel&amp;cat=%d&amp;id=%d&amp;artlang=%s',
49 49
     $faqConfig->getDefaultUrl(),
50
-    (int) $cat,
51
-    (int) $id,
50
+    (int)$cat,
51
+    (int)$id,
52 52
     urlencode($artlang));
53 53
 
54 54
 $captchaHelper = new PMF_Helper_Captcha($faqConfig);
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Date.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
  * @author    Anatoliy Belsky <[email protected]>
39 39
  * @copyright 2009-2015 phpMyFAQ Team
40 40
  * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
41
- 
42 41
  * @link      http://www.phpmyfaq.de
43 42
  * @since     2009-04-06
44 43
  */
Please login to merge, or discard this patch.
phpmyfaq/setup/update.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     // Backup of config/elasticsearch.php if exists
230 230
     if (file_exists(PMF_ROOT_DIR.'/config/elasticsearch.php')) {
231 231
         if (!copy(PMF_ROOT_DIR.'/config/elasticsearch.php', PMF_ROOT_DIR.'/config/elasticsearch.bak.php')) {
232
-            echo '<p class="alert alert-danger"><strong>Error:</strong> The backup file ' .
232
+            echo '<p class="alert alert-danger"><strong>Error:</strong> The backup file '.
233 233
                 '../config/elasticsearch.bak.php could not be written. Please correct this!</p>';
234 234
         } else {
235 235
             $checkElasticsearchSetupFile = true;
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
         foreach ($query as $key => $executeQuery) {
598 598
             $result = $faqConfig->getDb()->query($executeQuery);
599 599
             echo '.';
600
-            if (!($key % 100)) {
600
+            if (!($key%100)) {
601 601
                 echo '<br />';
602 602
             }
603 603
             if (!$result) {
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
             }
618 618
             usleep(10000);
619 619
             ++$count;
620
-            if (!($count % 10)) {
620
+            if (!($count%10)) {
621 621
                 ob_flush();
622 622
             }
623 623
         }
Please login to merge, or discard this patch.
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Main update script.
4
- *
5
- * PHP Version 5.5
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @author    Thorsten Rinne <[email protected]>
13
- * @author    Thomas Melchinger <[email protected]>
14
- * @author    Matteo Scaramuccia <[email protected]>
15
- * @copyright 2002-2016 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- * @link      http://www.phpmyfaq.de
18
- * @since     2002-01-10
19
- */
3
+     * Main update script.
4
+     *
5
+     * PHP Version 5.5
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @author    Thorsten Rinne <[email protected]>
13
+     * @author    Thomas Melchinger <[email protected]>
14
+     * @author    Matteo Scaramuccia <[email protected]>
15
+     * @copyright 2002-2016 phpMyFAQ Team
16
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+     * @link      http://www.phpmyfaq.de
18
+     * @since     2002-01-10
19
+     */
20 20
 define('COPYRIGHT', '&copy; 2001-2015 <a target="_blank" href="http://www.phpmyfaq.de/">phpMyFAQ Team</a>');
21 21
 define('PMF_ROOT_DIR', dirname(dirname(__FILE__)));
22 22
 define('IS_VALID_PHPMYFAQ', null);
@@ -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()
@@ -881,7 +881,7 @@  discard block
 block discarded – undo
881 881
             printf('<span title="%s"><i class="fa fa-circle"></i></span>', $executeQuery);
882 882
             if (!$result) {
883 883
                 echo '<p class="alert alert-danger"><strong>Error:</strong> Please install your version of phpMyFAQ once again '.
884
-                      'or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.</p>';
884
+                        'or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.</p>';
885 885
                 printf('<p class="error"><strong>DB error:</strong> %s</p>', $faqConfig->getDb()->error());
886 886
                 printf('<code>%s</code>', htmlentities($executeQuery));
887 887
                 PMF_System::renderFooter();
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Configuration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -395,12 +395,12 @@
 block discarded – undo
395 395
     public function update(Array $newConfigs)
396 396
     {
397 397
         $runtimeConfigs = [
398
-            'core.database',           // PMF_DB_Driver
399
-            'core.instance',           // PMF_Instance
400
-            'core.language',           // Language
401
-            'core.ldap',               // PMF_Ldap
402
-            'core.ldapConfig',         // $PMF_LDAP
403
-            'core.elasticsearch',      // Elasticsearch\Client
398
+            'core.database', // PMF_DB_Driver
399
+            'core.instance', // PMF_Instance
400
+            'core.language', // Language
401
+            'core.ldap', // PMF_Ldap
402
+            'core.ldapConfig', // $PMF_LDAP
403
+            'core.elasticsearch', // Elasticsearch\Client
404 404
             'core.elasticsearchConfig' // $PMF_ES
405 405
         ];
406 406
 
Please login to merge, or discard this patch.