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 ( fd4dc3...447945 )
by Thorsten
13:16
created
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šeno korisničko ime nije nađeno.";
670
-$PMF_LANG['ad_user_error_noEmail'] =  "Unesite važeću email adresu. ";
671
-$PMF_LANG['ad_user_error_noRealName'] =  "Unesite Vaše pravo ime. ";
672
-$PMF_LANG['ad_user_error_delete'] =  "Korisnički nalog ne može biti izbrisan. ";
673
-$PMF_LANG['ad_user_error_noId'] =  "Nije priložen ID. ";
674
-$PMF_LANG['ad_user_error_protectedAccount'] =  "Korisnički nalog je zaštić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šeno korisničko ime nije nađeno.";
670
+$PMF_LANG['ad_user_error_noEmail'] = "Unesite važeću email adresu. ";
671
+$PMF_LANG['ad_user_error_noRealName'] = "Unesite Vaše pravo ime. ";
672
+$PMF_LANG['ad_user_error_delete'] = "Korisnički nalog ne može biti izbrisan. ";
673
+$PMF_LANG['ad_user_error_noId'] = "Nije priložen ID. ";
674
+$PMF_LANG['ad_user_error_protectedAccount'] = "Korisnički nalog je zaštićen. ";
675 675
 $PMF_LANG['ad_user_deleteUser'] = "Obriš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&cat=%d&id=%d&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/setup/attachment.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@  discard block
 block discarded – undo
1 1
 <?php 
2 2
 /**
3
- * Attachment migration 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
- *
13
- * @author    Anatoliy Belsky <[email protected]>
14
- * @copyright 2009-2015 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- *
17
- * @link      http://www.phpmyfaq.de
18
- * @since     2009-09-13
19
- */
3
+         * Attachment migration 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
+         *
13
+         * @author    Anatoliy Belsky <[email protected]>
14
+         * @copyright 2009-2015 phpMyFAQ Team
15
+         * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+         *
17
+         * @link      http://www.phpmyfaq.de
18
+         * @since     2009-09-13
19
+         */
20 20
 set_time_limit(0);
21 21
 
22 22
 define('PMF_ROOT_DIR', dirname(__DIR__));
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 /*        case PMF_Attachment_Migration::MIGRATION_TYPE3:
67 67
         case PMF_Attachment_Migration::MIGRATION_TYPE4:*/
68 68
             $options['defaultKey'] = PMF_Filter::filterInput(INPUT_POST,
69
-                                                             'defaultKey',
70
-                                                             FILTER_SANITIZE_STRING);
69
+                                                                'defaultKey',
70
+                                                                FILTER_SANITIZE_STRING);
71 71
             break;
72 72
 
73 73
         default:
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
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-2015 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-2015 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
         }
@@ -574,8 +574,8 @@  discard block
 block discarded – undo
574 574
             if (!$result) {
575 575
                 echo '</div>';
576 576
                 echo '<p class="alert alert-danger"><strong>Error:</strong> Please update your version of phpMyFAQ '.
577
-                      'once again or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.'.
578
-                      '</p>';
577
+                        'once again or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.'.
578
+                        '</p>';
579 579
                 printf(
580 580
                     '<p class="alert alert-danger"><strong>DB error:</strong> %s</p>',
581 581
                     $faqConfig->getDb()->error()
@@ -851,7 +851,7 @@  discard block
 block discarded – undo
851 851
             printf('<span title="%s"><i class="fa fa-circle"></i></span>', $executeQuery);
852 852
             if (!$result) {
853 853
                 echo '<p class="alert alert-danger"><strong>Error:</strong> Please install your version of phpMyFAQ once again '.
854
-                      'or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.</p>';
854
+                        'or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.</p>';
855 855
                 printf('<p class="error"><strong>DB error:</strong> %s</p>', $faqConfig->getDb()->error());
856 856
                 printf('<code>%s</code>', htmlentities($executeQuery));
857 857
                 PMF_System::renderFooter();
Please login to merge, or discard this patch.
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.
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.
phpmyfaq/inc/PMF/Instance/Elasticsearch.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     /**
88 88
      * Creates the Elasticsearch index.
89 89
      *
90
-     * @return array
90
+     * @return boolean
91 91
      */
92 92
     public function createIndex()
93 93
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     public function createIndex()
93 93
     {
94 94
         $this->client->indices()->create($this->getParams());
95
-        return $this->putMapping();;
95
+        return $this->putMapping(); ;
96 96
     }
97 97
 
98 98
     /**
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                 'categories' => $faq['category_id']
178 178
             ];
179 179
 
180
-            if ($i % 1000 == 0) {
180
+            if ($i%1000 == 0) {
181 181
                 $responses = $this->client->bulk($params);
182 182
                 $params = ['body' => []];
183 183
                 unset($responses);
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Search/Elasticsearch.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                             'bool' => [
92 92
                                 'must' => [
93 93
                                     [
94
-                                        'terms' => [ 'category_id' => $this->getCategoryIds() ]
94
+                                        'terms' => ['category_id' => $this->getCategoryIds()]
95 95
                                     ],
96 96
                                     $languageFilter
97 97
                                 ]
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
                         'query' => [
101 101
                             'bool' => [
102 102
                                 'should' => [
103
-                                    [ 'match' => [ 'question' => $searchTerm ] ],
104
-                                    [ 'match' => [ 'answer' => $searchTerm ] ],
105
-                                    [ 'match' => [ 'keywords' => $searchTerm ] ]
103
+                                    ['match' => ['question' => $searchTerm]],
104
+                                    ['match' => ['answer' => $searchTerm]],
105
+                                    ['match' => ['keywords' => $searchTerm]]
106 106
                                 ]
107 107
                             ]
108 108
                         ]
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
      *
143 143
      * @throws PMF_Search_Exception
144 144
      *
145
-     * @return array
145
+     * @return resource
146 146
      */
147 147
     public function autocomplete($searchTerm)
148 148
     {
Please login to merge, or discard this patch.