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.8 ( 731d0f...651d2c )
by Thorsten
29:16 queued 15:10
created
phpmyfaq/inc/PMF/Services/Gravatar.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,18 +59,18 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function getImage($email, $params = array())
61 61
     {
62
-        $imageUrl = $this->getUrl() . 'avatar/' . $this->getHash($email);
62
+        $imageUrl = $this->getUrl().'avatar/'.$this->getHash($email);
63 63
 
64 64
         $opts = array();
65 65
 
66 66
         if (isset($params['default'])) {
67
-            $opts[] = 'default='. $params['default'];
67
+            $opts[] = 'default='.$params['default'];
68 68
         }
69 69
         if (isset($params['size'])) {
70
-            $opts[] = 'size='. $params['size'];
70
+            $opts[] = 'size='.$params['size'];
71 71
         }
72 72
         if (isset($params['rating'])) {
73
-            $opts[] = 'rating='. $params['rating'];
73
+            $opts[] = 'rating='.$params['rating'];
74 74
         }
75 75
         if (isset($params['force_default']) && $params['force_default'] === true) {
76 76
             $opts[] = 'forcedefault=y';
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             $params['class'] = '';
80 80
         }
81 81
 
82
-        $gravatar = $imageUrl . (sizeof($opts) > 0 ? '?' . implode($opts, '&') : false);
82
+        $gravatar = $imageUrl.(sizeof($opts) > 0 ? '?'.implode($opts, '&') : false);
83 83
 
84 84
         return sprintf(
85 85
             '<img src="%s" class="%s" alt="Gravatar">',
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Session.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
             if (0 == $bots && false == $banned) {
113 113
                 if (!isset($sid)) {
114
-                    $sid = $this->config->getDb()->nextId(PMF_Db::getTablePrefix() . 'faqsessions', 'sid');
114
+                    $sid = $this->config->getDb()->nextId(PMF_Db::getTablePrefix().'faqsessions', 'sid');
115 115
                     // Sanity check: force the session cookie to contains the current $sid
116 116
                     if (!is_null($sidc) && (!$sidc != $sid)) {
117 117
                         self::setCookie(self::PMF_COOKIE_NAME_SESSIONID, $sid);
@@ -132,15 +132,15 @@  discard block
 block discarded – undo
132 132
                     $this->config->getDb()->query($query);
133 133
                 }
134 134
 
135
-                $data = $sid.';' . 
136
-                        str_replace(';', ',', $action) . ';' . 
137
-                        $id . ';' . 
138
-                        $remoteAddr . ';' .
139
-                        str_replace(';', ',', $_SERVER['QUERY_STRING']) . ';' . 
140
-                        str_replace(';', ',', isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '') . ';' . 
141
-                        str_replace(';', ',', urldecode($_SERVER['HTTP_USER_AGENT'])) . ';' . 
142
-                        $_SERVER['REQUEST_TIME'] . ";\n";
143
-                $file = './data/tracking' . date('dmY');
135
+                $data = $sid.';'. 
136
+                        str_replace(';', ',', $action).';'. 
137
+                        $id.';'. 
138
+                        $remoteAddr.';'.
139
+                        str_replace(';', ',', $_SERVER['QUERY_STRING']).';'. 
140
+                        str_replace(';', ',', isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '').';'. 
141
+                        str_replace(';', ',', urldecode($_SERVER['HTTP_USER_AGENT'])).';'. 
142
+                        $_SERVER['REQUEST_TIME'].";\n";
143
+                $file = './data/tracking'.date('dmY');
144 144
                 file_put_contents($file, $data, FILE_APPEND);
145 145
             }
146 146
         }
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
 
339 339
             $timeNow = ($_SERVER['REQUEST_TIME'] - $activityTimeWindow);
340 340
 
341
-            if (! $this->config->get('security.enableLoginOnly')) {
341
+            if (!$this->config->get('security.enableLoginOnly')) {
342 342
                 // Count all sids within the time window for public installations
343 343
                 // @todo add a new field in faqsessions in order to find out only sids of anonymous users
344 344
                 $query = sprintf("
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -170,8 +170,8 @@
 block discarded – undo
170 170
         $result = $this->config->getDb()->query($query);
171 171
 
172 172
         if ($result) {
173
-        	$res       = $this->config->getDb()->fetchObject($result);
174
-        	$timestamp = $res->time;
173
+            $res       = $this->config->getDb()->fetchObject($result);
174
+            $timestamp = $res->time;
175 175
         }
176 176
 
177 177
         return $timestamp;
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/News.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
             while (($row = $this->_config->getDb()->fetchObject($result))) {
107 107
 
108 108
                 $counter++;
109
-                if (($showArchive  && ($counter > $this->_config->get('records.numberOfShownNewsEntries'))) ||
109
+                if (($showArchive && ($counter > $this->_config->get('records.numberOfShownNewsEntries'))) ||
110 110
                    ((!$showArchive) && (!$forceConfLimit) && 
111 111
                    ($counter <= $this->_config->get('records.numberOfShownNewsEntries'))) ||
112 112
                    ((!$showArchive) && $forceConfLimit)) {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
     private $_config;
43 43
 
44 44
     /**
45
-    * Language strings
46
-    *
47
-    * @var  string
48
-    */
45
+     * Language strings
46
+     *
47
+     * @var  string
48
+     */
49 49
     private $pmf_lang;
50 50
 
51 51
     /**
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
         foreach ($news as $item) {
153 153
 
154 154
             $url = sprintf('%s?action=news&amp;newsid=%d&amp;newslang=%s',
155
-                           PMF_Link::getSystemRelativeUri(),
156
-                           $item['id'],
157
-                           $item['lang']);
155
+                            PMF_Link::getSystemRelativeUri(),
156
+                            $item['id'],
157
+                            $item['lang']);
158 158
             $oLink = new PMF_Link($url, $this->_config);
159 159
             
160 160
             if (isset($item['header'])) {
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Configuration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -291,10 +291,10 @@
 block discarded – undo
291 291
     public function update(Array $newConfigs)
292 292
     {
293 293
         $runtimeConfigs = array(
294
-            'core.database',  // PMF_DB_Driver
295
-            'core.instance',  // PMF_Instance
296
-            'core.language',  // Language
297
-            'core.ldap',      // PMF_Ldap
294
+            'core.database', // PMF_DB_Driver
295
+            'core.instance', // PMF_Instance
296
+            'core.language', // Language
297
+            'core.ldap', // PMF_Ldap
298 298
             'core.ldapConfig' // $PMF_LDAP
299 299
         );
300 300
         if (is_array($newConfigs)) {
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Export.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     exit();
23 23
 }
24 24
 
25
-require_once PMF_CONFIG_DIR . '/constants.php';
25
+require_once PMF_CONFIG_DIR.'/constants.php';
26 26
 
27 27
 /**
28 28
  * Export Class
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Notification.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,11 +86,11 @@
 block discarded – undo
86 86
     public function sendOpenQuestionAnswered($email, $userName, $url)
87 87
     {
88 88
         $this->mail->addTo($email, $userName);
89
-        $this->mail->subject = $this->config->get('main.titleFAQ') . ' - ' . $this->pmfStr['msgQuestionAnswered'];
89
+        $this->mail->subject = $this->config->get('main.titleFAQ').' - '.$this->pmfStr['msgQuestionAnswered'];
90 90
         $this->mail->message = sprintf(
91 91
             $this->pmfStr['msgMessageQuestionAnswered'],
92 92
             $this->config->get('main.titleFAQ')
93
-        ) . "\n\r" . $url;
93
+        )."\n\r".$url;
94 94
         $this->mail->send();
95 95
     }
96 96
 }
97 97
\ No newline at end of file
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Perm.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
     public static function selectPerm($permLevel, PMF_Configuration $config)
88 88
     {
89 89
         if (isset($permLevel)) {
90
-            $permclass = 'PMF_Perm_' . ucfirst(strtolower($permLevel));
90
+            $permclass = 'PMF_Perm_'.ucfirst(strtolower($permLevel));
91 91
             if (class_exists($permclass)) {
92 92
                 return new $permclass($config);
93 93
             }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Rating.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,11 +197,11 @@
 block discarded – undo
197 197
         if ($this->_config->getDb()->numRows($result) > 0) {
198 198
             $row = $this->_config->getDb()->fetchObject($result);
199 199
             return sprintf(
200
-                ' %s ('.$this->plr->GetMsg('plmsgVotes',$row->usr).')',
200
+                ' %s ('.$this->plr->GetMsg('plmsgVotes', $row->usr).')',
201 201
                 round($row->voting, 2)
202 202
             );
203 203
        } else {
204
-            return '0 (' . $this->plr->GetMsg('plmsgVotes', 0) . ')';
204
+            return '0 ('.$this->plr->GetMsg('plmsgVotes', 0).')';
205 205
        }
206 206
     }
207 207
 }
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                 );
123 123
                 break;
124 124
 
125
-             default:
125
+                default:
126 126
                 $query = sprintf("
127 127
                     SELECT
128 128
                         fd.id AS id,
@@ -162,12 +162,12 @@  discard block
 block discarded – undo
162 162
         $result = $this->_config->getDb()->query($query);
163 163
         while ($row = $this->_config->getDb()->fetchObject($result)) {
164 164
             $ratings[] = array(
165
-               'id'          => $row->id,
166
-               'lang'        => $row->lang,
167
-               'category_id' => $row->category_id,
168
-               'question'    => $row->question,
169
-               'num'         => $row->num,
170
-               'usr'         => $row->usr
165
+                'id'          => $row->id,
166
+                'lang'        => $row->lang,
167
+                'category_id' => $row->category_id,
168
+                'question'    => $row->question,
169
+                'num'         => $row->num,
170
+                'usr'         => $row->usr
171 171
             );
172 172
         }
173 173
 
@@ -200,8 +200,8 @@  discard block
 block discarded – undo
200 200
                 ' %s ('.$this->plr->GetMsg('plmsgVotes',$row->usr).')',
201 201
                 round($row->voting, 2)
202 202
             );
203
-       } else {
203
+        } else {
204 204
             return '0 (' . $this->plr->GetMsg('plmsgVotes', 0) . ')';
205
-       }
205
+        }
206 206
     }
207 207
 }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Mail/Builtin.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,14 +64,14 @@
 block discarded – undo
64 64
         // Prepare the headers for the e-mail
65 65
         $mailHeaders = '';
66 66
         foreach ($headers as $key => $value) {
67
-            $mailHeaders .= $key . ': ' . $value . PHP_EOL;
67
+            $mailHeaders .= $key.': '.$value.PHP_EOL;
68 68
         }
69 69
 
70 70
         // Send the e-mail
71 71
         if (empty($sender)) {
72 72
             return mail($recipients, $subject, $body, $mailHeaders);
73 73
         } else {
74
-            return mail($recipients, $subject, $body, $mailHeaders, '-f' . $sender);
74
+            return mail($recipients, $subject, $body, $mailHeaders, '-f'.$sender);
75 75
         }
76 76
     }
77 77
 }
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
  * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
32 32
  * @link      http://www.phpmyfaq.de
33 33
  * @since     2009-09-11
34
-  */ 
34
+ */ 
35 35
 interface PMF_Mail_IMUA
36 36
 {
37 37
     /**
Please login to merge, or discard this patch.