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 ( a249b4...cb648f )
by Thorsten
08:44
created
phpmyfaq/inc/PMF/String.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
     /**
281 281
      * Search and replace by a regexp using a callback.
282 282
      *
283
-     * @param string|array $pattern
283
+     * @param string $pattern
284 284
      * @param function     $callback
285 285
      * @param string|array $subject
286 286
      * @param int          $limit
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      *
315 315
      * @param string $str String
316 316
      *
317
-     * @return bool
317
+     * @return string|boolean
318 318
      */
319 319
     public static function isUTF8($str)
320 320
     {
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -182,9 +182,9 @@
 block discarded – undo
182 182
     public static function isLangUTF8ToLatinConvertable($language)
183 183
     {
184 184
         $iso_languages = array('af', 'sq', 'br', 'ca', 'da', 'en', 'fo', 'gl', 'de', 'is', 'it',
185
-                               'ku', 'la', 'lb', 'nb', 'oc', 'pt', 'es', 'sw', 'sv', 'wa', 'eu',
186
-                               // NOTE this languages are not fully supported by latin1 
187
-                               'nl', 'fr', 'et', 'fi', 'cy',
185
+                                'ku', 'la', 'lb', 'nb', 'oc', 'pt', 'es', 'sw', 'sv', 'wa', 'eu',
186
+                                // NOTE this languages are not fully supported by latin1 
187
+                                'nl', 'fr', 'et', 'fi', 'cy',
188 188
         );
189 189
 
190 190
         return in_array($language, $iso_languages);
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/System.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      * Returns the current API version of phpMyFAQ for installation and
171 171
      * version in the database.
172 172
      *
173
-     * @return int
173
+     * @return string
174 174
      */
175 175
     public static function getApiVersion()
176 176
     {
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      *
220 220
      * @param PMF_Configuration $faqConfig
221 221
      *
222
-     * @return mixed
222
+     * @return string
223 223
      */
224 224
     public function getSystemUri(PMF_Configuration $faqConfig)
225 225
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,11 +87,11 @@
 block discarded – undo
87 87
      * @var array
88 88
      */
89 89
     private $supportedDatabases = [
90
-        'mysqli' => [ self::VERSION_MINIMUM_PHP, 'MySQL 5.x / Percona Server 5.x / MariaDB 5.x and later' ],
91
-        'pgsql' => [ self::VERSION_MINIMUM_PHP, 'PostgreSQL 9.x' ],
92
-        'sqlite3' => [ self::VERSION_MINIMUM_PHP, 'SQLite 3' ],
93
-        'mssql' => [ self::VERSION_MINIMUM_PHP, 'MS SQL Server 2012 and later (deprecated, PHP 5 only)' ],
94
-        'sqlsrv' => [ self::VERSION_MINIMUM_PHP, 'MS SQL Server 2012 Driver for PHP (PHP 5 and PHP 7)']
90
+        'mysqli' => [self::VERSION_MINIMUM_PHP, 'MySQL 5.x / Percona Server 5.x / MariaDB 5.x and later'],
91
+        'pgsql' => [self::VERSION_MINIMUM_PHP, 'PostgreSQL 9.x'],
92
+        'sqlite3' => [self::VERSION_MINIMUM_PHP, 'SQLite 3'],
93
+        'mssql' => [self::VERSION_MINIMUM_PHP, 'MS SQL Server 2012 and later (deprecated, PHP 5 only)'],
94
+        'sqlsrv' => [self::VERSION_MINIMUM_PHP, 'MS SQL Server 2012 Driver for PHP (PHP 5 and PHP 7)']
95 95
     ];
96 96
 
97 97
     /**
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Tags.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -703,7 +703,7 @@
 block discarded – undo
703 703
     }
704 704
 
705 705
     /**
706
-     * @param $chr
706
+     * @param string $chr
707 707
      *
708 708
      * @return bool
709 709
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@
 block discarded – undo
213 213
             $tagName = trim($tagName);
214 214
             if (PMF_String::strlen($tagName) > 0) {
215 215
                 if (!in_array(PMF_String::strtolower($tagName),
216
-                              array_map(array('PMF_String', 'strtolower'), $currentTags))) {
216
+                                array_map(array('PMF_String', 'strtolower'), $currentTags))) {
217 217
                     // Create the new tag
218 218
                     $newTagId = $this->_config->getDb()->nextId(PMF_Db::getTablePrefix().'faqtags', 'tagging_id');
219 219
                     $query = sprintf("
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Template.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      * This function multiplies blocks.
261 261
      *
262 262
      * @param string $block        Blockname
263
-     * @param array  $blockContent Content of block
263
+     * @param string  $blockContent Content of block
264 264
      *
265 265
      * @return string implode('', $tmpBlock)
266 266
      */
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
      *
352 352
      * @param string $content Content to check
353 353
      *
354
-     * @return array
354
+     * @return string
355 355
      */
356 356
     private function _checkContent($content)
357 357
     {
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/TransTool.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
      *
184 184
      * @param string $val Value
185 185
      *
186
-     * @return bool
186
+     * @return integer
187 187
      */
188 188
     public function isValIgnorable($val)
189 189
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $exemplaryNPlurals = intval($exemplary['PMF_LANG[nplurals]']);
96 96
         $toCheckNPlurals = intval($toCheck['PMF_LANG[nplurals]']);
97 97
         // One English plural form is equal to (xx/en) of xx plural forms (1/2, 2/2, 3/2,..,6/2..)
98
-        $pluralsRatio = ($toCheckNPlurals != -1) ? ($toCheckNPlurals / $exemplaryNPlurals) : 1;
98
+        $pluralsRatio = ($toCheckNPlurals != -1) ? ($toCheckNPlurals/$exemplaryNPlurals) : 1;
99 99
 
100 100
         $retval = $countAll = $countTranslated = 0;
101 101
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 }
126 126
             }
127 127
 
128
-            $retval = floor(100 * $countTranslated / $countAll);
128
+            $retval = floor(100*$countTranslated/$countAll);
129 129
         }
130 130
 
131 131
         unset($exemplary, $toCheck);
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/User/UserData.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      * Returns the field $field of the user data. If $field is an
72 72
      * array, an associative array will be returned.
73 73
      *
74
-     * @param mixed $field Field(s)
74
+     * @param string $field Field(s)
75 75
      *
76 76
      * @return mixed
77 77
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     public function load($userId)
184 184
     {
185
-        $userId = (int) $userId;
185
+        $userId = (int)$userId;
186 186
         if (($userId <= 0) && ($userId != -1)) {
187 187
             return false;
188 188
         }
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      */
251 251
     public function add($userId)
252 252
     {
253
-        $userId = (int) $userId;
253
+        $userId = (int)$userId;
254 254
         if (($userId <= 0) && ($userId != -1)) {
255 255
             return false;
256 256
         }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      */
286 286
     public function delete($userId)
287 287
     {
288
-        $userId = (int) $userId;
288
+        $userId = (int)$userId;
289 289
         if (($userId <= 0) && ($userId != -1)) {
290 290
             return false;
291 291
         }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Utils.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      *
126 126
      * @param string $lang Language
127 127
      *
128
-     * @return bool
128
+     * @return integer
129 129
      */
130 130
     public static function isLanguage($lang)
131 131
     {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      *
138 138
      * @param int $date Date
139 139
      *
140
-     * @return int
140
+     * @return boolean
141 141
      */
142 142
     public static function isLikeOnPMFDate($date)
143 143
     {
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
     /**
320 320
      * debug_backtrace() wrapper function.
321 321
      *
322
-     * @param $string
322
+     * @param string $string
323 323
      *
324 324
      * @return string
325 325
      */
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.autosave.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     $dateEnd = PMF_Filter::filterInput(INPUT_POST, 'dateEnd', FILTER_SANITIZE_STRING);
42 42
     $question = PMF_Filter::filterInput(INPUT_POST, 'question', FILTER_SANITIZE_STRING);
43 43
     $categories = PMF_Filter::filterInputArray(INPUT_POST, array('rubrik' => array('filter' => FILTER_VALIDATE_INT,
44
-                                                                                      'flags' => FILTER_REQUIRE_ARRAY, )));
44
+                                                                                        'flags' => FILTER_REQUIRE_ARRAY, )));
45 45
     $record_lang = PMF_Filter::filterInput(INPUT_POST, 'lang', FILTER_SANITIZE_STRING);
46 46
     $tags = PMF_Filter::filterInput(INPUT_POST, 'tags', FILTER_SANITIZE_STRING);
47 47
     $active = PMF_Filter::filterInput(INPUT_POST, 'active', FILTER_SANITIZE_STRING);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     $dateEnd = PMF_Filter::filterInput(INPUT_POST, 'dateEnd', FILTER_SANITIZE_STRING);
42 42
     $question = PMF_Filter::filterInput(INPUT_POST, 'question', FILTER_SANITIZE_STRING);
43 43
     $categories = PMF_Filter::filterInputArray(INPUT_POST, array('rubrik' => array('filter' => FILTER_VALIDATE_INT,
44
-                                                                                      'flags' => FILTER_REQUIRE_ARRAY, )));
44
+                                                                                      'flags' => FILTER_REQUIRE_ARRAY,)));
45 45
     $record_lang = PMF_Filter::filterInput(INPUT_POST, 'lang', FILTER_SANITIZE_STRING);
46 46
     $tags = PMF_Filter::filterInput(INPUT_POST, 'tags', FILTER_SANITIZE_STRING);
47 47
     $active = PMF_Filter::filterInput(INPUT_POST, 'active', FILTER_SANITIZE_STRING);
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.category.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         if (empty($ajaxData['categories'])) {
51 51
             $categories = array(-1); // Access for all users and groups
52 52
         } else {
53
-            $categories = explode(',', (int) $ajaxData['categories']);
53
+            $categories = explode(',', (int)$ajaxData['categories']);
54 54
         }
55 55
 
56 56
         echo json_encode(
Please login to merge, or discard this patch.