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 (#1192)
by
unknown
14:48
created
phpmyfaq/admin/category.cut.php 1 patch
Spacing   +3 added lines, -3 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
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     foreach ($category->catTree as $cat) {
49 49
         $indent = str_repeat('…', $cat['indent']);
50 50
         if ($id != $cat['id']) {
51
-            $templateVars['categoryOptions'][$cat['id']] = $indent . $cat['name'];
51
+            $templateVars['categoryOptions'][$cat['id']] = $indent.$cat['name'];
52 52
         }
53 53
     }
54 54
 
Please login to merge, or discard this patch.
phpmyfaq/admin/record.edit.php 2 patches
Spacing   +7 added lines, -7 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
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         $faqData['id'] = PMF_Filter::filterInput(INPUT_POST, 'id', FILTER_VALIDATE_INT);
74 74
         if (!is_null($faqData['id'])) {
75
-            $queryString = 'saveentry&id=' . $faqData['id'];
75
+            $queryString = 'saveentry&id='.$faqData['id'];
76 76
         } else {
77 77
             $queryString = 'insertentry';
78 78
         }
@@ -114,14 +114,14 @@  discard block
 block discarded – undo
114 114
         $lang = PMF_Filter::filterInput(INPUT_GET, 'lang', FILTER_SANITIZE_STRING);
115 115
         if ((!isset($selectedCategory) && !isset($faqData['title'])) || !is_null($id)) {
116 116
             $logging = new PMF_Logging($faqConfig);
117
-            $logging->logAdmin($user, 'Beitragedit, ' . $id);
117
+            $logging->logAdmin($user, 'Beitragedit, '.$id);
118 118
 
119 119
             $categories = $category->getCategoryRelationsFromArticle($id, $lang);
120 120
 
121 121
             $faq->getRecord($id, null, true);
122 122
             $faqData         = $faq->faqRecord;
123 123
             $faqData['tags'] = implode(',', $tagging->getAllTagsById($faqData['id']));
124
-            $queryString     = 'saveentry&id=' . $faqData['id'];
124
+            $queryString     = 'saveentry&id='.$faqData['id'];
125 125
         } else {
126 126
             $queryString = 'insertentry';
127 127
         }
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
                                     <?php
335 335
                                     if (0 === $faqData['id']) {
336 336
                                         $faqData['id'] = $faqConfig->getDb()->nextId(
337
-                                            PMF_Db::getTablePrefix() . 'faqdata',
337
+                                            PMF_Db::getTablePrefix().'faqdata',
338 338
                                             'id'
339 339
                                         );
340 340
                                     }
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
                     <div class="panel-body">
570 570
                         <div class="form-group">
571 571
                             <div class="col-lg-offset-1 col-lg-10">
572
-                                <?php if($user->perm->checkRight($user->getUserId(), 'approverec')):
572
+                                <?php if ($user->perm->checkRight($user->getUserId(), 'approverec')):
573 573
                                     if (isset($faqData['active']) && $faqData['active'] == 'yes') {
574 574
                                         $suf = ' checked';
575 575
                                         $sul = null;
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -589,10 +589,13 @@  discard block
 block discarded – undo
589 589
                                         <input type="radio" name="active"  value="no"<?php if (isset($sul)) { echo $sul; } ?> />
590 590
                                         <?php echo $PMF_LANG['ad_gen_no']; ?>
591 591
                                     </label>
592
-                                <?php else: ?>
592
+                                <?php else {
593
+    : ?>
593 594
                                     <label class="radio">
594 595
                                         <input type="radio" name="active"  value="no" checked />
595
-                                        <?php echo $PMF_LANG['ad_gen_no']; ?>
596
+                                        <?php echo $PMF_LANG['ad_gen_no'];
597
+}
598
+?>
596 599
                                     </label>
597 600
                                 <?php endif; ?>
598 601
                             </div>
@@ -647,9 +650,12 @@  discard block
 block discarded – undo
647 650
                             </div>
648 651
                         </div>
649 652
                     </div>
650
-                    <?php else: ?>
653
+                    <?php else {
654
+    : ?>
651 655
                         <input type="hidden" name="grouppermission" value="all" />
652
-                    <?php endif; ?>
656
+                    <?php endif;
657
+}
658
+?>
653 659
                     <div class="panel-heading">
654 660
                         <?php echo $PMF_LANG['ad_entry_userpermission']; ?>
655 661
                     </div>
Please login to merge, or discard this patch.
phpmyfaq/admin/record.add.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -186,9 +186,9 @@
 block discarded – undo
186 186
             if ($faqConfig->get('socialnetworks.enableTwitterSupport')) {
187 187
                 require '../inc/libs/twitteroauth/twitteroauth.php';
188 188
                 $connection = new TwitterOAuth($faqConfig->get('socialnetworks.twitterConsumerKey'),
189
-                                               $faqConfig->get('socialnetworks.twitterConsumerSecret'),
190
-                                               $faqConfig->get('socialnetworks.twitterAccessTokenKey'),
191
-                                               $faqConfig->get('socialnetworks.twitterAccessTokenSecret'));
189
+                                                $faqConfig->get('socialnetworks.twitterConsumerSecret'),
190
+                                                $faqConfig->get('socialnetworks.twitterAccessTokenKey'),
191
+                                                $faqConfig->get('socialnetworks.twitterAccessTokenSecret'));
192 192
 
193 193
                 $link = PMF_Link::getSystemRelativeUri() .
194 194
                         sprintf(
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
23
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
24 24
         $protocol = 'https';
25 25
     }
26
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
27 27
     exit();
28 28
 }
29 29
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $category->setGroups($currentAdminGroups);
107 107
         $tagging  = new PMF_Tags($faqConfig);
108 108
 
109
-        $recordData     = array(
109
+        $recordData = array(
110 110
             'lang'          => $recordLang,
111 111
             'active'        => $active,
112 112
             'sticky'        => (!is_null($sticky) ? 1 : 0),
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
             'email'         => $email,
118 118
             'comment'       => (!is_null($comment) ? 'y' : 'n'),
119 119
             'date'          => date('YmdHis'),
120
-            'dateStart'     => (empty($dateStart) ? '00000000000000' : str_replace('-', '', $dateStart) . '000000'),
121
-            'dateEnd'       => (empty($dateEnd) ? '99991231235959' : str_replace('-', '', $dateEnd) . '235959'),
120
+            'dateStart'     => (empty($dateStart) ? '00000000000000' : str_replace('-', '', $dateStart).'000000'),
121
+            'dateEnd'       => (empty($dateEnd) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959'),
122 122
             'linkState'     => '',
123 123
             'linkDateCheck' => 0
124 124
         );
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                     $faq->updateQuestionAnswer($openQuestionId, $recordId, $categories['rubrik'][0]);
163 163
                 }
164 164
 
165
-                $url   = sprintf(
165
+                $url = sprintf(
166 166
                     '%s?action=artikel&cat=%d&id=%d&artlang=%s',
167 167
                     $faqConfig->get('main.referenceURL'),
168 168
                     $categories['rubrik'][0],
@@ -190,14 +190,14 @@  discard block
 block discarded – undo
190 190
                                                $faqConfig->get('socialnetworks.twitterAccessTokenKey'),
191 191
                                                $faqConfig->get('socialnetworks.twitterAccessTokenSecret'));
192 192
 
193
-                $link = PMF_Link::getSystemRelativeUri() .
193
+                $link = PMF_Link::getSystemRelativeUri().
194 194
                         sprintf(
195 195
                             '?action=artikel&amp;cat=%d&amp;id=%d&amp;artlang=%s',
196 196
                             $category,
197 197
                             $recordId,
198 198
                             $recordLang
199 199
                         );
200
-                $link             = $faqConfig->get('main.referenceURL') . str_replace('/admin/','/', $link);
200
+                $link             = $faqConfig->get('main.referenceURL').str_replace('/admin/', '/', $link);
201 201
                 $oLink            = new PMF_Link($link, $faqConfig);
202 202
                 $oLink->itemTitle = $question;
203 203
                 $link             = $oLink->toString();
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         } else {
224 224
             printf(
225 225
                 '<p class="alert alert-danger">%s</p>',
226
-                $PMF_LANG['ad_entry_savedfail'] . $faqConfig->getDb()->error()
226
+                $PMF_LANG['ad_entry_savedfail'].$faqConfig->getDb()->error()
227 227
             );
228 228
         }
229 229
 
Please login to merge, or discard this patch.
phpmyfaq/admin/index.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 //
29 29
 // Check if config/database.php exist -> if not, redirect to installer
30 30
 //
31
-if (!file_exists(PMF_ROOT_DIR . '/config/database.php')) {
31
+if (!file_exists(PMF_ROOT_DIR.'/config/database.php')) {
32 32
     RedirectResponse::create(str_replace('admin/index.php', '', $_SERVER['SCRIPT_NAME']).'setup/index.php')
33 33
         ->send();
34 34
     exit;
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 //
43 43
 // Bootstrapping
44 44
 //
45
-require PMF_ROOT_DIR . '/inc/Bootstrap.php';
45
+require PMF_ROOT_DIR.'/inc/Bootstrap.php';
46 46
 
47 47
 // get language (default: english)
48 48
 $Language = new PMF_Language($faqConfig);
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
 
54 54
 if (isset($LANGCODE) && PMF_Language::isASupportedLanguage($LANGCODE)) {
55 55
     // Overwrite English strings with the ones we have in the current language
56
-    if (! file_exists(PMF_ROOT_DIR . '/lang/language_' . $LANGCODE . '.php')) {
56
+    if (!file_exists(PMF_ROOT_DIR.'/lang/language_'.$LANGCODE.'.php')) {
57 57
         $LANGCODE = 'en';
58 58
     }
59
-    require PMF_ROOT_DIR . '/lang/language_' . $LANGCODE . '.php';
59
+    require PMF_ROOT_DIR.'/lang/language_'.$LANGCODE.'.php';
60 60
 } else {
61 61
     $LANGCODE = 'en';
62 62
 }
@@ -145,19 +145,19 @@  discard block
 block discarded – undo
145 145
     } else {
146 146
         // error
147 147
         $logging = new PMF_Logging($faqConfig);
148
-        $logging->logAdmin($user, 'Loginerror\nLogin: '.$faqusername.'\nErrors: ' . implode(', ', $user->errors));
148
+        $logging->logAdmin($user, 'Loginerror\nLogin: '.$faqusername.'\nErrors: '.implode(', ', $user->errors));
149 149
         $error = $PMF_LANG['ad_auth_fail'];
150 150
     }
151 151
 } else {
152 152
     // Try to authenticate with cookie information
153 153
     $user = PMF_User_CurrentUser::getFromCookie($faqConfig);
154 154
     // authenticate with session information
155
-    if (! $user instanceof PMF_User_CurrentUser) {
155
+    if (!$user instanceof PMF_User_CurrentUser) {
156 156
         $user = PMF_User_CurrentUser::getFromSession($faqConfig);
157 157
     }
158 158
     if ($user instanceof PMF_User_CurrentUser) {
159 159
         $auth = true;
160
-    }  else {
160
+    } else {
161 161
         $user = new PMF_User_CurrentUser($faqConfig);
162 162
     }
163 163
 }
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     $auth = null;
169 169
     $ssoLogout = $faqConfig->get('security.ssoLogoutRedirect');
170 170
     if ($faqConfig->get('security.ssoSupport') && !empty ($ssoLogout)) {
171
-        header ("Location: $ssoLogout");
171
+        header("Location: $ssoLogout");
172 172
     }
173 173
 }
174 174
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 }
235 235
 
236 236
 // are we running a PMF export file request?
237
-switch($action) {
237
+switch ($action) {
238 238
     case 'exportfile':
239 239
         require 'export.file.php';
240 240
         exit();
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 
248 248
 //Initializing Twig
249 249
 $twig = new Twig_Environment(
250
-    new Twig_Loader_Filesystem(PMF_ROOT_DIR . '/admin/assets/twig')
250
+    new Twig_Loader_Filesystem(PMF_ROOT_DIR.'/admin/assets/twig')
251 251
 );
252 252
 
253 253
 // Header of the admin page including the navigation
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
     }
158 158
     if ($user instanceof PMF_User_CurrentUser) {
159 159
         $auth = true;
160
-    }  else {
160
+    } else {
161 161
         $user = new PMF_User_CurrentUser($faqConfig);
162 162
     }
163 163
 }
Please login to merge, or discard this patch.
phpmyfaq/admin/user.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
 
23 23
 if (!defined('IS_VALID_PHPMYFAQ')) {
24 24
     $protocol = 'http';
25
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
25
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
26 26
         $protocol = 'https';
27 27
     }
28
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
28
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
29 29
     exit();
30 30
 }
31 31
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 $PMF_LANG['ad_msg_savedsuc_1'],
78 78
                 $user->getLogin(),
79 79
                 $PMF_LANG['ad_msg_savedsuc_2']);
