@@ -66,7 +66,7 @@ discard block  | 
                                                    ||
| 66 | 66 |          foreach ($userList as $single_user) { | 
                                                        
| 67 | 67 | $user->getUserById($single_user, true);  | 
                                                        
| 68 | 68 |              $users[] = array('user_id' => $user->getUserId(), | 
                                                        
| 69 | - 'login' => $user->getLogin(), );  | 
                                                        |
| 69 | + 'login' => $user->getLogin(),);  | 
                                                        |
| 70 | 70 | }  | 
                                                        
| 71 | 71 | echo json_encode($users);  | 
                                                        
| 72 | 72 | }  | 
                                                        
@@ -78,7 +78,7 @@ discard block  | 
                                                    ||
| 78 | 78 |          foreach ($memberList as $single_member) { | 
                                                        
| 79 | 79 | $user->getUserById($single_member, true);  | 
                                                        
| 80 | 80 |              $members[] = array('user_id' => $user->getUserId(), | 
                                                        
| 81 | - 'login' => $user->getLogin(), );  | 
                                                        |
| 81 | + 'login' => $user->getLogin(),);  | 
                                                        |
| 82 | 82 | }  | 
                                                        
| 83 | 83 | echo json_encode($members);  | 
                                                        
| 84 | 84 | }  | 
                                                        
@@ -409,7 +409,7 @@  | 
                                                    ||
| 409 | 409 | }  | 
                                                        
| 410 | 410 | /**  | 
                                                        
| 411 | 411 | * Creates a seed with microseconds.  | 
                                                        
| 412 | - * @return integer|null  | 
                                                        |
| 412 | + * @return double  | 
                                                        |
| 413 | 413 | */  | 
                                                        
| 414 | 414 | private static function makeSeed()  | 
                                                        
| 415 | 415 |      { | 
                                                        
@@ -496,7 +496,7 @@  | 
                                                    ||
| 496 | 496 | </label>  | 
                                                        
| 497 | 497 | <select name="restricted_groups[]" size="3" class="form-control" multiple>  | 
                                                        
| 498 | 498 | <?php  | 
                                                        
| 499 | -                                if ( $faqConfig->get('main.enableCategoryRestrictions')) { | 
                                                        |
| 499 | +                                if ($faqConfig->get('main.enableCategoryRestrictions')) { | 
                                                        |
| 500 | 500 | echo $user->perm->getAllGroupsOptions($groupPermission, $currentUserId);  | 
                                                        
| 501 | 501 |                                  } else { | 
                                                        
| 502 | 502 | echo $user->perm->getAllGroupsOptions($groupPermission);  | 
                                                        
@@ -49,7 +49,7 @@ discard block  | 
                                                    ||
| 49 | 49 | $temp = current($_FILES);  | 
                                                        
| 50 | 50 |                  if (is_uploaded_file($temp['tmp_name'])) { | 
                                                        
| 51 | 51 |                      if (isset($_SERVER['HTTP_ORIGIN'])) { | 
                                                        
| 52 | -                        if ($_SERVER['HTTP_ORIGIN'] . '/' === $faqConfig->getDefaultUrl()) { | 
                                                        |
| 52 | +                        if ($_SERVER['HTTP_ORIGIN'].'/' === $faqConfig->getDefaultUrl()) { | 
                                                        |
| 53 | 53 | $http->sendCorsHeader();  | 
                                                        
| 54 | 54 |                          } else { | 
                                                        
| 55 | 55 | $http->sendStatus(403);  | 
                                                        
@@ -70,7 +70,7 @@ discard block  | 
                                                    ||
| 70 | 70 | }  | 
                                                        
| 71 | 71 | |
| 72 | 72 | // Accept upload if there was no origin, or if it is an accepted origin  | 
                                                        
| 73 | - $fileToWrite = $uploadDir . $temp['name'];  | 
                                                        |
| 73 | + $fileToWrite = $uploadDir.$temp['name'];  | 
                                                        |
| 74 | 74 | move_uploaded_file($temp['tmp_name'], $fileToWrite);  | 
                                                        
| 75 | 75 | |
| 76 | 76 | // Respond to the successful upload with JSON.  | 
                                                        
@@ -44,7 +44,7 @@  | 
                                                    ||
| 44 | 44 | $dateEnd = Filter::filterInput(INPUT_POST, 'dateEnd', FILTER_SANITIZE_STRING);  | 
                                                        
| 45 | 45 | $question = Filter::filterInput(INPUT_POST, 'question', FILTER_SANITIZE_STRING);  | 
                                                        
| 46 | 46 |      $categories = Filter::filterInputArray(INPUT_POST, array('rubrik' => array('filter' => FILTER_VALIDATE_INT, | 
                                                        
| 47 | - 'flags' => FILTER_REQUIRE_ARRAY, )));  | 
                                                        |
| 47 | + 'flags' => FILTER_REQUIRE_ARRAY,)));  | 
                                                        |
| 48 | 48 | $record_lang = Filter::filterInput(INPUT_POST, 'lang', FILTER_SANITIZE_STRING);  | 
                                                        
| 49 | 49 | $tags = Filter::filterInput(INPUT_POST, 'tags', FILTER_SANITIZE_STRING);  | 
                                                        
| 50 | 50 | $active = Filter::filterInput(INPUT_POST, 'active', FILTER_SANITIZE_STRING);  | 
                                                        
@@ -111,7 +111,7 @@  | 
                                                    ||
| 111 | 111 | <ul class="list-unstyled">  | 
                                                        
| 112 | 112 | <?php  | 
                                                        
| 113 | 113 |                          foreach ($category->getCategoryLanguagesTranslated($id) as $language => $description) { | 
                                                        
| 114 | - echo '<input type="text" readonly class="form-control-plaintext" id="staticEmail" value="' . $language . ': ' . $description . '">';  | 
                                                        |
| 114 | + echo '<input type="text" readonly class="form-control-plaintext" id="staticEmail" value="'.$language.': '.$description.'">';  | 
                                                        |
| 115 | 115 | }  | 
                                                        
| 116 | 116 | ?>  | 
                                                        
| 117 | 117 | </ul>  | 
                                                        
@@ -61,7 +61,7 @@  | 
                                                    ||
| 61 | 61 |          foreach ($memberList as $single_member) { | 
                                                        
| 62 | 62 | $group = $user->perm->getGroupData($single_member);  | 
                                                        
| 63 | 63 |              $members[] = array('group_id' => $group['group_id'], | 
                                                        
| 64 | - 'name' => $group['name'] );  | 
                                                        |
| 64 | + 'name' => $group['name']);  | 
                                                        |
| 65 | 65 | }  | 
                                                        
| 66 | 66 | echo json_encode($members);  | 
                                                        
| 67 | 67 | }  | 
                                                        
@@ -61,7 +61,7 @@ discard block  | 
                                                    ||
| 61 | 61 | |
| 62 | 62 |                      foreach ($items as $item) { | 
                                                        
| 63 | 63 |                          if (is_array($item) && count($item) == 3 && Language::isASupportedLanguage($item[1])) { | 
                                                        
| 64 | - echo $faq->updateRecordFlag((int) $item[0], addslashes($item[1]), $item[2], 'active');  | 
                                                        |
| 64 | + echo $faq->updateRecordFlag((int)$item[0], addslashes($item[1]), $item[2], 'active');  | 
                                                        |
| 65 | 65 | }  | 
                                                        
| 66 | 66 | }  | 
                                                        
| 67 | 67 | }  | 
                                                        
