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 ( 757b80...f8dd9b )
by Thorsten
86:54 queued 69:27
created
phpmyfaq/lang/language_de.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -638,14 +638,14 @@  discard block
 block discarded – undo
638 638
 $PMF_LANG["ad_entry_visibility"] = "sichtbar";
639 639
 
640 640
 // added v2.0.0 - 2006-01-02 by Lars
641
-$PMF_LANG["ad_user_error_password"] =  "Bitte geben Sie ein Passwort ein. ";
642
-$PMF_LANG["ad_user_error_passwordsDontMatch"] =  "Die Passwörter stimmen nicht überein. ";
643
-$PMF_LANG["ad_user_error_loginInvalid"] =  "Der ausgewählte Benutzer ist ungültig.";
644
-$PMF_LANG["ad_user_error_noEmail"] =  "Bitte geben Sie eine korrekte E-Mailadresse ein. ";
645
-$PMF_LANG["ad_user_error_noRealName"] =  "Bitte geben Sie ihren Namen ein. ";
646
-$PMF_LANG["ad_user_error_delete"] =  "Der Benutzeraccount kann nicht gelöscht werden. ";
647
-$PMF_LANG["ad_user_error_noId"] =  "Keine ID ausgewählt. ";
648
-$PMF_LANG["ad_user_error_protectedAccount"] =  "Der Benutzeraccount ist geschützt. ";
641
+$PMF_LANG["ad_user_error_password"] = "Bitte geben Sie ein Passwort ein. ";
642
+$PMF_LANG["ad_user_error_passwordsDontMatch"] = "Die Passwörter stimmen nicht überein. ";
643
+$PMF_LANG["ad_user_error_loginInvalid"] = "Der ausgewählte Benutzer ist ungültig.";
644
+$PMF_LANG["ad_user_error_noEmail"] = "Bitte geben Sie eine korrekte E-Mailadresse ein. ";
645
+$PMF_LANG["ad_user_error_noRealName"] = "Bitte geben Sie ihren Namen ein. ";
646
+$PMF_LANG["ad_user_error_delete"] = "Der Benutzeraccount kann nicht gelöscht werden. ";
647
+$PMF_LANG["ad_user_error_noId"] = "Keine ID ausgewählt. ";
648
+$PMF_LANG["ad_user_error_protectedAccount"] = "Der Benutzeraccount ist geschützt. ";
649 649
 $PMF_LANG["ad_user_deleteUser"] = "Lösche Benutzer";
650 650
 $PMF_LANG["ad_user_status"] = "Status:";
651 651
 $PMF_LANG["ad_user_lastModified"] = "Letzte Änderung:";
@@ -980,9 +980,9 @@  discard block
 block discarded – undo
980 980
 $PMF_LANG["ad_record_active"] = "aktiviert";
981 981
 
982 982
 // added 2.6.0-alpha - 2009-11-02 by max
983
-$LANG_CONF["search.numberSearchTerms"]   = array(0 => "input", 1 => "Anzahl der beliebtesten Suchbegriffe");
983
+$LANG_CONF["search.numberSearchTerms"] = array(0 => "input", 1 => "Anzahl der beliebtesten Suchbegriffe");
984 984
 $LANG_CONF["records.orderingPopularFaqs"] = array(0 => "select", 1 => "Sortierung der TOP-FAQ");
985
-$PMF_LANG["list_all_users"]            = "Alle Benutzer anzeigen";
985
+$PMF_LANG["list_all_users"] = "Alle Benutzer anzeigen";
986 986
 
987 987
 $PMF_LANG["records.orderingPopularFaqs.visits"] = "nach Anzahl der Besucher";
988 988
 $PMF_LANG["records.orderingPopularFaqs.voting"] = "nach Bewertung der Besucher";
Please login to merge, or discard this patch.
phpmyfaq/attachment.php 3 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Handle attachment downloads
4
- *
5
- * PHP Version 5.3
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
- * @package   Frontend
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
- * @link      http://www.phpmyfaq.de
17
- * @since     2009-06-23
18
- */
3
+     * Handle attachment downloads
4
+     *
5
+     * PHP Version 5.3
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
+     * @package   Frontend
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
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2009-06-23
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
Please login to merge, or discard this 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
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 // authenticate with session information
38 38
 $user = PMF_User_CurrentUser::getFromCookie($faqConfig);
39
-if (! $user instanceof PMF_User_CurrentUser) {
39
+if (!$user instanceof PMF_User_CurrentUser) {
40 40
     $user = PMF_User_CurrentUser::getFromSession($faqConfig);
41 41
 }
42 42
 if (!$user instanceof PMF_User_CurrentUser) {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $attachment->rawOut();
89 89
         exit(0);
90 90
     } catch (Exception $e) {
91
-        $attachmentErrors[] = $PMF_LANG['msgAttachmentInvalid'] . ' (' . $e->getMessage() . ')';
91
+        $attachmentErrors[] = $PMF_LANG['msgAttachmentInvalid'].' ('.$e->getMessage().')';
92 92
     }
93 93
 } else {
94 94
     $attachmentErrors[] = $PMF_LANG['err_NotAuth'];
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,9 @@
 block discarded – undo
75 75
     // check user rights, set them TRUE
76 76
     $allUserRights = $user->perm->getAllUserRights($user->getUserId());
77 77
     foreach ($allRights as $right) {
78
-        if (in_array($right['right_id'], $allUserRights))
79
-            $permission[$right['name']] = true;
78
+        if (in_array($right['right_id'], $allUserRights)) {
79
+                    $permission[$right['name']] = true;
80
+        }
80 81
     }
81 82
 }
