Completed
Pull Request — master (#450)
by
unknown
02:11
created
Classes/Typolink/DatabaseRecordLinkBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Classes/Command/CleanupCommandController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,12 +104,12 @@  discard block
 block discarded – undo
104 104
     protected function processEvent(EventRepository $repository, Event $model, $modus)
105 105
     {
106 106
         // define the function for the delete-modus.
107
-        $delete = function ($repository, $model) {
107
+        $delete = function($repository, $model) {
108 108
             $repository->remove($model);
109 109
         };
110 110
 
111 111
         // define the function for the hide-modus.
112
-        $hide = function ($repository, $model) {
112
+        $hide = function($repository, $model) {
113 113
             $model->setHidden(true);
114 114
             $repository->update($model);
115 115
         };
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
             ->execute()
172 172
             ->fetchAll();
173 173
 
174
-        $foreignUids = \array_map(function ($item) {
174
+        $foreignUids = \array_map(function($item) {
175 175
             return (int)$item['foreign_uid'];
176 176
         }, $foreignUids);
177 177
 
Please login to merge, or discard this patch.
Classes/Service/TimeTable/TimeTimeTable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
Classes/Hooks/CmsLayout.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
         $actions = $this->flexFormService->get('switchableControllerActions', 'main');
66 66
         $parts = GeneralUtility::trimExplode(';', $actions, true);
67
-        $parts = \array_map(function ($element) {
67
+        $parts = \array_map(function($element) {
68 68
             $split = \explode('->', $element);
69 69
 
70 70
             return \ucfirst($split[1]);
Please login to merge, or discard this patch.
Classes/Seo/EventXmlSitemapDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Classes/Service/Url/RealUrl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Classes/Register.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
         $typeList = isset($configuration['tcaTypeList']) ? \trim($configuration['tcaTypeList']) : '';
118 118
         // Configure position of where to put the calendarize fields
119 119
         // Supports everything offered by TYPO3, e.g.: before:abc, after:abc, replace:abc
120
-        $position = isset($configuration['tcaPosition']) ? \trim($configuration['tcaPosition']): '';
120
+        $position = isset($configuration['tcaPosition']) ? \trim($configuration['tcaPosition']) : '';
121 121
         $GLOBALS['TCA'][$tableName]['columns'][$fieldName] = [
122 122
             'label' => 'Calendarize',
123 123
             'l10n_mode' => 'exclude',
Please login to merge, or discard this patch.
Classes/Slots/EventSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         /** @var EventRepository $eventRepository */
62 62
         $eventRepository = GeneralUtility::makeInstance(ObjectManager::class)->get(EventRepository::class);
63 63
         $searchTermHits = $eventRepository->getIdsBySearchTerm($customSearch['fullText']);
64
-        if ( $searchTermHits && count($searchTermHits) ) {
64
+        if ($searchTermHits && count($searchTermHits)) {
65 65
             $indexIds['tx_calendarize_domain_model_event'] = $searchTermHits;
66 66
         }
67 67
         return [
Please login to merge, or discard this patch.
Classes/Domain/Repository/IndexRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -222,16 +222,16 @@  discard block
 block discarded – undo
222 222
             $foreignIdConstraints = [];
223 223
             // Old way, just accept foreignUids as provided, not checking the table.
224 224
             // This has a caveat solved with the $tabledIndexIds
225
-            if ( $indexIds ) {
225
+            if ($indexIds) {
226 226
                 $foreignIdConstraints[] = $query->in('foreignUid', $indexIds);
227 227
             }
228
-            if ( $tabledIndexIds ) {
228
+            if ($tabledIndexIds) {
229 229
                 // Handle each table individually on the filters
230 230
                 // allowing for uids to be table specific.
231 231
                 // If 1,3,5 on table_a are ok and 4,5,7 on table_b are ok,
232 232
                 // don't show uid 1 from table_b
233
-                foreach ( $tabledIndexIds as $tabledIndexId ) {
234
-                    if ( $tabledIndexId['indexIds'] ) {
233
+                foreach ($tabledIndexIds as $tabledIndexId) {
234
+                    if ($tabledIndexId['indexIds']) {
235 235
                         // This table has used filters and returned some allowed uids.
236 236
                         // Providing non-existing values e.g.: -1 will remove everything
237 237
                         // unless other elements have found elements with the filters
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                     }
243 243
                 }
244 244
             }
245
-            if ( count($foreignIdConstraints) > 1 ) {
245
+            if (count($foreignIdConstraints) > 1) {
246 246
                 // Multiple valid tables should be grouped by "OR"
247 247
                 // so it's either table_a with uids 1,3,4 OR table_b with uids 1,5,7
248 248
                 $foreignIdConstraint = $query->logicalOr($foreignIdConstraints);
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
                 $foreignIdConstraint = array_shift($foreignIdConstraints);
252 252
             }
253 253
             // If any foreignUid constraint survived, use it on the query
254
-            if ( $foreignIdConstraint ) {
254
+            if ($foreignIdConstraint) {
255 255
                 $constraints[] = $foreignIdConstraint;
256 256
             }
257 257
         }
Please login to merge, or discard this patch.