@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Abstraction of hooks. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Hooks; |
9 | 9 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Render the CMS layout. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Hooks; |
9 | 9 | |
@@ -68,7 +68,7 @@ discard block |
||
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 | |
74 | 74 | return \ucfirst($split[1]); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | $this->layoutService->addRow(TranslateUtility::get('mode'), TranslateUtility::get('mode.' . $actionKey)); |
79 | 79 | |
80 | - $pluginConfiguration = (int) $this->flexFormService->get('settings.pluginConfiguration', 'main'); |
|
80 | + $pluginConfiguration = (int)$this->flexFormService->get('settings.pluginConfiguration', 'main'); |
|
81 | 81 | if ($pluginConfiguration) { |
82 | 82 | $table = 'tx_calendarize_domain_model_pluginconfiguration'; |
83 | 83 | $row = HelperUtility::getDatabaseConnection()->exec_SELECTgetSingleRow( |
@@ -98,14 +98,14 @@ discard block |
||
98 | 98 | ); |
99 | 99 | } |
100 | 100 | |
101 | - if ((bool) $this->flexFormService->get('settings.hidePagination', 'main')) { |
|
101 | + if ((bool)$this->flexFormService->get('settings.hidePagination', 'main')) { |
|
102 | 102 | $this->layoutService->addRow(TranslateUtility::get('hide.pagination.teaser'), '!!!'); |
103 | 103 | } |
104 | - $overrideStartDate = (int) $this->flexFormService->get('settings.overrideStartdate', 'main'); |
|
104 | + $overrideStartDate = (int)$this->flexFormService->get('settings.overrideStartdate', 'main'); |
|
105 | 105 | if ($overrideStartDate) { |
106 | 106 | $this->layoutService->addRow('OverrideStartdate', \date('d.m.y H:i', $overrideStartDate)); |
107 | 107 | } |
108 | - $overrideEndDate = (int) $this->flexFormService->get('settings.overrideEnddate', 'main'); |
|
108 | + $overrideEndDate = (int)$this->flexFormService->get('settings.overrideEnddate', 'main'); |
|
109 | 109 | if ($overrideEndDate) { |
110 | 110 | $this->layoutService->addRow('OverrideEndDate', \date('d.m.y H:i', $overrideEndDate)); |
111 | 111 | } |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | 'bookingPid', |
131 | 131 | ]; |
132 | 132 | foreach ($pageIdsNames as $pageIdName) { |
133 | - $pageId = (int) $this->flexFormService->get('settings.' . $pageIdName, 'pages'); |
|
133 | + $pageId = (int)$this->flexFormService->get('settings.' . $pageIdName, 'pages'); |
|
134 | 134 | $pageRow = BackendUtility::getRecord('pages', $pageId); |
135 | 135 | if ($pageRow) { |
136 | 136 | $this->layoutService->addRow( |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Calendarize logical exception. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Index interface for the ke_search extension to index the events. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Features; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Feed interface. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Features; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * RealURL features. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Features; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Booking interface. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Features; |
9 | 9 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Cleanup the event models. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Command; |
9 | 9 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | // climb thru the events and hide/delete them |
71 | 71 | foreach ($events as $event) { |
72 | - $uid = (int) $event['foreign_uid']; |
|
72 | + $uid = (int)$event['foreign_uid']; |
|
73 | 73 | |
74 | 74 | $model = $repository->findByUid($uid); |
75 | 75 | |
@@ -102,12 +102,12 @@ discard block |
||
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 | }; |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | protected function findOutdatedEvents($tableName, $waitingPeriod) |
144 | 144 | { |
145 | 145 | // calculate the waiting time |
146 | - $interval = 'P' . (int) $waitingPeriod . 'D'; |
|
146 | + $interval = 'P' . (int)$waitingPeriod . 'D'; |
|
147 | 147 | $now = DateTimeUtility::getNow(); |
148 | 148 | $now->sub(new \DateInterval($interval)); |
149 | 149 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Command controller abstraction. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Command; |
9 | 9 |