80
-            $message .= '<script type="text/javascript">updateUser(' . $userId . ');</script>';
80
+            $message .= '<script type="text/javascript">updateUser('.$userId.');</script>';
81 81
             $user     = new PMF_User_CurrentUser($faqConfig);
82 82
         }
83 83
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                 $consonants  = array("b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "v", "w", "x", "y", "z");
106 106
                 $vowels      = array("a", "e", "i", "o", "u");
107 107
                 $newPassword = '';
108
-                srand((double)microtime() * 1000000);
108
+                srand((double)microtime()*1000000);
109 109
                 for ($i = 1; $i <= 4; $i++) {
110 110
                     $newPassword .= $consonants[rand(0, 19)];
111 111
                     $newPassword .= $vowels[rand(0, 4)];
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                     $userData['display_name'],
120 120
                     $user->getLogin(),
121 121
                     $newPassword);
122
-                $result        = $mail->send();
122
+                $result = $mail->send();
123 123
                 unset($mail);
124 124
             }
125 125
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                     $PMF_LANG['ad_msg_savedsuc_1'],
131 131
                     $user->getLogin(),
132 132
                     $PMF_LANG['ad_msg_savedsuc_2']);
133
-                $message .= '<script type="text/javascript">updateUser(' . $userId . ');</script>';
133
+                $message .= '<script type="text/javascript">updateUser('.$userId.');</script>';
134 134
             }