82 83
 
Please login to merge, or discard this patch.
phpmyfaq/index.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -436,8 +436,8 @@  discard block
 block discarded – undo
436 436
     $users       = $faqsession->getUsersOnline();
437 437
     $totUsers    = $users[0] + $users[1];
438 438
     $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers) . ' | ' .
439
-                   $plr->getMsg('plmsgGuestOnline', $users[0]) .
440
-                   $plr->getMsg('plmsgRegisteredOnline',$users[1]);
439
+                    $plr->getMsg('plmsgGuestOnline', $users[0]) .
440
+                    $plr->getMsg('plmsgRegisteredOnline',$users[1]);
441 441
 } else {
442 442
     $usersOnline = '';
443 443
 }
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
     'switchLanguages'      => PMF_Language::selectLanguages($LANGCODE, true),
489 489
     'userOnline'           => $usersOnline,
490 490
     'copyright'            => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> ' .
491
-                              $faqConfig->get('main.currentVersion'),
491
+                                $faqConfig->get('main.currentVersion'),
492 492
     'registerUser'         => '<a href="?action=register">' . $PMF_LANG['msgRegistration'] . '</a>',
493 493
     'sendPassword'         => '<a href="?action=password">' . $PMF_LANG['lostPassword'] . '</a>',
494 494
     'loginHeader'          => $PMF_LANG['msgLoginUser'],
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
                     '<a class="help" href="%sindex.php?action=search">%s</a>',
518 518
                     $faqSystem->getSystemUri($faqConfig),
519 519
                     $PMF_LANG["msgAdvancedSearch"]
520
-                 )
520
+                    )
521 521
             )
522 522
         );
523 523
     } else {
Please login to merge, or discard this patch.
Spacing   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
 if (isset($LANGCODE) && PMF_Language::isASupportedLanguage($LANGCODE) && is_null($showCaptcha)) {
46 46
     // Overwrite English strings with the ones we have in the current language,
47 47
     // but don't include UTF-8 encoded files, these will break the captcha images
48
-    if (! file_exists('lang/language_' . $LANGCODE . '.php')) {
48
+    if (!file_exists('lang/language_'.$LANGCODE.'.php')) {
49 49
         $LANGCODE = 'en';
50 50
     }
51
-    require_once 'lang/language_' . $LANGCODE . '.php';
51
+    require_once 'lang/language_'.$LANGCODE.'.php';
52 52
 } else {
53 53
     $LANGCODE = 'en';
54 54
 }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
                 $action = $faqaction; // SSO logins don't have $faqaction
114 114
             }
115 115
         } else {
116
-            $error           = $PMF_LANG['ad_auth_fail'] . ' (' . $faqusername . ')';
116
+            $error           = $PMF_LANG['ad_auth_fail'].' ('.$faqusername.')';
117 117
             $loginVisibility = '';
118 118
             $user            = null;
119 119
             $action          = 'password' === $action ? 'password' : 'login';
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     // Try to authenticate with cookie information
131 131
     $user = PMF_User_CurrentUser::getFromCookie($faqConfig);
132 132
     // authenticate with session information
133
-    if (! $user instanceof PMF_User_CurrentUser) {
133
+    if (!$user instanceof PMF_User_CurrentUser) {
134 134
         $user = PMF_User_CurrentUser::getFromSession($faqConfig);
135 135
     }
136 136
     if ($user instanceof PMF_User_CurrentUser) {
@@ -167,9 +167,9 @@  discard block
 block discarded – undo
167 167
     $action = 'main';
168 168
     $ssoLogout = $faqConfig->get('security.ssoLogoutRedirect');
169 169
     if ($faqConfig->get('security.ssoSupport') && !empty ($ssoLogout)) {
170
-        header('Location: ' . $ssoLogout);
170
+        header('Location: '.$ssoLogout);
171 171
     } else {
172
-        header('Location: ' . $faqConfig->get('main.referenceURL'));
172
+        header('Location: '.$faqConfig->get('main.referenceURL'));
173 173
     }
174 174
 }
175 175
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 // Get current user and group id - default: -1
178 178
 //
179 179
 if (!is_null($user) && $user instanceof PMF_User_CurrentUser) {
180
-    $current_user   = $user->getUserId();
180
+    $current_user = $user->getUserId();
181 181
     if ($user->perm instanceof PMF_Perm_Medium) {
182 182
         $current_groups = $user->perm->getUserGroups($current_user);
183 183
     } else {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 // Use mbstring extension if available and when possible
196 196
 //
197 197
 $validMbStrings = array('ja', 'en', 'uni');
198
-$mbLanguage       = ($PMF_LANG['metaLanguage'] != 'ja') ? 'uni' : $PMF_LANG['metaLanguage'];
198
+$mbLanguage = ($PMF_LANG['metaLanguage'] != 'ja') ? 'uni' : $PMF_LANG['metaLanguage'];
199 199
 if (function_exists('mb_language') && in_array($mbLanguage, $validMbStrings)) {
200 200
     mb_language($mbLanguage);
201 201
     mb_internal_encoding('utf-8');
@@ -253,9 +253,9 @@  discard block
 block discarded – undo
253 253
 // Found a article language?
254 254
 //
255 255
 $lang = PMF_Filter::filterInput(INPUT_POST, 'artlang', FILTER_SANITIZE_STRING);
256
-if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang) ) {
256
+if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang)) {
257 257
     $lang = PMF_Filter::filterInput(INPUT_GET, 'artlang', FILTER_SANITIZE_STRING);
258
-    if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang) ) {
258
+    if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang)) {
259 259
         $lang = $LANGCODE;
260 260
     }
