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 — master ( d77780...f0978d )
by Thorsten
11:21
created
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
 
25 25
 use Symfony\Component\HttpFoundation\RedirectResponse;
26 26
 use Symfony\Component\HttpFoundation\Response;
27
-
28 27
 use PMF\Helper\ResponseWrapper;
29 28
 
30 29
 //
Please login to merge, or discard this patch.
Spacing   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
 if (isset($LANGCODE) && PMF_Language::isASupportedLanguage($LANGCODE) && is_null($showCaptcha)) {
51 51
     // Overwrite English strings with the ones we have in the current language,
52 52
     // but don't include UTF-8 encoded files, these will break the captcha images
53
-    if (! file_exists('lang/language_' . $LANGCODE . '.php')) {
53
+    if (!file_exists('lang/language_'.$LANGCODE.'.php')) {
54 54
         $LANGCODE = 'en';
55 55
     }
56
-    require_once 'lang/language_' . $LANGCODE . '.php';
56
+    require_once 'lang/language_'.$LANGCODE.'.php';
57 57
 } else {
58 58
     $LANGCODE = 'en';
59 59
 }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                 $action = $faqaction; // SSO logins don't have $faqaction
120 120
             }
121 121
         } else {
122
-            $error           = $PMF_LANG['ad_auth_fail'] . ' (' . $faqusername . ')';
122
+            $error           = $PMF_LANG['ad_auth_fail'].' ('.$faqusername.')';
123 123
             $loginVisibility = '';
124 124
             $action          = 'password' === $action ? 'password' : 'login';
125 125
         }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     // Try to authenticate with cookie information
135 135
     $user = PMF_User_CurrentUser::getFromCookie($faqConfig);
136 136
     // authenticate with session information
137
-    if (! $user instanceof PMF_User_CurrentUser) {
137
+    if (!$user instanceof PMF_User_CurrentUser) {
138 138
         $user = PMF_User_CurrentUser::getFromSession($faqConfig);
139 139
     }
140 140
     if ($user instanceof PMF_User_CurrentUser) {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     $action    = 'main';
155 155
     $ssoLogout = $faqConfig->get('security.ssoLogoutRedirect');
156 156
     if ($faqConfig->get('security.ssoSupport') && !empty ($ssoLogout)) {
157
-        $location =  $ssoLogout;
157
+        $location = $ssoLogout;
158 158
     } else {
159 159
         $location = $faqConfig->get('main.referenceURL');
160 160
     }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 // Get current user and group id - default: -1
167 167
 //
168 168
 if (!is_null($user) && $user instanceof PMF_User_CurrentUser) {
169
-    $current_user   = $user->getUserId();
169
+    $current_user = $user->getUserId();
170 170
     if ($user->perm instanceof PMF_Perm_Medium) {
171 171
         $current_groups = $user->perm->getUserGroups($current_user);
172 172
     } else {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 // Use mbstring extension if available and when possible
185 185
 //
186 186
 $validMbStrings = array('ja', 'en', 'uni');
187
-$mbLanguage       = ($PMF_LANG['metaLanguage'] != 'ja') ? 'uni' : $PMF_LANG['metaLanguage'];
187
+$mbLanguage = ($PMF_LANG['metaLanguage'] != 'ja') ? 'uni' : $PMF_LANG['metaLanguage'];
188 188
 if (function_exists('mb_language') && in_array($mbLanguage, $validMbStrings)) {
189 189
     mb_language($mbLanguage);
190 190
     mb_internal_encoding('utf-8');
@@ -250,9 +250,9 @@  discard block
 block discarded – undo
250 250
 // Found a article language?
251 251
 //
252 252
 $lang = PMF_Filter::filterInput(INPUT_POST, 'artlang', FILTER_SANITIZE_STRING);
253
-if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang) ) {
253
+if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang)) {
254 254
     $lang = PMF_Filter::filterInput(INPUT_GET, 'artlang', FILTER_SANITIZE_STRING);
255
-    if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang) ) {
255
+    if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang)) {
256 256
         $lang = $LANGCODE;
257 257
     }
258 258
 }
@@ -280,12 +280,12 @@  discard block
 block discarded – undo
280 280
 //
281 281
 $id = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT);
