@@ -9,7 +9,6 @@ |
||
9 | 9 | |
10 | 10 | use DmitryDulepov\Realurl\Configuration\ConfigurationReader; |
11 | 11 | use DmitryDulepov\Realurl\Utility; |
12 | -use HDNET\Calendarize\Domain\Model\Index; |
|
13 | 12 | use HDNET\Calendarize\Service\IndexerService; |
14 | 13 | use HDNET\Calendarize\Utility\HelperUtility; |
15 | 14 | use TYPO3\CMS\Core\Database\ConnectionPool; |
@@ -159,7 +159,7 @@ |
||
159 | 159 | ]; |
160 | 160 | |
161 | 161 | $aliasBase = $alias; |
162 | - for ($i = 0;; ++$i) { |
|
162 | + for ($i = 0; ; ++$i) { |
|
163 | 163 | $alias = $i > 0 ? $aliasBase . '-' . $i : $aliasBase; |
164 | 164 | if (!$this->aliasAlreadyExists($alias)) { |
165 | 165 | $entry['value_alias'] = $alias; |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | { |
65 | 65 | switch ($configuration->getEndDateDynamic()) { |
66 | 66 | case Configuration::END_DYNAMIC_1_DAY: |
67 | - $callback = function ($entry) { |
|
67 | + $callback = function($entry) { |
|
68 | 68 | if ($entry['start_date'] instanceof \DateTime) { |
69 | 69 | $entry['end_date'] = clone $entry['start_date']; |
70 | 70 | $entry['end_date']->modify('+1 day'); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | }; |
75 | 75 | break; |
76 | 76 | case Configuration::END_DYNAMIC_1_WEEK: |
77 | - $callback = function ($entry) { |
|
77 | + $callback = function($entry) { |
|
78 | 78 | if ($entry['start_date'] instanceof \DateTime) { |
79 | 79 | $entry['end_date'] = clone $entry['start_date']; |
80 | 80 | $entry['end_date']->modify('+1 week'); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | }; |
85 | 85 | break; |
86 | 86 | case Configuration::END_DYNAMIC_END_WEEK: |
87 | - $callback = function ($entry) { |
|
87 | + $callback = function($entry) { |
|
88 | 88 | if ($entry['start_date'] instanceof \DateTime) { |
89 | 89 | $entry['end_date'] = clone $entry['start_date']; |
90 | 90 | $entry['end_date']->modify('monday next week'); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | }; |
96 | 96 | break; |
97 | 97 | case Configuration::END_DYNAMIC_END_MONTH: |
98 | - $callback = function ($entry) { |
|
98 | + $callback = function($entry) { |
|
99 | 99 | if ($entry['start_date'] instanceof \DateTime) { |
100 | 100 | $entry['end_date'] = clone $entry['start_date']; |
101 | 101 | $entry['end_date']->modify('last day of this month'); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | break; |
107 | 107 | case Configuration::END_DYNAMIC_END_YEAR: |
108 | 108 | |
109 | - $callback = function ($entry) { |
|
109 | + $callback = function($entry) { |
|
110 | 110 | if ($entry['start_date'] instanceof \DateTime) { |
111 | 111 | $entry['end_date'] = clone $entry['start_date']; |
112 | 112 | $entry['end_date']->setDate((int)$entry['end_date']->format('Y'), 12, 31); |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $GLOBALS['TCA'][$table]['ctrl']['languageField'], |
53 | 53 | [ |
54 | 54 | -1, // All languages |
55 | - $this->getLanguageId(), // Current language |
|
55 | + $this->getLanguageId(), // Current language |
|
56 | 56 | ] |
57 | 57 | ); |
58 | 58 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | } |
24 | 24 | $events = $parser->getEvents(); |
25 | 25 | |
26 | - $wrapEvents = function (ICalEvent $event) { |
|
26 | + $wrapEvents = function(ICalEvent $event) { |
|
27 | 27 | return new DissectEventAdapter($event); |
28 | 28 | }; |
29 | 29 |
@@ -85,7 +85,7 @@ |
||
85 | 85 | { |
86 | 86 | static $tables; |
87 | 87 | if (!\is_array($tables)) { |
88 | - $tables = array_map(function ($config) { |
|
88 | + $tables = array_map(function($config) { |
|
89 | 89 | return $config['tableName']; |
90 | 90 | }, GeneralUtility::makeInstance(Register::class)->getRegister()); |
91 | 91 | } |
@@ -137,12 +137,12 @@ discard block |
||
137 | 137 | protected function processEvent(EventRepository $repository, Event $model, $modus) |
138 | 138 | { |
139 | 139 | // define the function for the delete-modus. |
140 | - $delete = function ($repository, $model) { |
|
140 | + $delete = function($repository, $model) { |
|
141 | 141 | $repository->remove($model); |
142 | 142 | }; |
143 | 143 | |
144 | 144 | // define the function for the hide-modus. |
145 | - $hide = function ($repository, $model) { |
|
145 | + $hide = function($repository, $model) { |
|
146 | 146 | $model->setHidden(true); |
147 | 147 | $repository->update($model); |
148 | 148 | }; |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | ->execute() |
205 | 205 | ->fetchAll(); |
206 | 206 | |
207 | - $foreignUids = array_map(function ($item) { |
|
207 | + $foreignUids = array_map(function($item) { |
|
208 | 208 | return (int)$item['foreign_uid']; |
209 | 209 | }, $foreignUids); |
210 | 210 |
@@ -65,7 +65,7 @@ |
||
65 | 65 | |
66 | 66 | $actions = $this->flexFormService->get('switchableControllerActions', 'main'); |
67 | 67 | $parts = GeneralUtility::trimExplode(';', $actions, true); |
68 | - $parts = array_map(function ($element) { |
|
68 | + $parts = array_map(function($element) { |
|
69 | 69 | $split = explode('->', $element); |
70 | 70 | |
71 | 71 | return ucfirst($split[1]); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | $date = $arguments['date']; |
35 | 35 | if ($date instanceof \DateTimeInterface) { |
36 | - $renderChildrenClosure = function () use ($date) { |
|
36 | + $renderChildrenClosure = function() use ($date) { |
|
37 | 37 | // Convert date to timestamp, so that it can be reparsed. |
38 | 38 | return $date->getTimestamp(); |
39 | 39 | }; |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; |
16 | 16 | use TYPO3\CMS\Core\Utility\GeneralUtility; |
17 | 17 | use TYPO3\CMS\Install\Updates\DatabaseUpdatedPrerequisite; |
18 | -use TYPO3\CMS\Install\Updates\UpgradeWizardInterface; |
|
19 | 18 | |
20 | 19 | /** |
21 | 20 | * CalMigrationUpdate. |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | $customMessages |
413 | 413 | ); |
414 | 414 | |
415 | - if($eventUid !== 0 && $categoryUid !== 0) { |
|
415 | + if ($eventUid !== 0 && $categoryUid !== 0) { |
|
416 | 416 | $insertValues = [ |
417 | 417 | 'uid_local' => $categoryUid, |
418 | 418 | 'uid_foreign' => $eventUid, |
@@ -818,7 +818,7 @@ discard block |
||
818 | 818 | $q->expr()->eq('uid', $q->createNamedParameter((int)$sysCategory['uid'], \PDO::PARAM_INT)) |
819 | 819 | )->set( |
820 | 820 | 'parent', |
821 | - $this->getSysCategoryParentUid(self::IMPORT_PREFIX . (int) $sysCategory['parent']) |
|
821 | + $this->getSysCategoryParentUid(self::IMPORT_PREFIX . (int)$sysCategory['parent']) |
|
822 | 822 | ); |
823 | 823 | |
824 | 824 | $dbQueries[] = $q->getSQL(); |
@@ -1080,7 +1080,7 @@ discard block |
||
1080 | 1080 | $connection = $connectionPool->getConnectionByName(ConnectionPool::DEFAULT_CONNECTION_NAME); |
1081 | 1081 | $dbSchema = $connection->getSchemaManager()->createSchema(); |
1082 | 1082 | |
1083 | - $tableNames = array_map(function ($table) { |
|
1083 | + $tableNames = array_map(function($table) { |
|
1084 | 1084 | return $table->getName(); |
1085 | 1085 | }, $dbSchema->getTables()); |
1086 | 1086 |