@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | /** |
| 5 | 5 | * User. |
| 6 | 6 | */ |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | /** |
| 5 | 5 | * Send. |
| 6 | 6 | */ |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | /** |
| 5 | 5 | * E-Mail View. |
| 6 | 6 | * |
@@ -178,7 +178,7 @@ |
||
| 178 | 178 | * |
| 179 | 179 | * @throws \Exception |
| 180 | 180 | * |
| 181 | - * @return int |
|
| 181 | + * @return boolean |
|
| 182 | 182 | */ |
| 183 | 183 | protected function sendMail() |
| 184 | 184 | { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | /** |
| 5 | 5 | * Request Faq. |
| 6 | 6 | */ |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | /** |
| 5 | 5 | * Build up the Question. |
| 6 | 6 | */ |
@@ -37,8 +37,8 @@ discard block |
||
| 37 | 37 | { |
| 38 | 38 | parent::__construct($objectManager); |
| 39 | 39 | |
| 40 | - $configuration = (array) @\unserialize((string) $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['faq']); |
|
| 41 | - $enableManuallySorting = isset($configuration['enableManuallySorting']) ? (bool) $configuration['enableManuallySorting'] : false; |
|
| 40 | + $configuration = (array)@\unserialize((string)$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['faq']); |
|
| 41 | + $enableManuallySorting = isset($configuration['enableManuallySorting']) ? (bool)$configuration['enableManuallySorting'] : false; |
|
| 42 | 42 | |
| 43 | 43 | if ($enableManuallySorting) { |
| 44 | 44 | $this->defaultOrderings = [ |
@@ -56,9 +56,9 @@ discard block |
||
| 56 | 56 | * |
| 57 | 57 | * @param int $limit |
| 58 | 58 | * @param int $topCategoryId |
| 59 | - * @param array $topQuestions |
|
| 59 | + * @param integer[] $topQuestions |
|
| 60 | 60 | * |
| 61 | - * @return array|QueryResultInterface |
|
| 61 | + * @return integer |
|
| 62 | 62 | * @throws InvalidQueryException |
| 63 | 63 | */ |
| 64 | 64 | public function findTop($limit = 5, $topCategoryId = 0, $topQuestions = []) |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * |
| 125 | 125 | * @throws InvalidQueryException |
| 126 | 126 | * |
| 127 | - * @return QueryResultInterface|array |
|
| 127 | + * @return integer |
|
| 128 | 128 | */ |
| 129 | 129 | public function findAll($topCategoryId = 0) |
| 130 | 130 | { |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | * @param Faq $faq |
| 149 | 149 | * @param int $topCategoryId |
| 150 | 150 | * |
| 151 | - * @return array|QueryResultInterface |
|
| 151 | + * @return integer |
|
| 152 | 152 | * @throws InvalidQueryException |
| 153 | 153 | */ |
| 154 | 154 | public function findByFaq(Faq $faq, $topCategoryId = 0) |
@@ -193,8 +193,8 @@ discard block |
||
| 193 | 193 | /** |
| 194 | 194 | * Get the teaser questions. |
| 195 | 195 | * |
| 196 | - * @param array $topQuestions |
|
| 197 | - * @param array $categories |
|
| 196 | + * @param integer[] $topQuestions |
|
| 197 | + * @param integer[] $categories |
|
| 198 | 198 | * @param int $limit |
| 199 | 199 | * |
| 200 | 200 | * @return array |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | /** |
| 5 | 5 | * Build up the Question category. |
| 6 | 6 | */ |