282 282
 if (!is_null($id)) {
283
-    $title           = ' - ' . $faq->getRecordTitle($id);
284
-    $keywords        = ',' . $faq->getRecordKeywords($id);
283
+    $title           = ' - '.$faq->getRecordTitle($id);
284
+    $keywords        = ','.$faq->getRecordKeywords($id);
285 285
     $metaDescription = $faq->getRecordPreview($id);
286 286
 } else {
287 287
     $id              = '';
288
-    $title           = ' -  powered by phpMyFAQ ' . $faqConfig->get('main.currentVersion');
288
+    $title           = ' -  powered by phpMyFAQ '.$faqConfig->get('main.currentVersion');
289 289
     $keywords        = '';
290 290
     $metaDescription = $faqConfig->get('main.metaDescription');
291 291
 }
@@ -294,15 +294,15 @@  discard block
 block discarded – undo
294 294
 // found a solution ID?
295 295
 //
296 296
 $solutionId = PMF_Filter::filterInput(INPUT_GET, 'solution_id', FILTER_VALIDATE_INT);
297
-if (! is_null($solutionId)) {
298
-    $title    = ' -  powered by phpMyFAQ ' . $faqConfig->get('main.currentVersion');
297
+if (!is_null($solutionId)) {
298
+    $title    = ' -  powered by phpMyFAQ '.$faqConfig->get('main.currentVersion');
299 299
     $keywords = '';
300 300
     $faqData  = $faq->getIdFromSolutionId($solutionId);
301 301
     if (is_array($faqData)) {
302 302
         $id              = $faqData['id'];
303 303
         $lang            = $faqData['lang'];
304
-        $title           = ' - ' . $faq->getRecordTitle($id);
305
-        $keywords        = ',' . $faq->getRecordKeywords($id);
304
+        $title           = ' - '.$faq->getRecordTitle($id);
305
+        $keywords        = ','.$faq->getRecordKeywords($id);
306 306
         $metaDescription = str_replace('"', '', PMF_Utils::makeShorterText(strip_tags($faqData['content']), 12));
307 307
     }
308 308
 }
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 //
313 313
 $tag_id = PMF_Filter::filterInput(INPUT_GET, 'tagging_id', FILTER_VALIDATE_INT);
314 314
 if (!is_null($tag_id)) {
315
-    $title    = ' - ' . $oTag->getTagNameById($tag_id);
315
+    $title    = ' - '.$oTag->getTagNameById($tag_id);
316 316
     $keywords = '';
317 317
 }
318 318
 
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 //
322 322
 $letter = PMF_Filter::filterInput(INPUT_GET, 'letter', FILTER_SANITIZE_STRIPPED);
323 323
 if (!is_null($letter) && (1 == PMF_String::strlen($letter))) {
324
-    $title    = ' - ' . $letter . '...';
324
+    $title    = ' - '.$letter.'...';
325 325
     $keywords = $letter;
326 326
 }
327 327
 
@@ -356,9 +356,9 @@  discard block
 block discarded – undo
356 356
 // Select the template for the requested page
357 357
 //
358 358
 if ($action != 'main') {
359
-    $includeTemplate = $action . '.tpl';
360
-    $includePhp      = $action . '.php';
361
-    $writeLangAdress = '?sid=' . $sid;
359
+    $includeTemplate = $action.'.tpl';
360
+    $includePhp      = $action.'.php';
361
+    $writeLangAdress = '?sid='.$sid;
362 362
 } else {
363 363
     if (isset($solutionId) && is_numeric($solutionId)) {
364 364
         // show the record with the solution ID
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
         $includeTemplate = 'main.tpl';
369 369
         $includePhp      = 'main.php';
370 370
     }
371
-    $writeLangAdress = '?sid=' . $sid;
371
+    $writeLangAdress = '?sid='.$sid;
372 372
 }
373 373
 
374 374
 //
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
     if ($auth) {
392 392
         $indexSet = 'index.tpl';
393 393
     } else {
394
-        switch($action) {
394
+        switch ($action) {
395 395
             case 'register':
396 396
             case 'thankyou':
397 397
                 $indexSet = 'indexNewUser.tpl';
@@ -432,9 +432,9 @@  discard block
 block discarded – undo
432 432
 if ($faqConfig->get('main.enableUserTracking')) {
433 433
     $users       = $faqsession->getUsersOnline();
434 434
     $totUsers    = $users[0] + $users[1];
435
-    $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers) . ' | ' .
436
-                   $plr->getMsg('plmsgGuestOnline', $users[0]) .
437
-                   $plr->getMsg('plmsgRegisteredOnline',$users[1]);
435
+    $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers).' | '.
436
+                   $plr->getMsg('plmsgGuestOnline', $users[0]).
437
+                   $plr->getMsg('plmsgRegisteredOnline', $users[1]);
438 438
 } else {
439 439
     $usersOnline = '';
440 440
 }
@@ -454,18 +454,18 @@  discard block
 block discarded – undo
454 454
 $currentPageUrl = $faqLink->getCurrentUrl();
455 455
 
456 456
 if (is_null($error)) {
457
-    $loginMessage = '<p>' . $PMF_LANG['ad_auth_insert'] . '</p>';
457
+    $loginMessage = '<p>'.$PMF_LANG['ad_auth_insert'].'</p>';
458 458
 } else {
459
-    $loginMessage = '<p class="error">' . $error . '</p>';
459
+    $loginMessage = '<p class="error">'.$error.'</p>';
460 460
 }
461 461
 
462 462
 $tplMainPage = array(
463 463
     'msgLoginUser'         => $PMF_LANG['msgLoginUser'],
464
-    'title'                => $faqConfig->get('main.titleFAQ') . $title,
464
+    'title'                => $faqConfig->get('main.titleFAQ').$title,
465 465
     'baseHref'             => $faqSystem->getSystemUri($faqConfig),
466 466
     'version'              => $faqConfig->get('main.currentVersion'),
467 467
     'header'               => str_replace('"', '', $faqConfig->get('main.titleFAQ')),
468
-    'metaTitle'            => str_replace('"', '', $faqConfig->get('main.titleFAQ') . $title),
468
+    'metaTitle'            => str_replace('"', '', $faqConfig->get('main.titleFAQ').$title),
469 469
     'metaDescription'      => $metaDescription,
470 470
     'metaKeywords'         => $keywords,
471 471
     'metaPublisher'        => $faqConfig->get('main.metaPublisher'),
@@ -483,13 +483,13 @@  discard block
 block discarded – undo
483 483
     'writeLangAdress'      => $writeLangAdress,
484 484
     'switchLanguages'      => PMF_Language::selectLanguages($LANGCODE, true),
485 485
     'userOnline'           => $usersOnline,
486
-    'copyright'            => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> ' .
486
+    'copyright'            => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> '.
487 487
                               $faqConfig->get('main.currentVersion'),
488
-    'registerUser'         => '<a href="?action=register">' . $PMF_LANG['msgRegistration'] . '</a>',
489
-    'sendPassword'         => '<a href="?action=password">' . $PMF_LANG['lostPassword'] . '</a>',
488
+    'registerUser'         => '<a href="?action=register">'.$PMF_LANG['msgRegistration'].'</a>',
489
+    'sendPassword'         => '<a href="?action=password">'.$PMF_LANG['lostPassword'].'</a>',
490 490
     'loginHeader'          => $PMF_LANG['msgLoginUser'],
491 491
     'loginMessage'         => $loginMessage,
492
-    'writeLoginPath'       => $faqSystem->getSystemUri($faqConfig) . '?' . PMF_Filter::getFilteredQueryString(),
492
+    'writeLoginPath'       => $faqSystem->getSystemUri($faqConfig).'?'.PMF_Filter::getFilteredQueryString(),
493 493
     'faqloginaction'       => $action,
494 494
     'login'                => $PMF_LANG['ad_auth_ok'],
495 495
     'username'             => $PMF_LANG['ad_auth_user'],
@@ -557,18 +557,18 @@  discard block
 block discarded – undo
557 557
 
558 558
 if ($faqConfig->get('main.enableRewriteRules')) {
559 559
     $tplNavigation = array(
560
-        "msgSearch"           => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'search.html">'.$PMF_LANG["msgAdvancedSearch"].'</a>',
561
-        'msgAddContent'       => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'addcontent.html">'.$PMF_LANG["msgAddContent"].'</a>',
562
-        "msgQuestion"         => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'ask.html">'.$PMF_LANG["msgQuestion"].'</a>',
563
-        "msgOpenQuestions"    => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'open.html">'.$PMF_LANG["msgOpenQuestions"].'</a>',
564
-        'msgHelp'             => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'help.html">'.$PMF_LANG["msgHelp"].'</a>',
565
-        "msgContact"          => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'contact.html">'.$PMF_LANG["msgContact"].'</a>',
566
-        'msgGlossary'         => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'glossary.html">' . $PMF_LANG['ad_menu_glossary'] . '</a>',
567
-        "backToHome"          => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'index.html">'.$PMF_LANG["msgHome"].'</a>',
568
-        "allCategories"       => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'showcat.html">'.$PMF_LANG["msgShowAllCategories"].'</a>',
569
-        'showInstantResponse' => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'instantresponse.html">'.$PMF_LANG['msgInstantResponse'].'</a>',
570
-        'showSitemap'         => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'sitemap/A/'.$LANGCODE.'.html">'.$PMF_LANG['msgSitemap'].'</a>',
571
-        'opensearch'          => $faqSystem->getSystemUri($faqConfig) . 'opensearch.html');
560
+        "msgSearch"           => '<a href="'.$faqSystem->getSystemUri($faqConfig).'search.html">'.$PMF_LANG["msgAdvancedSearch"].'</a>',
561
+        'msgAddContent'       => '<a href="'.$faqSystem->getSystemUri($faqConfig).'addcontent.html">'.$PMF_LANG["msgAddContent"].'</a>',
562
+        "msgQuestion"         => '<a href="'.$faqSystem->getSystemUri($faqConfig).'ask.html">'.$PMF_LANG["msgQuestion"].'</a>',
563
+        "msgOpenQuestions"    => '<a href="'.$faqSystem->getSystemUri($faqConfig).'open.html">'.$PMF_LANG["msgOpenQuestions"].'</a>',
564
+        'msgHelp'             => '<a href="'.$faqSystem->getSystemUri($faqConfig).'help.html">'.$PMF_LANG["msgHelp"].'</a>',
565
+        "msgContact"          => '<a href="'.$faqSystem->getSystemUri($faqConfig).'contact.html">'.$PMF_LANG["msgContact"].'</a>',
566
+        'msgGlossary'         => '<a href="'.$faqSystem->getSystemUri($faqConfig).'glossary.html">'.$PMF_LANG['ad_menu_glossary'].'</a>',
567
+        "backToHome"          => '<a href="'.$faqSystem->getSystemUri($faqConfig).'index.html">'.$PMF_LANG["msgHome"].'</a>',
568
+        "allCategories"       => '<a href="'.$faqSystem->getSystemUri($faqConfig).'showcat.html">'.$PMF_LANG["msgShowAllCategories"].'</a>',
569
+        'showInstantResponse' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'instantresponse.html">'.$PMF_LANG['msgInstantResponse'].'</a>',
570
+        'showSitemap'         => '<a href="'.$faqSystem->getSystemUri($faqConfig).'sitemap/A/'.$LANGCODE.'.html">'.$PMF_LANG['msgSitemap'].'</a>',
571
+        'opensearch'          => $faqSystem->getSystemUri($faqConfig).'opensearch.html');
572 572
 } else {
573 573
     $tplNavigation = array(
574 574
         "msgSearch"           => '<a href="index.php?'.$sids.'action=search">'.$PMF_LANG["msgAdvancedSearch"].'</a>',
@@ -577,12 +577,12 @@  discard block
 block discarded – undo
577 577
         "msgOpenQuestions"    => '<a href="index.php?'.$sids.'action=open">'.$PMF_LANG["msgOpenQuestions"].'</a>',
578 578
         "msgHelp"             => '<a href="index.php?'.$sids.'action=help">'.$PMF_LANG["msgHelp"].'</a>',
579 579
         "msgContact"          => '<a href="index.php?'.$sids.'action=contact">'.$PMF_LANG["msgContact"].'</a>',
580
-        'msgGlossary'         => '<a href="index.php?'.$sids.'action=glossary">' . $PMF_LANG['ad_menu_glossary'] . '</a>',
580
+        'msgGlossary'         => '<a href="index.php?'.$sids.'action=glossary">'.$PMF_LANG['ad_menu_glossary'].'</a>',
581 581
         "allCategories"       => '<a href="index.php?'.$sids.'action=show">'.$PMF_LANG["msgShowAllCategories"].'</a>',
582 582
         "backToHome"          => '<a href="index.php?'.$sids.'">'.$PMF_LANG["msgHome"].'</a>',
583 583
         'showInstantResponse' => '<a href="index.php?'.$sids.'action=instantresponse">'.$PMF_LANG['msgInstantResponse'].'</a>',
584 584
         'showSitemap'         => '<a href="index.php?'.$sids.'action=sitemap&amp;lang='.$LANGCODE.'">'.$PMF_LANG['msgSitemap'].'</a>',
585
-        'opensearch'          => $faqSystem->getSystemUri($faqConfig) . 'opensearch.php');
585
+        'opensearch'          => $faqSystem->getSystemUri($faqConfig).'opensearch.php');
586 586
 }
587 587
 
588 588
 $tplNavigation['faqHome']             = $faqConfig->get('main.referenceURL');
@@ -598,13 +598,13 @@  discard block
 block discarded – undo
598 598
     if (count($user->perm->getAllUserRights($user->getUserId()))) {
599 599
         $adminSection = sprintf(
600 600
             '<a href="%s">%s</a>',
601
-            $faqSystem->getSystemUri($faqConfig) . 'admin/index.php',
601
+            $faqSystem->getSystemUri($faqConfig).'admin/index.php',
602 602
             $PMF_LANG['adminSection']
603 603
         );
604 604
     } else {
605 605
         $adminSection = sprintf(
606 606
             '<a href="%s">%s</a>',
607
-            $faqSystem->getSystemUri($faqConfig) . 'index.php?action=ucp',
607
+            $faqSystem->getSystemUri($faqConfig).'index.php?action=ucp',
608 608
             $PMF_LANG['headerUserControlPanel']
609 609
         );
610 610
     }
@@ -614,10 +614,10 @@  discard block
 block discarded – undo
614 614
         'userloggedIn',
615 615
         array(
616 616
             'msgUserControl'         => $adminSection,
617
-            'msgFullName'            => $PMF_LANG['ad_user_loggedin'] . $user->getLogin(),
617
+            'msgFullName'            => $PMF_LANG['ad_user_loggedin'].$user->getLogin(),
618 618
             'msgLoginName'           => $user->getUserData('display_name'),
619
-            'msgUserControlDropDown' => '<a href="?action=ucp">' . $PMF_LANG['headerUserControlPanel'] . '</a>',
620
-            'msgLogoutUser'          => '<a href="?action=logout">' . $PMF_LANG['ad_menu_logout'] . '</a>',
619
+            'msgUserControlDropDown' => '<a href="?action=ucp">'.$PMF_LANG['headerUserControlPanel'].'</a>',
620
+            'msgLogoutUser'          => '<a href="?action=logout">'.$PMF_LANG['ad_menu_logout'].'</a>',
621 621
             'activeUserControl'      => ('ucp' == $action) ? 'active' : ''
622 622
         )
623 623
     );
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
         'index',
