| @@ -68,7 +68,7 @@ | ||
| 68 | 68 | |
| 69 | 69 |          $actions = $this->flexFormService->get('switchableControllerActions', 'main'); | 
| 70 | 70 |          $parts = GeneralUtility::trimExplode(';', $actions, true); | 
| 71 | -        $parts = array_map(function ($element) { | |
| 71 | +        $parts = array_map(function($element) { | |
| 72 | 72 |              $split = explode('->', $element); | 
| 73 | 73 | return ucfirst($split[1]); | 
| 74 | 74 | }, $parts); | 
| @@ -102,12 +102,12 @@ | ||
| 102 | 102 | protected function processEvent(EventRepository $repository, Event $model, $modus) | 
| 103 | 103 |      { | 
| 104 | 104 | // define the function for the delete-modus. | 
| 105 | -        $delete = function ($repository, $model) { | |
| 105 | +        $delete = function($repository, $model) { | |
| 106 | 106 | $repository->remove($model); | 
| 107 | 107 | }; | 
| 108 | 108 | |
| 109 | 109 | // define the function for the hide-modus. | 
| 110 | -        $hide = function ($repository, $model) { | |
| 110 | +        $hide = function($repository, $model) { | |
| 111 | 111 | $model->setHidden(true); | 
| 112 | 112 | $repository->update($model); | 
| 113 | 113 | }; | 
| @@ -395,7 +395,7 @@ | ||
| 395 | 395 | $indexTypes = $this->indexTypes; | 
| 396 | 396 |              if (GeneralUtility::compat_version('8.5')) { | 
| 397 | 397 | // @todo check why the 8.5 do not wrap arround string | 
| 398 | -                $indexTypes = array_map(function ($item) { | |
| 398 | +                $indexTypes = array_map(function($item) { | |
| 399 | 399 | return '"' . $item . '"'; | 
| 400 | 400 | }, $indexTypes); | 
| 401 | 401 | } | 
| @@ -33,7 +33,7 @@ discard block | ||
| 33 | 33 | |
| 34 | 34 | $db = HelperUtility::getDatabaseConnection(); | 
| 35 | 35 | |
| 36 | - $selectWhere = 'tablenames = \'tx_cal_event\' AND uid_foreign = ' . (int) $event['uid']; | |
| 36 | + $selectWhere = 'tablenames = \'tx_cal_event\' AND uid_foreign = ' . (int)$event['uid']; | |
| 37 | 37 |          $query = $db->SELECTquery('*', 'sys_file_reference', $selectWhere); | 
| 38 | 38 | $selectResults = $db->admin_query($query); | 
| 39 | 39 | $dbQueries[] = $query; | 
| @@ -41,7 +41,7 @@ discard block | ||
| 41 | 41 |          foreach ($selectResults as $selectResult) { | 
| 42 | 42 | $updateWhere = ' import_id = \'' . CalMigrationUpdate::IMPORT_PREFIX . $selectResult['uid'] . '\''; | 
| 43 | 43 | $fieldValues = [ | 
| 44 | - 'uid_foreign' => (int) $recordId, | |
| 44 | + 'uid_foreign' => (int)$recordId, | |
| 45 | 45 | 'tablenames' => $table | 
| 46 | 46 | ]; | 
| 47 | 47 | |
| @@ -172,7 +172,7 @@ | ||
| 172 | 172 |      { | 
| 173 | 173 |          // NOTE that new \DateTime('@timestamp') does NOT work - @see comment in normalizeDateTimeSingle() | 
| 174 | 174 | // So we create a date string with timezone information first, and a \DateTime in the current server timezone then. | 
| 175 | - return new \DateTime(date(\DateTime::ATOM, (int) $GLOBALS['SIM_ACCESS_TIME'])); | |
| 175 | + return new \DateTime(date(\DateTime::ATOM, (int)$GLOBALS['SIM_ACCESS_TIME'])); | |
| 176 | 176 | } | 
| 177 | 177 | |
| 178 | 178 | /** | 
| @@ -32,6 +32,6 @@ | ||
| 32 | 32 | 'index' => $index->getUid() | 
| 33 | 33 | ], | 
| 34 | 34 | ]; | 
| 35 | - return parent::renderLink($this->getPageUid($pageUid, 'detailPid'), $additionalParams, (bool) $absolute); | |
| 35 | + return parent::renderLink($this->getPageUid($pageUid, 'detailPid'), $additionalParams, (bool)$absolute); | |
| 36 | 36 | } | 
| 37 | 37 | } | 
| @@ -25,7 +25,7 @@ | ||
| 25 | 25 | */ | 
| 26 | 26 | public function render(Index $index, $pageUid = null, $absolute = false) | 
| 27 | 27 |      { | 
| 28 | - parent::render($index, $pageUid, (bool) $absolute); | |
| 28 | + parent::render($index, $pageUid, (bool)$absolute); | |
| 29 | 29 | return $this->lastHref; | 
| 30 | 30 | } | 
| 31 | 31 | } | 
| @@ -45,6 +45,6 @@ | ||
| 45 | 45 | $useIndexTime = false | 
| 46 | 46 |      ) { | 
| 47 | 47 | $indexRepository = $this->objectManager->get(IndexRepository::class); | 
| 48 | - return $indexRepository->findByTraversing($index, $future, $past, (int) $limit, $sort, $useIndexTime); | |
| 48 | + return $indexRepository->findByTraversing($index, $future, $past, (int)$limit, $sort, $useIndexTime); | |
| 49 | 49 | } | 
| 50 | 50 | } | 
| @@ -36,7 +36,7 @@ | ||
| 36 | 36 | |
| 37 | 37 | $previewLimit = 10; | 
| 38 | 38 |          if (isset($configuration['fieldConf']['config']['items'])) { | 
| 39 | - $previewLimit = (int) $configuration['fieldConf']['config']['items']; | |
| 39 | + $previewLimit = (int)$configuration['fieldConf']['config']['items']; | |
| 40 | 40 | } | 
| 41 | 41 | |
| 42 | 42 | $indexService = GeneralUtility::makeInstance(IndexerService::class); |