261 261
 }
@@ -283,12 +283,12 @@  discard block
 block discarded – undo
283 283
 //
284 284
 $id = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT);
285 285
 if (!is_null($id)) {
286
-    $title           = ' - ' . $faq->getRecordTitle($id);
287
-    $keywords        = ',' . $faq->getRecordKeywords($id);
286
+    $title           = ' - '.$faq->getRecordTitle($id);
287
+    $keywords        = ','.$faq->getRecordKeywords($id);
288 288
     $metaDescription = str_replace('"', '', $faq->getRecordPreview($id));
289 289
 } else {
290 290
     $id              = '';
291
-    $title           = ' -  powered by phpMyFAQ ' . $faqConfig->get('main.currentVersion');
291
+    $title           = ' -  powered by phpMyFAQ '.$faqConfig->get('main.currentVersion');
292 292
     $keywords        = '';
293 293
     $metaDescription = str_replace('"', '', $faqConfig->get('main.metaDescription'));
294 294
 }
@@ -297,15 +297,15 @@  discard block
 block discarded – undo
297 297
 // found a solution ID?
298 298
 //
299 299
 $solutionId = PMF_Filter::filterInput(INPUT_GET, 'solution_id', FILTER_VALIDATE_INT);
300
-if (! is_null($solutionId)) {
301
-    $title    = ' -  powered by phpMyFAQ ' . $faqConfig->get('main.currentVersion');
300
+if (!is_null($solutionId)) {
301
+    $title    = ' -  powered by phpMyFAQ '.$faqConfig->get('main.currentVersion');
302 302
     $keywords = '';
303 303
     $faqData  = $faq->getIdFromSolutionId($solutionId);
304 304
     if (is_array($faqData)) {
305 305
         $id              = $faqData['id'];
306 306
         $lang            = $faqData['lang'];
307
-        $title           = ' - ' . $faq->getRecordTitle($id);
308
-        $keywords        = ',' . $faq->getRecordKeywords($id);
307
+        $title           = ' - '.$faq->getRecordTitle($id);
308
+        $keywords        = ','.$faq->getRecordKeywords($id);
309 309
         $metaDescription = str_replace('"', '', PMF_Utils::makeShorterText(strip_tags($faqData['content']), 12));
310 310
     }
311 311
 }
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 //
316 316
 $tag_id = PMF_Filter::filterInput(INPUT_GET, 'tagging_id', FILTER_VALIDATE_INT);
317 317
 if (!is_null($tag_id)) {
318
-    $title    = ' - ' . $oTag->getTagNameById($tag_id);
318
+    $title    = ' - '.$oTag->getTagNameById($tag_id);
319 319
     $keywords = '';
320 320
 }
321 321
 
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 //
325 325
 $letter = PMF_Filter::filterInput(INPUT_GET, 'letter', FILTER_SANITIZE_STRIPPED);
326 326
 if (!is_null($letter) && (1 == PMF_String::strlen($letter))) {
327
-    $title    = ' - ' . $letter . '...';
327
+    $title    = ' - '.$letter.'...';
328 328
     $keywords = $letter;
329 329
 }
330 330
 
@@ -359,9 +359,9 @@  discard block
 block discarded – undo
359 359
 // Select the template for the requested page
360 360
 //
361 361
 if ($action != 'main') {
362
-    $includeTemplate = $action . '.tpl';
363
-    $includePhp      = $action . '.php';
364
-    $writeLangAdress = '?sid=' . $sid;
362
+    $includeTemplate = $action.'.tpl';
363
+    $includePhp      = $action.'.php';
364
+    $writeLangAdress = '?sid='.$sid;
365 365
 } else {
366 366
     if (isset($solutionId) && is_numeric($solutionId)) {
367 367
         // show the record with the solution ID
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
         $includeTemplate = 'main.tpl';
372 372
         $includePhp      = 'main.php';
373 373
     }
374
-    $writeLangAdress = '?sid=' . $sid;
374
+    $writeLangAdress = '?sid='.$sid;
375 375
 }
376 376
 
377 377
 //
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
     if ($auth) {
395 395
         $indexSet = 'index.tpl';
396 396
     } else {
397
-        switch($action) {
397
+        switch ($action) {
398 398
             case 'register':
399 399
             case 'thankyou':
400 400
                 $indexSet = 'indexNewUser.tpl';
@@ -435,9 +435,9 @@  discard block
 block discarded – undo
435 435
 if ($faqConfig->get('main.enableUserTracking')) {
436 436
     $users       = $faqsession->getUsersOnline();
437 437
     $totUsers    = $users[0] + $users[1];
438
-    $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers) . ' | ' .
439
-                   $plr->getMsg('plmsgGuestOnline', $users[0]) .
440
-                   $plr->getMsg('plmsgRegisteredOnline',$users[1]);
438
+    $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers).' | '.
439
+                   $plr->getMsg('plmsgGuestOnline', $users[0]).
440
+                   $plr->getMsg('plmsgRegisteredOnline', $users[1]);
441 441
 } else {
442 442
     $usersOnline = '';
443 443
 }
@@ -457,18 +457,18 @@  discard block
 block discarded – undo
457 457
 $currentPageUrl = $faqLink->getCurrentUrl();
458 458
 
459 459
 if (is_null($error)) {
460
-    $loginMessage = '<p>' . $PMF_LANG['ad_auth_insert'] . '</p>';
460
+    $loginMessage = '<p>'.$PMF_LANG['ad_auth_insert'].'</p>';
461 461
 } else {
462
-    $loginMessage = '<p class="error">' . $error . '</p>';
462
+    $loginMessage = '<p class="error">'.$error.'</p>';
463 463
 }
464 464
 
465 465
 $tplMainPage = array(
466 466
     'msgLoginUser'         => $PMF_LANG['msgLoginUser'],
467
-    'title'                => $faqConfig->get('main.titleFAQ') . $title,
467
+    'title'                => $faqConfig->get('main.titleFAQ').$title,
468 468
     'baseHref'             => $faqSystem->getSystemUri($faqConfig),
469 469
     'version'              => $faqConfig->get('main.currentVersion'),
470 470
     'header'               => str_replace('"', '', $faqConfig->get('main.titleFAQ')),
471
-    'metaTitle'            => str_replace('"', '', $faqConfig->get('main.titleFAQ') . $title),
471
+    'metaTitle'            => str_replace('"', '', $faqConfig->get('main.titleFAQ').$title),
472 472
     'metaDescription'      => $metaDescription,
473 473
     'metaKeywords'         => $keywords,
474 474
     'metaPublisher'        => $faqConfig->get('main.metaPublisher'),
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
     'metaCharset'          => 'utf-8', // backwards compability
477 477
     'phpmyfaqversion'      => $faqConfig->get('main.currentVersion'),
478 478
     'stylesheet'           => $PMF_LANG['dir'] == 'rtl' ? 'style.rtl' : 'style',
479
-    'currentPageUrl'       => preg_match( '/(\S+\/content\/\S+.html)\?\S*/', $currentPageUrl, $canonical ) === 1 ? $canonical[1] : $currentPageUrl,
479
+    'currentPageUrl'       => preg_match('/(\S+\/content\/\S+.html)\?\S*/', $currentPageUrl, $canonical) === 1 ? $canonical[1] : $currentPageUrl,
480 480
     'action'               => $action,
481 481
     'dir'                  => $PMF_LANG['dir'],
482 482
     'msgCategory'          => $PMF_LANG['msgCategory'],
@@ -487,13 +487,13 @@  discard block
 block discarded – undo
487 487
     'writeLangAdress'      => $writeLangAdress,
488 488
     'switchLanguages'      => PMF_Language::selectLanguages($LANGCODE, true),
489 489
     'userOnline'           => $usersOnline,
490
-    'copyright'            => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> ' .
490
+    'copyright'            => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> '.
491 491
                               $faqConfig->get('main.currentVersion'),
492
-    'registerUser'         => '<a href="?action=register">' . $PMF_LANG['msgRegistration'] . '</a>',
493
-    'sendPassword'         => '<a href="?action=password">' . $PMF_LANG['lostPassword'] . '</a>',
492
+    'registerUser'         => '<a href="?action=register">'.$PMF_LANG['msgRegistration'].'</a>',
493
+    'sendPassword'         => '<a href="?action=password">'.$PMF_LANG['lostPassword'].'</a>',
494 494
     'loginHeader'          => $PMF_LANG['msgLoginUser'],
495 495
     'loginMessage'         => $loginMessage,
496
-    'writeLoginPath'       => $faqSystem->getSystemUri($faqConfig) . '?' . PMF_Filter::getFilteredQueryString(),
496
+    'writeLoginPath'       => $faqSystem->getSystemUri($faqConfig).'?'.PMF_Filter::getFilteredQueryString(),
497 497
     'faqloginaction'       => $action,
498 498
     'login'                => $PMF_LANG['ad_auth_ok'],
499 499
     'username'             => $PMF_LANG['ad_auth_user'],
@@ -552,18 +552,18 @@  discard block
 block discarded – undo
552 552
 
553 553
 if ($faqConfig->get('main.enableRewriteRules')) {
554 554
     $tplNavigation = array(
555
-        "msgSearch"           => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'search.html">'.$PMF_LANG["msgAdvancedSearch"].'</a>',
556
-        'msgAddContent'       => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'addcontent.html">'.$PMF_LANG["msgAddContent"].'</a>',
557
-        "msgQuestion"         => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'ask.html">'.$PMF_LANG["msgQuestion"].'</a>',
558
-        "msgOpenQuestions"    => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'open.html">'.$PMF_LANG["msgOpenQuestions"].'</a>',
559
-        'msgHelp'             => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'help.html">'.$PMF_LANG["msgHelp"].'</a>',
560
-        "msgContact"          => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'contact.html">'.$PMF_LANG["msgContact"].'</a>',
561
-        'msgGlossary'         => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'glossary.html">' . $PMF_LANG['ad_menu_glossary'] . '</a>',
562
-        "backToHome"          => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'index.html">'.$PMF_LANG["msgHome"].'</a>',
563
-        "allCategories"       => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'showcat.html">'.$PMF_LANG["msgShowAllCategories"].'</a>',
564
-        'showInstantResponse' => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'instantresponse.html">'.$PMF_LANG['msgInstantResponse'].'</a>',
565
-        'showSitemap'         => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'sitemap/A/'.$LANGCODE.'.html">'.$PMF_LANG['msgSitemap'].'</a>',
566
-        'opensearch'          => $faqSystem->getSystemUri($faqConfig) . 'opensearch.html');
555
+        "msgSearch"           => '<a href="'.$faqSystem->getSystemUri($faqConfig).'search.html">'.$PMF_LANG["msgAdvancedSearch"].'</a>',
556
+        'msgAddContent'       => '<a href="'.$faqSystem->getSystemUri($faqConfig).'addcontent.html">'.$PMF_LANG["msgAddContent"].'</a>',
557
+        "msgQuestion"         => '<a href="'.$faqSystem->getSystemUri($faqConfig).'ask.html">'.$PMF_LANG["msgQuestion"].'</a>',
558
+        "msgOpenQuestions"    => '<a href="'.$faqSystem->getSystemUri($faqConfig).'open.html">'.$PMF_LANG["msgOpenQuestions"].'</a>',
559
+        'msgHelp'             => '<a href="'.$faqSystem->getSystemUri($faqConfig).'help.html">'.$PMF_LANG["msgHelp"].'</a>',
560
+        "msgContact"          => '<a href="'.$faqSystem->getSystemUri($faqConfig).'contact.html">'.$PMF_LANG["msgContact"].'</a>',
561
+        'msgGlossary'         => '<a href="'.$faqSystem->getSystemUri($faqConfig).'glossary.html">'.$PMF_LANG['ad_menu_glossary'].'</a>',
562
+        "backToHome"          => '<a href="'.$faqSystem->getSystemUri($faqConfig).'index.html">'.$PMF_LANG["msgHome"].'</a>',
563
+        "allCategories"       => '<a href="'.$faqSystem->getSystemUri($faqConfig).'showcat.html">'.$PMF_LANG["msgShowAllCategories"].'</a>',
564
+        'showInstantResponse' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'instantresponse.html">'.$PMF_LANG['msgInstantResponse'].'</a>',
565
+        'showSitemap'         => '<a href="'.$faqSystem->getSystemUri($faqConfig).'sitemap/A/'.$LANGCODE.'.html">'.$PMF_LANG['msgSitemap'].'</a>',
566
+        'opensearch'          => $faqSystem->getSystemUri($faqConfig).'opensearch.html');
567 567
 } else {
568 568
     $tplNavigation = array(
569 569
         "msgSearch"           => '<a href="index.php?'.$sids.'action=search">'.$PMF_LANG["msgAdvancedSearch"].'</a>',
@@ -572,12 +572,12 @@  discard block
 block discarded – undo
572 572
         "msgOpenQuestions"    => '<a href="index.php?'.$sids.'action=open">'.$PMF_LANG["msgOpenQuestions"].'</a>',
573 573
         "msgHelp"             => '<a href="index.php?'.$sids.'action=help">'.$PMF_LANG["msgHelp"].'</a>',
574 574
         "msgContact"          => '<a href="index.php?'.$sids.'action=contact">'.$PMF_LANG["msgContact"].'</a>',
575
-        'msgGlossary'         => '<a href="index.php?'.$sids.'action=glossary">' . $PMF_LANG['ad_menu_glossary'] . '</a>',
575
+        'msgGlossary'         => '<a href="index.php?'.$sids.'action=glossary">'.$PMF_LANG['ad_menu_glossary'].'</a>',
576 576
         "allCategories"       => '<a href="index.php?'.$sids.'action=show">'.$PMF_LANG["msgShowAllCategories"].'</a>',
577 577
         "backToHome"          => '<a href="index.php?'.$sids.'">'.$PMF_LANG["msgHome"].'</a>',
578 578
         'showInstantResponse' => '<a href="index.php?'.$sids.'action=instantresponse">'.$PMF_LANG['msgInstantResponse'].'</a>',
579 579
         'showSitemap'         => '<a href="index.php?'.$sids.'action=sitemap&amp;lang='.$LANGCODE.'">'.$PMF_LANG['msgSitemap'].'</a>',
580
-        'opensearch'          => $faqSystem->getSystemUri($faqConfig) . 'opensearch.php');
580
+        'opensearch'          => $faqSystem->getSystemUri($faqConfig).'opensearch.php');
581 581
 }
582 582
 
583 583
 $tplNavigation['faqHome']             = $faqConfig->get('main.referenceURL');
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
 //
592 592
 if (DEBUG) {
593 593
     $tplDebug = array(
594
-        'debugMessages' => '<div id="debug_main"><h2>DEBUG INFORMATION:</h2>' . $faqConfig->getDb()->log() . '</div>'
594
+        'debugMessages' => '<div id="debug_main"><h2>DEBUG INFORMATION:</h2>'.$faqConfig->getDb()->log().'</div>'
595 595
     );
596 596
 } else {
597 597
     $tplDebug = array(
@@ -606,13 +606,13 @@  discard block
 block discarded – undo
606 606
     if (in_array(true, $permission)) {
607 607
         $adminSection = sprintf(
608 608
             '<a href="%s">%s</a>',
609
-            $faqSystem->getSystemUri($faqConfig) . 'admin/index.php',
609
+            $faqSystem->getSystemUri($faqConfig).'admin/index.php',
610 610
             $PMF_LANG['adminSection']
611 611
         );
612 612
     } else {
613 613
         $adminSection = sprintf(
614 614
             '<a href="%s">%s</a>',
615
-            $faqSystem->getSystemUri($faqConfig) . 'index.php?action=ucp',
615
+            $faqSystem->getSystemUri($faqConfig).'index.php?action=ucp',
616 616
             $PMF_LANG['headerUserControlPanel']
617 617
         );
618 618
     }
@@ -622,10 +622,10 @@  discard block
 block discarded – undo
622 622
         'userloggedIn',
623 623
         array(
624 624
             'msgUserControl'         => $adminSection,
625
-            'msgFullName'            => $PMF_LANG['ad_user_loggedin'] . $user->getLogin(),
625
+            'msgFullName'            => $PMF_LANG['ad_user_loggedin'].$user->getLogin(),
626 626
             'msgLoginName'           => $user->getUserData('display_name'),
627
-            'msgUserControlDropDown' => '<a href="?action=ucp">' . $PMF_LANG['headerUserControlPanel'] . '</a>',
628
-            'msgLogoutUser'          => '<a href="?action=logout">' . $PMF_LANG['ad_menu_logout'] . '</a>',
627
+            'msgUserControlDropDown' => '<a href="?action=ucp">'.$PMF_LANG['headerUserControlPanel'].'</a>',
628
+            'msgLogoutUser'          => '<a href="?action=logout">'.$PMF_LANG['ad_menu_logout'].'</a>',
629 629
             'activeUserControl'      => ('ucp' == $action) ? 'active' : ''
630 630
         )
631 631
     );
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
         'index',
642 642
         'notLoggedIn',
643 643
         array(
644
-            'msgRegisterUser' => '<a href="?action=register">' . $PMF_LANG['msgRegisterUser'] . '</a>',
644
+            'msgRegisterUser' => '<a href="?action=register">'.$PMF_LANG['msgRegisterUser'].'</a>',
645 645
             'msgLoginUser'    => sprintf($msgLoginUser, $PMF_LANG['msgLoginUser']),
646 646
             'activeRegister'  => ('register' == $action) ? 'active' : '',
647 647
             'activeLogin'     => ('login' == $action) ? 'active' : ''
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,9 @@
 block discarded – undo
75 75
     // check user rights, set them TRUE
76 76
     $allUserRights = $user->perm->getAllUserRights($user->getUserId());
77 77
     foreach ($allRights as $right) {
78
-        if (in_array($right['right_id'], $allUserRights))
79
-            $permission[$right['name']] = true;
78
+        if (in_array($right['right_id'], $allUserRights)) {
79
+                    $permission[$right['name']] = true;
80
+        }
80 81
     }
81 82
 }
82 83
 
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,8 +37,8 @@  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'];
41
-    $writeNewsRSS     = '&nbsp;<a href="feed/news/rss.php" target="_blank">' . 
40
+    $writeNewsHeader .= ' '.$PMF_LANG['msgNews'];
41
+    $writeNewsRSS     = '&nbsp;<a href="feed/news/rss.php" target="_blank">'. 
42 42
                         '<img id="newsRSS" src="assets/img/feed.png" width="16" height="16" alt="RSS" /></a>';
43 43
     $showAllNews      = sprintf('<a href="?%snewsid=0">%s</a>', $sids, $PMF_LANG['newsShowArchive']);
44 44
 }
Please login to merge, or discard this patch.
phpmyfaq/translate.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
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         'msgNewTranslationAddon'    => $PMF_LANG['msgNewTranslationAddon'],
84 84
         'msgNewTransSourcePane'     => $PMF_LANG['msgNewTransSourcePane'],
85 85
         'msgNewTranslationPane'     => $PMF_LANG['msgNewTranslationPane'],
86
-        'writeSendAdress'           => '?' . $sids . 'action=save',
86
+        'writeSendAdress'           => '?'.$sids.'action=save',
87 87
         'defaultContentName'        => ($user ? $user->getUserData('display_name') : ''),
88 88
         'defaultContentMail'        => ($user ? $user->getUserData('email') : ''),
89 89
         'msgNewTranslationQuestion' => $PMF_LANG['msgNewContentTheme'],
Please login to merge, or discard this patch.
phpmyfaq/opensearch.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
 
20 20
 define('IS_VALID_PHPMYFAQ', null);
21 21
 
22
-require __DIR__ . '/inc/Bootstrap.php';
23
-require PMF_LANGUAGE_DIR . '/' . $faqConfig->get('main.language');
22
+require __DIR__.'/inc/Bootstrap.php';
23
+require PMF_LANGUAGE_DIR.'/'.$faqConfig->get('main.language');
24 24
 
25 25
 $baseUrl   = $faqConfig->get('main.referenceURL');
26
-$searchUrl = $baseUrl . '/index.php?action=search';
26
+$searchUrl = $baseUrl.'/index.php?action=search';
27 27
 
28 28
 $xml = new XMLWriter();
29 29
 $xml->openMemory();
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 $xml->writeElement('Description', $faqConfig->get('main.metaDescription'));
37 37
 $xml->startElement('Url');
38 38
 $xml->writeAttribute('type', 'text/html');
39
-$xml->writeAttribute('template', $searchUrl . '&search={searchTerms}');
39
+$xml->writeAttribute('template', $searchUrl.'&search={searchTerms}');
40 40
 $xml->endElement();
41 41
 $xml->writeElement('Language', $PMF_LANG['metaLanguage']);
42 42
 $xml->writeElement('OutputEncoding', 'utf-8');
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 $xml->writeAttribute('height', 16);
46 46
 $xml->writeAttribute('width', 16);
47 47
 $xml->writeAttribute('type', 'image/png');
48
-$xml->text($baseUrl . '/assets/img/pmfsearch.png');
48
+$xml->text($baseUrl.'/assets/img/pmfsearch.png');
49 49
 
50 50
 $xml->endDocument();
51 51
 
Please login to merge, or discard this patch.
phpmyfaq/search.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
 
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
     // Before a redirection we must force the PHP session update for preventing data loss
107 107
     session_write_close();
108 108
     if ($faqConfig->get('main.enableRewriteRules')) {
109
-        header('Location: ' . $faqConfig->get('main.referenceURL') . '/solution_id_' . $inputSearchTerm . '.html');
109
+        header('Location: '.$faqConfig->get('main.referenceURL').'/solution_id_'.$inputSearchTerm.'.html');
110 110
     } else {
111
-        header('Location: ' . $faqConfig->get('main.referenceURL') . '/index.php?solution_id=' . $inputSearchTerm);
111
+        header('Location: '.$faqConfig->get('main.referenceURL').'/index.php?solution_id='.$inputSearchTerm);
112 112
     }
113 113
     exit();
114 114
 }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 } else {
130 130
     $baseUrl = sprintf('%s?%saction=search&amp;search=%s&amp;seite=%d%s&amp;searchcategory=%d',
131 131
         PMF_Link::getSystemRelativeUri(),
132
-        empty($sids) ? '' : 'sids=' . $sids . '&amp;',
132
+        empty($sids) ? '' : 'sids='.$sids.'&amp;',
133 133
         urlencode($inputSearchTerm),
134 134
         $page,
135 135
         $languages,
Please login to merge, or discard this patch.
phpmyfaq/ajaxservice.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -602,8 +602,8 @@  discard block
 block discarded – undo
602 602
 
603 603
                 $message = array(
604 604
                     'success' => trim($PMF_LANG['successMessage']) .
605
-                                 ' ' .
606
-                                 trim($PMF_LANG['msgRegThankYou'])
605
+                                    ' ' .
606
+                                    trim($PMF_LANG['msgRegThankYou'])
607 607
                 );
608 608
             }
609 609
 
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
         $mailto   = PMF_Filter::filterInputArray(INPUT_POST,
699 699
             array('mailto' =>
700 700
                 array('filter' => FILTER_VALIDATE_EMAIL,
701
-                      'flags'  => FILTER_REQUIRE_ARRAY | FILTER_NULL_ON_FAILURE
701
+                        'flags'  => FILTER_REQUIRE_ARRAY | FILTER_NULL_ON_FAILURE
702 702
                 )
703 703
             )
704 704
         );
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 if (PMF_Language::isASupportedLanguage($ajaxlang)) {
38 38
     $languageCode = trim($ajaxlang);
39
-    require_once 'lang/language_' . $languageCode . '.php';
39
+    require_once 'lang/language_'.$languageCode.'.php';
40 40
 } else {
41 41
     $languageCode = 'en';
42 42
     require_once 'lang/language_en.php';
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 // Check, if user is logged in
83 83
 //
84 84
 $user = PMF_User_CurrentUser::getFromCookie($faqConfig);
85
-if (! $user instanceof PMF_User_CurrentUser) {
85
+if (!$user instanceof PMF_User_CurrentUser) {
86 86
     $user = PMF_User_CurrentUser::getFromSession($faqConfig);
87 87
 }
88 88
 if ($user instanceof PMF_User_CurrentUser) {
@@ -199,9 +199,9 @@  discard block
 block discarded – undo
199 199
                 }
200 200
                 
201 201
                 $commentMail =
202
-                    'User: ' . $commentData['username'] . ', mailto:'. $commentData['usermail'] . "\n".
203
-                    'New comment posted on: ' . $urlToContent .
204
-                    "\n\n" .
202
+                    'User: '.$commentData['username'].', mailto:'.$commentData['usermail']."\n".
203
+                    'New comment posted on: '.$urlToContent.
204
+                    "\n\n".
205 205
                     wordwrap($comment, 72);
206 206
 
207 207
                 $send = array();
@@ -392,9 +392,9 @@  discard block
 block discarded – undo
392 392
 
393 393
             // @todo let the email contains the faq article both as plain text and as HTML
394 394
             $mail->message = html_entity_decode(
395
-                $PMF_LANG['msgMailCheck']) . "\n\n" .
396
-                $faqConfig->get('main.titleFAQ') . ": " .
397
-                $faqConfig->get('main.referenceURL') . '/admin/';
395
+                $PMF_LANG['msgMailCheck'])."\n\n".
396
+                $faqConfig->get('main.titleFAQ').": ".
397
+                $faqConfig->get('main.referenceURL').'/admin/';
398 398
             $result = $mail->send();
399 399
             unset($mail);
400 400
 
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
                     $searchResult[] = $faqSearch->search($word);
458 458
                 }
459 459
                 foreach ($searchResult as $resultSet) {
460
-                    foreach($resultSet as $result) {
460
+                    foreach ($resultSet as $result) {
461 461
                         $mergedResult[] = $result;
462 462
                     }
463 463
                 }
@@ -494,11 +494,11 @@  discard block
 block discarded – undo
494 494
 
495 495
                     $faq->addQuestion($questionData);
496 496
 
497
-                    $questionMail = "User: " . $questionData['username'] .
498
-                                ", mailto:".$questionData['email'] . "\n" . $PMF_LANG["msgCategory"] .
499
-                                ": " . $categories[$questionData['category_id']]["name"] . "\n\n" .
500
-                                wordwrap($question, 72) . "\n\n" .
501
-                                $faqConfig->get('main.referenceURL') . '/admin/';
497
+                    $questionMail = "User: ".$questionData['username'].
498
+                                ", mailto:".$questionData['email']."\n".$PMF_LANG["msgCategory"].
499
+                                ": ".$categories[$questionData['category_id']]["name"]."\n\n".
500
+                                wordwrap($question, 72)."\n\n".
501
+                                $faqConfig->get('main.referenceURL').'/admin/';
502 502
 
503 503
                     $userId = $cat->getCategoryUser($questionData['category_id']);
504 504
                     $oUser  = new PMF_User($faqConfig);
@@ -526,11 +526,11 @@  discard block
 block discarded – undo
526 526
 
527 527
                 $faq->addQuestion($questionData);
528 528
 
529
-                $questionMail = "User: " . $questionData['username'] .
530
-                                ", mailto:".$questionData['email'] . "\n" . $PMF_LANG["msgCategory"] .
531
-                                ": " . $categories[$questionData['category_id']]["name"] . "\n\n" .
532
-                                wordwrap($question, 72) . "\n\n" .
533
-                                $faqConfig->get('main.referenceURL') . '/admin/';
529
+                $questionMail = "User: ".$questionData['username'].
530
+                                ", mailto:".$questionData['email']."\n".$PMF_LANG["msgCategory"].
531
+                                ": ".$categories[$questionData['category_id']]["name"]."\n\n".
532
+                                wordwrap($question, 72)."\n\n".
533
+                                $faqConfig->get('main.referenceURL').'/admin/';
534 534
 
535 535
                 $userId = $cat->getCategoryUser($questionData['category_id']);
536 536
                 $oUser  = new PMF_User($faqConfig);
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
                 $user->setStatus('blocked');
586 586
 
587 587
                 $text = sprintf(
588
-                    "New user has been registrated:\n\nName: %s\nLogin name: %s\n\n" .
588
+                    "New user has been registrated:\n\nName: %s\nLogin name: %s\n\n".
589 589
                     "To activate this user do please use the administration interface at %s.",
590 590
                     $realname,
591 591
                     $loginname,
@@ -601,8 +601,8 @@  discard block
 block discarded – undo
601 601
                 unset($mail);
602 602
 
603 603
                 $message = array(
604
-                    'success' => trim($PMF_LANG['successMessage']) .
605
-                                 ' ' .
604
+                    'success' => trim($PMF_LANG['successMessage']).
605
+                                 ' '.
606 606
                                  trim($PMF_LANG['msgRegThankYou'])
607 607
                 );
608 608
             }
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
 
631 631
             if (!$faq->getNumberOfVotings($recordId)) {
632 632
                 $faq->addVoting($votingData);
633
-            }  else {
633
+            } else {
634 634
                 $faq->updateVoting($votingData);
635 635
             }
636 636
             $faqRating = new PMF_Rating($faqConfig);
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
             $mail = new PMF_Mail($faqConfig);
677 677
             $mail->setReplyTo($email, $name);
678 678
             $mail->addTo($faqConfig->get('main.administrationMail'));
679
-            $mail->subject = 'Feedback: %sitename%';;
679
+            $mail->subject = 'Feedback: %sitename%'; ;
680 680
             $mail->message = $question;
681 681
             $result = $mail->send();
682 682
             unset($mail);
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
             is_array($mailto) && !empty($mailto['mailto'][0]) &&
708 708
                 $stopwords->checkBannedWord(PMF_String::htmlspecialchars($attached))) {
709 709
 
710
-            foreach($mailto['mailto'] as $recipient) {
710
+            foreach ($mailto['mailto'] as $recipient) {
711 711
                 $recipient = trim(strip_tags($recipient));
712 712
                 if (!empty($recipient)) {
713 713
                     $mail = new PMF_Mail($faqConfig);
@@ -797,16 +797,16 @@  discard block
 block discarded – undo
797 797
 
798 798
             if ($loginExist && ($email == $user->getUserData('email'))) {
799 799
                 $consonants = array(
800
-                    'b','c','d','f','g','h','j','k','l','m','n','p','r','s','t','v','w','x','y','z'
800
+                    'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z'
801 801
                 );
802 802
                 $vowels = array(
803
-                    'a','e','i','o','u'
803
+                    'a', 'e', 'i', 'o', 'u'
804 804
                 );
805 805
                 $newPassword = '';
806 806
                 srand((double)microtime()*1000000);
807 807
                 for ($i = 1; $i <= 4; $i++) {
808
-                    $newPassword .= $consonants[rand(0,19)];
809
-                    $newPassword .= $vowels[rand(0,4)];
808
+                    $newPassword .= $consonants[rand(0, 19)];
809
+                    $newPassword .= $vowels[rand(0, 4)];
810 810
                 }
811 811
                 $user->changePassword($newPassword);
812 812
                 $text = $PMF_LANG['lostpwd_text_1']."\nUsername: ".$username."\nNew Password: ".$newPassword."\n\n".$PMF_LANG["lostpwd_text_2"];
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -630,7 +630,7 @@
 block discarded – undo
630 630
 
631 631
             if (!$faq->getNumberOfVotings($recordId)) {
632 632
                 $faq->addVoting($votingData);
633
-            }  else {
633
+            } else {
634 634
                 $faq->updateVoting($votingData);
635 635
             }
636 636
             $faqRating = new PMF_Rating($faqConfig);
Please login to merge, or discard this patch.
phpmyfaq/config/constants_ldap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  */
20 20
 
21 21
 // Datamapping - in this example for an ADS
22
-$PMF_LDAP['ldap_mapping'] = array (
22
+$PMF_LDAP['ldap_mapping'] = array(
23 23
     'name'     => 'cn',
24 24
     'username' => 'samAccountName',
25 25
     'mail'     => 'mail'
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 // LDAP-options to set
34 34
 // refer to the documentation of ldap_set_option() for information on available options
35
-$PMF_LDAP["ldap_options"] = array (
35
+$PMF_LDAP["ldap_options"] = array(
36 36
     LDAP_OPT_PROTOCOL_VERSION => 3,
37 37
     LDAP_OPT_REFERRALS        => 0
38 38
 );
Please login to merge, or discard this patch.