@@ -78,7 +78,7 @@ discard block  | 
                                                    ||
| 78 | 78 | |
| 79 | 79 |                      foreach ($items as $item) { | 
                                                        
| 80 | 80 |                          if (is_array($item) && count($item) == 3 && Language::isASupportedLanguage($item[1])) { | 
                                                        
| 81 | - echo $faq->updateRecordFlag((int) $item[0], addslashes($item[1]), $item[2], 'sticky');  | 
                                                        |
| 81 | + echo $faq->updateRecordFlag((int)$item[0], addslashes($item[1]), $item[2], 'sticky');  | 
                                                        |
| 82 | 82 | }  | 
                                                        
| 83 | 83 | }  | 
                                                        
| 84 | 84 | }  | 
                                                        
@@ -143,7 +143,7 @@ discard block  | 
                                                    ||
| 143 | 143 | |
| 144 | 144 |                  if (!is_null($questionIds['questions'])) { | 
                                                        
| 145 | 145 |                      foreach ($questionIds['questions'] as $questionId) { | 
                                                        
| 146 | - $faq->deleteQuestion((int) $questionId);  | 
                                                        |
| 146 | + $faq->deleteQuestion((int)$questionId);  | 
                                                        |
| 147 | 147 | }  | 
                                                        
| 148 | 148 | }  | 
                                                        
| 149 | 149 | echo $PMF_LANG['ad_entry_delsuc'];  | 
                                                        
@@ -83,7 +83,7 @@  | 
                                                    ||
| 83 | 83 |              $message .= sprintf('<p class="alert alert-danger">%s</p>', $PMF_LANG['ad_msg_mysqlerr']); | 
                                                        
| 84 | 84 | }  | 
                                                        
| 85 | 85 |          foreach ($sectionMembers as $memberId) { | 
                                                        
| 86 | - $perm->addGroupToSection((int) $memberId, $sectionId);  | 
                                                        |
| 86 | + $perm->addGroupToSection((int)$memberId, $sectionId);  | 
                                                        |
| 87 | 87 | }  | 
                                                        
| 88 | 88 |          $message .= sprintf('<p class="alert alert-success">%s <strong>%s</strong> %s</p>', | 
                                                        
| 89 | 89 | $PMF_LANG['ad_msg_savedsuc_1'],  |