634 634
         'notLoggedIn',
635 635
         array(
636
-            'msgRegisterUser' => '<a href="?action=register">' . $PMF_LANG['msgRegisterUser'] . '</a>',
636
+            'msgRegisterUser' => '<a href="?action=register">'.$PMF_LANG['msgRegisterUser'].'</a>',
637 637
             'msgLoginUser'    => sprintf($msgLoginUser, $PMF_LANG['msgLoginUser']),
638 638
             'activeRegister'  => ('register' == $action) ? 'active' : '',
639 639
             'activeLogin'     => ('login' == $action) ? 'active' : ''
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 2 patches
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.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,6 +54,6 @@
 block discarded – undo
54 54
 header('Content-type: text/xml');
55 55
 print $xml->outputMemory(true);
56 56
 $response = Response::create()
57
-	->setContent($opensearchXml->outputMemory(true));
57
+    ->setContent($opensearchXml->outputMemory(true));
58 58
 $response->headers->set('Content-Type', 'text/xml');
59 59
 $response->send();
Please login to merge, or discard this patch.
phpmyfaq/ajaxservice.php 4 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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
  */
19 19
 
20 20
 use Symfony\Component\HttpFoundation\JsonResponse;
21
-
22 21
 use PMF\Helper\ResponseWrapper;
23 22
 
24 23
 define('IS_VALID_PHPMYFAQ', null);
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
 if (PMF_Language::isASupportedLanguage($ajaxlang)) {
42 42
     $languageCode = trim($ajaxlang);
43
-    require_once 'lang/language_' . $languageCode . '.php';
43
+    require_once 'lang/language_'.$languageCode.'.php';
44 44
 } else {
45 45
     $languageCode = 'en';
46 46
     require_once 'lang/language_en.php';
@@ -182,9 +182,9 @@  discard block
 block discarded – undo
182 182
                 }
183 183
                 
184 184
                 $commentMail =
185
-                    'User: ' . $commentData['username'] . ', mailto:'. $commentData['usermail'] . "\n".
186
-                    'New comment posted on: ' . $urlToContent .
187
-                    "\n\n" .
185
+                    'User: '.$commentData['username'].', mailto:'.$commentData['usermail']."\n".
186
+                    'New comment posted on: '.$urlToContent.
187
+                    "\n\n".
188 188
                     wordwrap($comment, 72);
189 189
 
190 190
                 $send = [];
@@ -394,9 +394,9 @@  discard block
 block discarded – undo
394 394
 
395 395
             // @todo let the email contains the faq article both as plain text and as HTML
396 396
             $mail->message = html_entity_decode(
397
-                $PMF_LANG['msgMailCheck']) . "\n\n" .
398
-                $faqConfig->get('main.titleFAQ') . ": " .
399
-                $faqConfig->get('main.referenceURL') . '/admin/';
397
+                $PMF_LANG['msgMailCheck'])."\n\n".
398
+                $faqConfig->get('main.titleFAQ').": ".
399
+                $faqConfig->get('main.referenceURL').'/admin/';
400 400
             $result = $mail->send();
