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 — master (#1133)
by
unknown
18:02
created
phpmyfaq/inc/PMF/Ldap.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $this->base = $ldapBase;
107 107
         $this->ds   = ldap_connect($ldapServer, $ldapPort);
108 108
 
109
-        if (! $this->ds) {
109
+        if (!$this->ds) {
110 110
             $this->error = sprintf(
111 111
                 'Unable to connect to LDAP server (Error: %s)',
112 112
                 ldap_error($this->ds)
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         // optionally set Bind version
119 119
         if (isset($this->_ldapConfig['ldap_options'])) {
120 120
             foreach ($this->_ldapConfig['ldap_options'] as $key => $value) {
121
-                if (! ldap_set_option($this->ds, constant($key), $value)) {
121
+                if (!ldap_set_option($this->ds, constant($key), $value)) {
122 122
                     $this->errno = ldap_errno($this->ds);
123 123
                     $this->error = sprintf(
124 124
                         'Unable to set LDAP option "%s" to "%s" (Error: %s).',
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $ldapBind = ldap_bind($this->ds, $ldapUser, $ldapPassword);
138 138
         }
139 139
 
140
-        if (! $ldapBind) {
140
+        if (!$ldapBind) {
141 141
             $this->errno = ldap_errno($this->ds);
142 142
             $this->error = sprintf(
143 143
                 'Unable to bind to LDAP server (Error: %s).',
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      *
210 210
      * @return string
211 211
      */
212
-    private function getLdapData ($username, $data)
212
+    private function getLdapData($username, $data)
213 213
     {
214 214
         if (!array_key_exists($data, $this->_ldapConfig['ldap_mapping'])) {
215 215
             $this->error = sprintf(
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         );
275 275
         $sr = ldap_search($this->ds, $this->base, $filter);
276 276
 
277
-        if (! $sr) {
277
+        if (!$sr) {
278 278
             $this->errno = ldap_errno($this->ds);
279 279
             $this->error = sprintf(
280 280
                 'Unable to search for "%s" (Error: %s)',
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 
286 286
         $entryId = ldap_first_entry($this->ds, $sr);
287 287
 
288
-        if (! $entryId) {
288
+        if (!$entryId) {
289 289
             $this->errno = ldap_errno($this->ds);
290 290
             $this->error = sprintf(
291 291
                 'Cannot get the value(s). Error: %s',
@@ -306,8 +306,8 @@  discard block
 block discarded – undo
306 306
     public function quote($string)
307 307
     {
308 308
         return str_replace(
309
-            array( '\\', ' ', '*', '(', ')' ),
310
-            array( '\\5c', '\\20', '\\2a', '\\28', '\\29' ),
309
+            array('\\', ' ', '*', '(', ')'),
310
+            array('\\5c', '\\20', '\\2a', '\\28', '\\29'),
311 311
             $string
312 312
         );
313 313
     }
Please login to merge, or discard this patch.
phpmyfaq/ajaxresponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
 if (PMF_Language::isASupportedLanguage($ajaxLanguage)) {
43 43
     $languageCode = trim($ajaxLanguage);
44
-    require_once 'lang/language_' . $languageCode . '.php';
44
+    require_once 'lang/language_'.$languageCode.'.php';
45 45
 } else {
46 46
     $languageCode = 'en';
47 47
     require_once 'lang/language_en.php';
Please login to merge, or discard this patch.
phpmyfaq/main.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
     $showAllNews      = sprintf('<a href="?%s">%s</a>', $sids, $PMF_LANG['newsShowCurrent']);
38 38
     $archived         = true;
39 39
 } else {
40
-    $writeNewsHeader .= ' ' . $PMF_LANG['msgNews'];
40
+    $writeNewsHeader .= ' '.$PMF_LANG['msgNews'];
41 41
     if ($faqConfig->get('main.enableRssFeeds')) {
42
-        $writeNewsRSS = '&nbsp;<a href="feed/news/rss.php" target="_blank">' .
42
+        $writeNewsRSS = '&nbsp;<a href="feed/news/rss.php" target="_blank">'.
43 43
             '<i class="fa fa-rss"></i></a>';
44 44
     }
45 45
     $showAllNews = sprintf('<a href="?%snewsid=0">%s</a>', $sids, $PMF_LANG['newsShowArchive']);
Please login to merge, or discard this patch.
phpmyfaq/setup/assets/sql/pgsql.sql.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 )";
240 240
 
241 241
 //faqinstances
242
-$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances (
242
+$query[] = "CREATE TABLE ".$sqltblpre."faqinstances (
243 243
 id int4 NOT NULL,
244 244
 url VARCHAR(255) NOT NULL,
245 245
 instance VARCHAR(255) NOT NULL,
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 PRIMARY KEY (id))";
379 379
 
380 380
 //faqattachment
381
-$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment (
381
+$query[] = "CREATE TABLE ".$sqltblpre."faqattachment (
382 382
 id SERIAL NOT NULL,
383 383
 record_id int4 NOT NULL,
384 384
 record_lang varchar(5) NOT NULL,
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
 PRIMARY KEY (id))";
393 393
 
394 394
 //faqattachment file
395
-$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment_file (
395
+$query[] = "CREATE TABLE ".$sqltblpre."faqattachment_file (
396 396
 virtual_hash char(32) NOT NULL,
397 397
 contents bytea,
398 398
 PRIMARY KEY (virtual_hash))";
Please login to merge, or discard this patch.
phpmyfaq/setup/assets/sql/mysqli.sql.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 PRIMARY KEY (id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci";
66 66
 
67 67
 //faqattachment
68
-$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment (
68
+$query[] = "CREATE TABLE ".$sqltblpre."faqattachment (
69 69
 id int(11) NOT NULL,
70 70
 record_id int(11) NOT NULL,
71 71
 record_lang varchar(5) NOT NULL,
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 PRIMARY KEY (id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci";
80 80
 
81 81
 //faqattachment file
82
-$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment_file (
82
+$query[] = "CREATE TABLE ".$sqltblpre."faqattachment_file (
83 83
 virtual_hash char(32) NOT NULL,
84 84
 contents blob NOT NULL,
85 85
 PRIMARY KEY (virtual_hash)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci";
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 PRIMARY KEY (group_id, right_id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci";
239 239
 
240 240
 //faqinstances
241
-$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances (
241
+$query[] = "CREATE TABLE ".$sqltblpre."faqinstances (
242 242
 id INT(11) NOT NULL,
243 243
 url VARCHAR(255) NOT NULL,
244 244
 instance VARCHAR(255) NOT NULL,
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 PRIMARY KEY (id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci";
249 249
 
250 250
 //faqinstances_config
251
-$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances_config (
251
+$query[] = "CREATE TABLE ".$sqltblpre."faqinstances_config (
252 252
 instance_id INT(11) NOT NULL,
253 253
 config_name VARCHAR(255) NOT NULL default '',
254 254
 config_value VARCHAR(255) DEFAULT NULL,
Please login to merge, or discard this patch.
phpmyfaq/setup/assets/sql/sqlsrv.sql.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 PRIMARY KEY (id))";
64 64
 
65 65
 //faqattachment
66
-$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment (
66
+$query[] = "CREATE TABLE ".$sqltblpre."faqattachment (
67 67
 id INTEGER NOT NULL,
68 68
 record_id INTEGER NOT NULL,
69 69
 record_lang VARCHAR(5) NOT NULL,
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 PRIMARY KEY (id))";
78 78
 
79 79
 //faqattachment file
80
-$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment_file (
80
+$query[] = "CREATE TABLE ".$sqltblpre."faqattachment_file (
81 81
 virtual_hash CHAR(32) NOT NULL,
82 82
 contents BLOB NOT NULL,
83 83
 PRIMARY KEY (virtual_hash))";
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 )";
240 240
 
241 241
 //faqinstances
242
-$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances (
242
+$query[] = "CREATE TABLE ".$sqltblpre."faqinstances (
243 243
 id INT(11) NOT NULL,
244 244
 url VARCHAR(255) NOT NULL,
245 245
 instance VARCHAR(255) NOT NULL,
Please login to merge, or discard this patch.
phpmyfaq/setup/assets/sql/mssql.sql.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 PRIMARY KEY (id))";
64 64
 
65 65
 //faqattachment
66
-$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment (
66
+$query[] = "CREATE TABLE ".$sqltblpre."faqattachment (
67 67
 id INTEGER NOT NULL,
68 68
 record_id INTEGER NOT NULL,
69 69
 record_lang VARCHAR(5) NOT NULL,
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 PRIMARY KEY (id))";
78 78
 
79 79
 //faqattachment file
80
-$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment_file (
80
+$query[] = "CREATE TABLE ".$sqltblpre."faqattachment_file (
81 81
 virtual_hash CHAR(32) NOT NULL,
82 82
 contents BLOB NOT NULL,
83 83
 PRIMARY KEY (virtual_hash))";
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 )";
240 240
 
241 241
 //faqinstances
242
-$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances (
242
+$query[] = "CREATE TABLE ".$sqltblpre."faqinstances (
243 243
 id INT(11) NOT NULL,
244 244
 url VARCHAR(255) NOT NULL,
245 245
 instance VARCHAR(255) NOT NULL,
Please login to merge, or discard this patch.
phpmyfaq/setup/assets/sql/sqlite3.sql.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 PRIMARY KEY (id))";
64 64
 
65 65
 //faqattachment
66
-$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment (
66
+$query[] = "CREATE TABLE ".$sqltblpre."faqattachment (
67 67
 id INTEGER NOT NULL,
68 68
 record_id INTEGER NOT NULL,
69 69
 record_lang VARCHAR(5) NOT NULL,
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 PRIMARY KEY (id))";
78 78
 
79 79
 //faqattachment file
80
-$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment_file (
80
+$query[] = "CREATE TABLE ".$sqltblpre."faqattachment_file (
81 81
 virtual_hash CHAR(32) NOT NULL,
82 82
 contents BLOB NOT NULL,
83 83
 PRIMARY KEY (virtual_hash))";
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 )";
240 240
 
241 241
 //faqinstances
242
-$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances (
242
+$query[] = "CREATE TABLE ".$sqltblpre."faqinstances (
243 243
 id INT(11) NOT NULL,
244 244
 url VARCHAR(255) NOT NULL,
245 245
 instance VARCHAR(255) NOT NULL,
Please login to merge, or discard this patch.
phpmyfaq/setup/assets/sql/sqlite.sql.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 PRIMARY KEY (id))";
64 64
 
65 65
 //faqattachment
66
-$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment (
66
+$query[] = "CREATE TABLE ".$sqltblpre."faqattachment (
67 67
 id INTEGER NOT NULL,
68 68
 record_id INTEGER NOT NULL,
69 69
 record_lang VARCHAR(5) NOT NULL,
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 PRIMARY KEY (id))";
78 78
 
79 79
 //faqattachment file
80
-$query[] = "CREATE TABLE " . $sqltblpre . "faqattachment_file (
80
+$query[] = "CREATE TABLE ".$sqltblpre."faqattachment_file (
81 81
 virtual_hash CHAR(32) NOT NULL,
82 82
 contents BLOB NOT NULL,
83 83
 PRIMARY KEY (virtual_hash))";
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 )";
240 240
 
241 241
 //faqinstances
242
-$query[] = "CREATE TABLE " . $sqltblpre . "faqinstances (
242
+$query[] = "CREATE TABLE ".$sqltblpre."faqinstances (
243 243
 id INT(11) NOT NULL,
244 244
 url VARCHAR(255) NOT NULL,
245 245
 instance VARCHAR(255) NOT NULL,
Please login to merge, or discard this patch.