135 135
         }
136 136
     }
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
             $userAction = 'add';
269 269
             $message    = '<p class="alert alert-danger">';
270 270
             foreach ($messages as $err) {
271
-                $message .= $err . '<br />';
271
+                $message .= $err.'<br />';
272 272
             }
273 273
             $message .= '</p>';
274 274
         }
@@ -328,8 +328,8 @@  discard block
 block discarded – undo
328 328
         $numUsers  = count($allUsers);
329 329
         $page      = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 0);
330 330
         $perPage   = 10;
331
-        $numPages  = ceil($numUsers / $perPage);
332
-        $lastPage  = $page * $perPage;
331
+        $numPages  = ceil($numUsers/$perPage);
332
+        $lastPage  = $page*$perPage;
333 333
         $firstPage = $lastPage - $perPage;
334 334
 
335 335
         $baseUrl = sprintf(
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
             $templateVars['users'][] = array(
382 382
                 'id'               => $user->getUserId(),
383 383
                 'displayName'      => $user->getUserData('display_name'),
384
-                'editUrl'          => '?action=user&amp;user_id=' . $user->getUserData('user_id'),
384
+                'editUrl'          => '?action=user&amp;user_id='.$user->getUserData('user_id'),
385 385
                 'email'            => $user->getUserData('email'),
386 386
                 'icon'             => $icon,
387 387
                 'loginName'        => $user->getLogin(),
Please login to merge, or discard this patch.
phpmyfaq/admin/instances.php 1 patch
Spacing   +5 added lines, -5 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
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             <h2 class="page-header">
33 33
                 <i class="fa fa-wrench fa-fw"></i> <?php print $PMF_LANG['ad_menu_instances']; ?>
34 34
                 <?php if ($user->perm->checkRight($user->getUserId(), 'addinstances') &&
35
-                          is_writable(PMF_ROOT_DIR . DIRECTORY_SEPARATOR . 'multisite')): ?>
35
+                          is_writable(PMF_ROOT_DIR.DIRECTORY_SEPARATOR.'multisite')): ?>
36 36
                     <div class="pull-right">
37 37
                         <a class="btn btn-success" data-toggle="modal" href="#pmf-modal-add-instance">
38 38
                             <i class="fa fa-plus"></i> <?php echo $PMF_LANG["ad_instance_add"] ?>
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     $instanceId = PMF_Filter::filterInput(INPUT_POST, 'instance_id', FILTER_VALIDATE_INT);
53 53
 
54 54
     // Check, if /multisite is writeable
55
-    if (! is_writable(PMF_ROOT_DIR . DIRECTORY_SEPARATOR . 'multisite')) {
55
+    if (!is_writable(PMF_ROOT_DIR.DIRECTORY_SEPARATOR.'multisite')) {
56 56
         printf(
57 57
             '<p class="alert alert-danger">%s</p>',
58 58
             $PMF_LANG["ad_instance_error_notwritable"]
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         ?>
105 105
         <tr id="row-instance-<?php print $site->id ?>">
106 106
             <td><?php print $site->id ?></td>
107
-            <td><a href="<?php print $site->url . $site->instance ?>"><?php print $site->url ?></a></td>
107
+            <td><a href="<?php print $site->url.$site->instance ?>"><?php print $site->url ?></a></td>
108 108
             <td><?php print $site->instance ?></td>
109 109
             <td><?php print $site->comment ?></td>
110 110
             <td>
Please login to merge, or discard this patch.
phpmyfaq/admin/dashboard.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
23
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
24 24
         $protocol = 'https';
25 25
     }
26
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
27 27
     exit();
28 28
 }
29 29
 
@@ -31,12 +31,12 @@  discard block
 block discarded – undo
31 31
 
32 32
 $templateVars = array(
33 33
     'PMF_LANG'                 => $PMF_LANG,
34
-    'dashboardArticles'        => $faqTableInfo[PMF_Db::getTablePrefix() . "faqdata"],
35
-    'dashboardComments'        => $faqTableInfo[PMF_Db::getTablePrefix() . "faqcomments"],
36
-    'dashboardNews'            => $faqTableInfo[PMF_Db::getTablePrefix() . "faqnews"],
37
-    'dashboardOpenQuestions'   => $faqTableInfo[PMF_Db::getTablePrefix() . "faqquestions"],
38
-    'dashboardUsers'           => $faqTableInfo[PMF_Db::getTablePrefix() . 'faquser'] - 1,
39
-    'dashboardVisits'          => $faqTableInfo[PMF_Db::getTablePrefix() . 'faqsessions'],
34
+    'dashboardArticles'        => $faqTableInfo[PMF_Db::getTablePrefix()."faqdata"],
35
+    'dashboardComments'        => $faqTableInfo[PMF_Db::getTablePrefix()."faqcomments"],
36
+    'dashboardNews'            => $faqTableInfo[PMF_Db::getTablePrefix()."faqnews"],
37
+    'dashboardOpenQuestions'   => $faqTableInfo[PMF_Db::getTablePrefix()."faqquestions"],
38
+    'dashboardUsers'           => $faqTableInfo[PMF_Db::getTablePrefix().'faquser'] - 1,
39
+    'dashboardVisits'          => $faqTableInfo[PMF_Db::getTablePrefix().'faqsessions'],
40 40
     'enableUserTracking'       => $faqConfig->get('main.enableUserTracking'),
41 41
     'inMaintenanceMode'        => $faqConfig->get('main.maintenanceMode'),
42 42
     'onlineVerificationActive' => false,
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     $templateVars['onlineVerificationActive'] = true;
76 76
 
77 77
     set_error_handler(
78
-        function ($severity, $message, $file, $line)
78
+        function($severity, $message, $file, $line)
79 79
         {
80 80
             throw new ErrorException($message, $severity, $severity, $file, $line);
81 81
         }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     $versionCheckError = true;
87 87
     try {
88 88
         $remoteHashes = file_get_contents(
89
-            'http://www.phpmyfaq.de/api/verify/' . $faqConfig->get('main.currentVersion')
89
+            'http://www.phpmyfaq.de/api/verify/'.$faqConfig->get('main.currentVersion')
90 90
         );
91 91
         if (!is_array(json_decode($remoteHashes, true))) {
92 92
             $versionCheckError = true;
Please login to merge, or discard this patch.
phpmyfaq/admin/session.keepalive.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@  discard block
 block discarded – undo
31 31
 //
32 32
 // Bootstrapping
33 33
 //
34
-require PMF_ROOT_DIR . '/inc/Bootstrap.php';
35
-require PMF_ROOT_DIR . '/lang/language_en.php';
34
+require PMF_ROOT_DIR.'/inc/Bootstrap.php';
35
+require PMF_ROOT_DIR.'/lang/language_en.php';
36 36
 
37 37
 //
38 38
 // Get language (default: english)
39 39
 //
40 40
 $language = PMF_Filter::filterInput(INPUT_GET, 'lang', FILTER_SANITIZE_STRING);
41 41
 if (!is_null($language) && PMF_Language::isASupportedLanguage($language)) {
42
-    require PMF_ROOT_DIR . '/lang/language_' . $language . '.php';
42
+    require PMF_ROOT_DIR.'/lang/language_'.$language.'.php';
43 43
 }
44 44
 
45 45
 //
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 PMF_String::init($language);
49 49
 
50 50
 $user        = PMF_User_CurrentUser::getFromSession($faqConfig);
51
-$refreshTime = (PMF_SESSION_ID_EXPIRES - PMF_SESSION_ID_REFRESH) * 60;
51
+$refreshTime = (PMF_SESSION_ID_EXPIRES - PMF_SESSION_ID_REFRESH)*60;
52 52
 ?>
53 53
 <!DOCTYPE html>
54 54
 <html lang="<?php print $PMF_LANG['metaLanguage']; ?>" class="no-js">
Please login to merge, or discard this patch.
phpmyfaq/admin/stopwordsconfig.main.php 1 patch
Spacing   +3 added lines, -3 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
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                 <select onchange="loadStopWordsByLang(this.options[this.selectedIndex].value)"
47 47
                         id="stopwords_lang_selector">
48 48
                 <option value="none">---</option>
49
-    <?php foreach($sortedLanguageCodes as $key => $value) { ?>
49
+    <?php foreach ($sortedLanguageCodes as $key => $value) { ?>
50 50
         <option value="<?php echo strtolower($key); ?>"><?php echo $value; ?></option>
51 51
     <?php } ?>
52 52
                 </select>
Please login to merge, or discard this patch.