401 401
             unset($mail);
402 402
 
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
                     $searchResult[] = $faqSearch->search($word);
464 464
                 }
465 465
                 foreach ($searchResult as $resultSet) {
466
-                    foreach($resultSet as $result) {
466
+                    foreach ($resultSet as $result) {
467 467
                         $mergedResult[] = $result;
468 468
                     }
469 469
                 }
@@ -500,11 +500,11 @@  discard block
 block discarded – undo
500 500
 
501 501
                     $faq->addQuestion($questionData);
502 502
 
503
-                    $questionMail = "User: " . $questionData['username'] .
504
-                                ", mailto:".$questionData['email'] . "\n" . $PMF_LANG["msgCategory"] .
505
-                                ": " . $categories[$questionData['category_id']]["name"] . "\n\n" .
506
-                                wordwrap($question, 72) . "\n\n" .
507
-                                $faqConfig->get('main.referenceURL') . '/admin/';
503
+                    $questionMail = "User: ".$questionData['username'].
504
+                                ", mailto:".$questionData['email']."\n".$PMF_LANG["msgCategory"].
505
+                                ": ".$categories[$questionData['category_id']]["name"]."\n\n".
506
+                                wordwrap($question, 72)."\n\n".
507
+                                $faqConfig->get('main.referenceURL').'/admin/';
508 508
 
509 509
                     $userId = $cat->getCategoryUser($questionData['category_id']);
510 510
                     $oUser  = new PMF_User($faqConfig);
@@ -532,11 +532,11 @@  discard block
 block discarded – undo
532 532
 
533 533
                 $faq->addQuestion($questionData);
534 534
 
535
-                $questionMail = "User: " . $questionData['username'] .
536
-                                ", mailto:".$questionData['email'] . "\n" . $PMF_LANG["msgCategory"] .
537
-                                ": " . $categories[$questionData['category_id']]["name"] . "\n\n" .
538
-                                wordwrap($question, 72) . "\n\n" .
539
-                                $faqConfig->get('main.referenceURL') . '/admin/';
535
+                $questionMail = "User: ".$questionData['username'].
536
+                                ", mailto:".$questionData['email']."\n".$PMF_LANG["msgCategory"].
537
+                                ": ".$categories[$questionData['category_id']]["name"]."\n\n".
538
+                                wordwrap($question, 72)."\n\n".
539
+                                $faqConfig->get('main.referenceURL').'/admin/';
540 540
 
541 541
                 $userId = $cat->getCategoryUser($questionData['category_id']);
542 542
                 $oUser  = new PMF_User($faqConfig);
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
                 $user->setStatus('blocked');
592 592
 
593 593
                 $text = sprintf(
594
-                    "New user has been registrated:\n\nName: %s\nLogin name: %s\n\n" .
594
+                    "New user has been registrated:\n\nName: %s\nLogin name: %s\n\n".
595 595
                     "To activate this user do please use the administration interface at %s.",
596 596
                     $realname,
597 597
                     $loginname,
@@ -607,8 +607,8 @@  discard block
 block discarded – undo
607 607
                 unset($mail);
608 608
 
609 609
                 $message = array(
610
-                    'success' => trim($PMF_LANG['successMessage']) .
611
-                                 ' ' .
610
+                    'success' => trim($PMF_LANG['successMessage']).
611
+                                 ' '.
612 612
                                  trim($PMF_LANG['msgRegThankYou'])
613 613
                 );
614 614
             }
@@ -641,10 +641,10 @@  discard block
 block discarded – undo
641 641
 
642 642
             if (!$faq->getNumberOfVotings($recordId)) {
643 643
                 $faq->addVoting($votingData);
644
-            }  else {
644
+            } else {
645 645
                 $faq->updateVoting($votingData);
646 646
             }
647
-            $faqRating   = new PMF_Rating($faqConfig);
647
+            $faqRating = new PMF_Rating($faqConfig);
648 648
             $message = array(
649 649
                 'success' => $PMF_LANG['msgVoteThanks'],
650 650
                 'rating'  => $faqRating->getVotingResult($recordId)
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
             $mail = new PMF_Mail($faqConfig);
696 696
             $mail->setReplyTo($email, $name);
697 697
             $mail->addTo($faqConfig->get('main.administrationMail'));
698
-            $mail->subject = 'Feedback: %sitename%';;
698
+            $mail->subject = 'Feedback: %sitename%'; ;
699 699
             $mail->message = $question;
700 700
             $result = $mail->send();
701 701
             unset($mail);
@@ -726,7 +726,7 @@  discard block
 block discarded – undo
726 726
             is_array($mailto) && !empty($mailto['mailto'][0]) &&
727 727
                 $stopwords->checkBannedWord(PMF_String::htmlspecialchars($attached))) {
728 728
 
729
-            foreach($mailto['mailto'] as $recipient) {
729
+            foreach ($mailto['mailto'] as $recipient) {
730 730
                 $recipient = trim(strip_tags($recipient));
731 731
                 if (!empty($recipient)) {
732 732
                     $mail = new PMF_Mail($faqConfig);
@@ -816,16 +816,16 @@  discard block
 block discarded – undo
816 816
 
817 817
             if ($loginExist && ($email == $user->getUserData('email'))) {
818 818
                 $consonants = array(
819
-                    'b','c','d','f','g','h','j','k','l','m','n','p','r','s','t','v','w','x','y','z'
819
+                    'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z'
820 820
                 );
821 821
                 $vowels = array(
822
-                    'a','e','i','o','u'
822
+                    'a', 'e', 'i', 'o', 'u'
823 823
                 );
824 824
                 $newPassword = '';
825 825
                 srand((double)microtime()*1000000);
826 826
                 for ($i = 1; $i <= 4; $i++) {
827
-                    $newPassword .= $consonants[rand(0,19)];
828
-                    $newPassword .= $vowels[rand(0,4)];
827
+                    $newPassword .= $consonants[rand(0, 19)];
828
+                    $newPassword .= $vowels[rand(0, 4)];
829 829
                 }
830 830
                 $user->changePassword($newPassword);
831 831
                 $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
@@ -641,7 +641,7 @@
 block discarded – undo
641 641
 
642 642
             if (!$faq->getNumberOfVotings($recordId)) {
643 643
                 $faq->addVoting($votingData);
644
-            }  else {
644
+            } else {
645 645
                 $faq->updateVoting($votingData);
646 646
             }
647 647
             $faqRating   = new PMF_Rating($faqConfig);
Please login to merge, or discard this patch.
phpmyfaq/sitemap.xml.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $changeFreq = PMF_SITEMAP_GOOGLE_CHANGEFREQ_DAILY;
71 71
     }
72 72
     $node =
73
-         '<url>'
73
+            '<url>'
74 74
         .'<loc>'.PMF_String::htmlspecialchars($location).'</loc>'
75 75
         .'<lastmod>'.$lastmod.'</lastmod>'
76 76
         .'<changefreq>'.$changeFreq.'</changefreq>'
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
 // Sitemap header
103 103
 $sitemap =
104
-     '<?xml version="1.0" encoding="UTF-8"?>'
104
+        '<?xml version="1.0" encoding="UTF-8"?>'
105 105
     .'<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"'
106 106
     .' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
107 107
     .' xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84'
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 $visitMin  = 0;
99 99
 if (count($items) > 0) {
100 100
     $visitsMax = $items[0]['visits'];
101
-    $visitMin  = $items[count($items)-1]['visits'];
101
+    $visitMin  = $items[count($items) - 1]['visits'];
102 102
 }
103 103
 
104 104
 // Sitemap header
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 foreach ($items as $item) {
121 121
     $priority = PMF_SITEMAP_GOOGLE_PRIORITY_DEFAULT;
122 122
     if (($visitsMax - $visitMin) > 0) {
123
-        $priority = sprintf('%.1f', PMF_SITEMAP_GOOGLE_PRIORITY_DEFAULT * (1 + (($item['visits'] - $visitMin)/($visitsMax - $visitMin))));
123
+        $priority = sprintf('%.1f', PMF_SITEMAP_GOOGLE_PRIORITY_DEFAULT*(1 + (($item['visits'] - $visitMin)/($visitsMax - $visitMin))));
124 124
     }
125 125
     // a. We use plain PMF urls w/o any SEO schema
126 126
     $link = str_replace($_SERVER['SCRIPT_NAME'], '/index.php', $item['url']);
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     if (function_exists('gzencode')) {
152 152
         $sitemapGz = gzencode($sitemap);
153 153
         $response->headers->set('Content-Type', 'application/x-gzip');
154
-        $response->headers->set('Content-Disposition', 'attachment; filename="' . PMF_SITEMAP_GOOGLE_FILENAME_GZ . '"');
154
+        $response->headers->set('Content-Disposition', 'attachment; filename="'.PMF_SITEMAP_GOOGLE_FILENAME_GZ.'"');
155 155
         $response->headers->set('Content-Length', strlen($sitemapGz));
156 156
         $response->setContent($sitemapGz);
157 157
     } else {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     }
160 160
 } else {
161 161
     $response->headers->set('Content-Type', 'text/xml');
162
-    $response->headers->set('Content-Disposition', 'inline; filename="' . PMF_SITEMAP_GOOGLE_FILENAME . '"');
162
+    $response->headers->set('Content-Disposition', 'inline; filename="'.PMF_SITEMAP_GOOGLE_FILENAME.'"');
163 163
     $response->headers->set('Content-Length', PMF_String::strlen($sitemap));
164 164
     $response->setContent($sitemap);
165 165
 }
Please login to merge, or discard this patch.
phpmyfaq/admin/configuration.php 1 patch
Spacing   +3 added lines, -3 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
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             }
77 77
         }
78 78
 
79
-        if (! is_null($editData)) {
79
+        if (!is_null($editData)) {
80 80
             $faqConfig->update($newConfigValues);
81 81
         }
82 82
     }
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.tags_list.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
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
 $oTag              = new PMF_Tags($faqConfig);
35 35
 $autoCompleteValue = PMF_Filter::filterInput(INPUT_GET, 'q', FILTER_SANITIZE_STRIPPED);
36
-if (! is_null($autoCompleteValue)) {
36
+if (!is_null($autoCompleteValue)) {
37 37
     if (strpos($autoCompleteValue, ',')) {
38 38
         $arrayOfValues     = explode(',', $autoCompleteValue);
39 39
         $autoCompleteValue = end($arrayOfValues);
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.comment.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
 
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
         'filter'  => FILTER_VALIDATE_INT,
36 36
         'flags'   => FILTER_REQUIRE_ARRAY
37 37
     );
38
-    $checkNews  = array(
38
+    $checkNews = array(
39 39
         'filter'  => FILTER_VALIDATE_INT,
40 40
         'flags'   => FILTER_REQUIRE_ARRAY
41 41
     );
42
-    $ret     = false;
42
+    $ret = false;
43 43
     
44 44
     $faqComments  = PMF_Filter::filterInputArray(INPUT_POST, array('faq_comments' => $checkFaqs));
45 45
     $newsComments = PMF_Filter::filterInputArray(INPUT_POST, array('news_comments' => $checkNews));
Please login to merge, or discard this patch.
phpmyfaq/admin/stat.adminlog.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
 
22 22
 if (!defined('IS_VALID_PHPMYFAQ')) {
23 23
     $protocol = 'http';
24
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
25 25
         $protocol = 'https';
26 26
     }
27
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
28 28
     exit();
29 29
 }
30 30
 
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
     $date    = new PMF_Date($faqConfig);
36 36
     $perpage = 15;
37 37
     $pages   = PMF_Filter::filterInput(INPUT_GET, 'pages', FILTER_VALIDATE_INT);
38
-    $page    = PMF_Filter::filterInput(INPUT_GET, 'page' , FILTER_VALIDATE_INT, 1);
38
+    $page    = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 1);
39 39
     
40 40
     if (is_null($pages)) {
41
-        $pages = round(($logging->getNumberOfEntries() + ($perpage / 3)) / $perpage, 0);
41
+        $pages = round(($logging->getNumberOfEntries() + ($perpage/3))/$perpage, 0);
42 42
     }
43 43
     
44
-    $start = ($page - 1) * $perpage;
44
+    $start = ($page - 1)*$perpage;
45 45
     $ende  = $start + $perpage;
46 46
 
47 47
     $baseUrl = sprintf(
Please login to merge, or discard this patch.