Completed
Push — master ( 7f9317...0afa00 )
by
unknown
42s
created
Classes/Domain/Repository/AbstractRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     /**
22 22
      * Check the constraint and execute the query.
23 23
      */
24
-    public function matchAndExecute(QueryInterface $query, array $constraints = []): array|QueryResultInterface
24
+    public function matchAndExecute(QueryInterface $query, array $constraints = []): array | QueryResultInterface
25 25
     {
26 26
         if (!empty($constraints)) {
27 27
             $query->matching($query->logicalAnd(...$constraints));
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
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         switch ($configuration->getEndDateDynamic()) {
59 59
             case ConfigurationInterface::END_DYNAMIC_1_DAY:
60
-                $callback = static function ($entry) {
60
+                $callback = static function($entry) {
61 61
                     if ($entry['start_date'] instanceof \DateTime) {
62 62
                         $entry['end_date'] = clone $entry['start_date'];
63 63
                         $entry['end_date']->modify('+1 day');
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 };
68 68
                 break;
69 69
             case ConfigurationInterface::END_DYNAMIC_1_WEEK:
70
-                $callback = static function ($entry) {
70
+                $callback = static function($entry) {
71 71
                     if ($entry['start_date'] instanceof \DateTime) {
72 72
                         $entry['end_date'] = clone $entry['start_date'];
73 73
                         $entry['end_date']->modify('+1 week');
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 };
78 78
                 break;
79 79
             case ConfigurationInterface::END_DYNAMIC_END_WEEK:
80
-                $callback = static function ($entry) {
80
+                $callback = static function($entry) {
81 81
                     if ($entry['start_date'] instanceof \DateTime) {
82 82
                         $entry['end_date'] = clone $entry['start_date'];
83 83
                         $entry['end_date']->modify('monday next week');
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 };
89 89
                 break;
90 90
             case ConfigurationInterface::END_DYNAMIC_END_MONTH:
91
-                $callback = static function ($entry) {
91
+                $callback = static function($entry) {
92 92
                     if ($entry['start_date'] instanceof \DateTime) {
93 93
                         $entry['end_date'] = clone $entry['start_date'];
94 94
                         $entry['end_date']->modify('last day of this month');
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 };
99 99
                 break;
100 100
             case ConfigurationInterface::END_DYNAMIC_END_YEAR:
101
-                $callback = static function ($entry) {
101
+                $callback = static function($entry) {
102 102
                     if ($entry['start_date'] instanceof \DateTime) {
103 103
                         $entry['end_date'] = clone $entry['start_date'];
104 104
                         $entry['end_date']->setDate((int)$entry['end_date']->format('Y'), 12, 31);
Please login to merge, or discard this patch.
Classes/Service/RecurrenceService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         string $recurrence,
59 59
         string $day,
60 60
         string $modify
61
-    ): \DateTime|false {
61
+    ): \DateTime | false {
62 62
         // clone and reset and move to next month
63 63
         $dateTime = clone $date;
64 64
         $dateTime->setDate((int)$dateTime->format('Y'), (int)$dateTime->format('m'), 1);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         string $direction,
158 158
         array $validDays,
159 159
         int $position = 1
160
-    ): \DateTime|false {
160
+    ): \DateTime | false {
161 161
         if (self::DIRECTION_UP === $direction) {
162 162
             $dateTime->setDate((int)$dateTime->format('Y'), (int)$dateTime->format('m'), 1);
163 163
             $modify = '+1 day';
Please login to merge, or discard this patch.
Classes/ViewHelpers/DateTime/ModifyViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * Modify the given datetime by the string modification.
27 27
      */
28
-    public function render(): \DateTime|false
28
+    public function render(): \DateTime | false
29 29
     {
30 30
         $dateTime = $this->arguments['dateTime'];
31 31
 
Please login to merge, or discard this patch.
Classes/EventListener/BookingCountriesListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /**
24 24
      * Get country selection.
25 25
      */
26
-    protected function getCountrySelection(): array|QueryResultInterface
26
+    protected function getCountrySelection(): array | QueryResultInterface
27 27
     {
28 28
         if (!ExtensionManagementUtility::isLoaded('static_info_tables')) {
29 29
             return [];
Please login to merge, or discard this patch.
Classes/Command/CleanupCommandController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,12 +141,12 @@
 block discarded – undo
141 141
     protected function processEvent(Repository $repository, AbstractEntity $model, string $mode): void
142 142
     {
143 143
         // define the function for the delete-mode.
144
-        $delete = static function ($repository, $model) {
144
+        $delete = static function($repository, $model) {
145 145
             $repository->remove($model);
146 146
         };
147 147
 
148 148
         // define the function for the hide-mode.
149
-        $hide = static function ($repository, $model) {
149
+        $hide = static function($repository, $model) {
150 150
             $model->setHidden(true);
151 151
             $repository->update($model);
152 152
         };
Please login to merge, or discard this patch.
Classes/Utility/ConfigurationUtility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * Configuration cache.
17 17
      */
18
-    protected static ?array $configuration = null;
18
+    protected static ? array $configuration = null;
19 19
 
20 20
     /**
21 21
      * Get the given configuration value.
Please login to merge, or discard this patch.
Classes/Domain/Repository/RawIndexRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
         return array_values(
116 116
             array_filter(
117 117
                 $result,
118
-                static function ($item) {
118
+                static function($item) {
119 119
                     return \is_array($item) && VersionState::DELETE_PLACEHOLDER !== ($item['t3ver_state'] ?? false);
120 120
                 }
121 121
             )
Please login to merge, or discard this patch.
Classes/Domain/Repository/IndexRepository.php 1 patch
Spacing   +18 added lines, -21 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         OptionRequest $options,
79 79
         array $allowedPages = [],
80 80
         bool $ignoreEnableFields = true
81
-    ): array|QueryResultInterface {
81
+    ): array | QueryResultInterface {
82 82
         $query = $this->createQuery();
83 83
         $querySettings = $query->getQuerySettings();
84 84
         $querySettings->setIgnoreEnableFields($ignoreEnableFields);
@@ -138,12 +138,12 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function findList(
140 140
         int $limit = 0,
141
-        int|string $listStartTime = 0,
141
+        int | string $listStartTime = 0,
142 142
         int $startOffsetHours = 0,
143 143
         int $overrideStartDate = 0,
144 144
         int $overrideEndDate = 0,
145 145
         bool $ignoreStoragePid = false
146
-    ): array|QueryResultInterface {
146
+    ): array | QueryResultInterface {
147 147
         $startTime = DateTimeUtility::getNow();
148 148
         $endTime = null;
149 149
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         \DateTimeInterface $endDate = null,
185 185
         array $customSearch = [],
186 186
         int $limit = 0
187
-    ): array|QueryResultInterface {
187
+    ): array | QueryResultInterface {
188 188
         $event = new IndexRepositoryFindBySearchEvent($startDate, $endDate, $customSearch, $this->indexTypes, false);
189 189
         $this->eventDispatcher->dispatch($event);
190 190
 
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     /**
270 270
      * Find Past Events.
271 271
      */
272
-    public function findByPast(int $limit, string $sort, string $listStartTime = '0'): array|QueryResultInterface
272
+    public function findByPast(int $limit, string $sort, string $listStartTime = '0'): array | QueryResultInterface
273 273
     {
274 274
         $now = DateTimeUtility::getNow();
275 275
         if ('now' !== $listStartTime) {
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     /**
296 296
      * Find by Index UIDs.
297 297
      */
298
-    public function findByUids(array $uids): array|QueryResultInterface
298
+    public function findByUids(array $uids): array | QueryResultInterface
299 299
     {
300 300
         $query = $this->createQuery();
301 301
         $query->setOrderings($this->getSorting(QueryInterface::ORDER_ASCENDING));
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
         int $limit = 100,
317 317
         string $sort = QueryInterface::ORDER_ASCENDING,
318 318
         bool $useIndexTime = false
319
-    ): array|QueryResultInterface {
319
+    ): array | QueryResultInterface {
320 320
         if (!$future && !$past) {
321 321
             return [];
322 322
         }
@@ -340,8 +340,7 @@  discard block
 block discarded – undo
340 340
 
341 341
         $query->setLimit($limit);
342 342
         $sort = QueryInterface::ORDER_ASCENDING === $sort ?
343
-            QueryInterface::ORDER_ASCENDING :
344
-            QueryInterface::ORDER_DESCENDING;
343
+            QueryInterface::ORDER_ASCENDING : QueryInterface::ORDER_DESCENDING;
345 344
         $query->setOrderings($this->getSorting($sort));
346 345
 
347 346
         return $this->matchAndExecute($query, $constraints);
@@ -356,7 +355,7 @@  discard block
 block discarded – undo
356 355
         bool $past = false,
357 356
         int $limit = 100,
358 357
         string $sort = QueryInterface::ORDER_ASCENDING
359
-    ): array|QueryResultInterface {
358
+    ): array | QueryResultInterface {
360 359
         if (!$future && !$past) {
361 360
             return [];
362 361
         }
@@ -384,8 +383,7 @@  discard block
 block discarded – undo
384 383
 
385 384
         $query->setLimit($limit);
386 385
         $sort = QueryInterface::ORDER_ASCENDING === $sort ?
387
-            QueryInterface::ORDER_ASCENDING :
388
-            QueryInterface::ORDER_DESCENDING;
386
+            QueryInterface::ORDER_ASCENDING : QueryInterface::ORDER_DESCENDING;
389 387
         $query->setOrderings($this->getSorting($sort));
390 388
 
391 389
         return $this->matchAndExecute($query, $constraints);
@@ -394,7 +392,7 @@  discard block
 block discarded – undo
394 392
     /**
395 393
      * find Year.
396 394
      */
397
-    public function findYear(int $year): array|QueryResultInterface
395
+    public function findYear(int $year): array | QueryResultInterface
398 396
     {
399 397
         $startTime = (new \DateTimeImmutable('midnight'))->setDate($year, 1, 1);
400 398
         $endTime = $startTime->modify('+1 year -1 second');
@@ -405,7 +403,7 @@  discard block
 block discarded – undo
405 403
     /**
406 404
      * find quarter.
407 405
      */
408
-    public function findQuarter(int $year, int $quarter): array|QueryResultInterface
406
+    public function findQuarter(int $year, int $quarter): array | QueryResultInterface
409 407
     {
410 408
         $startMonth = 1 + (3 * ($quarter - 1));
411 409
         $startTime = (new \DateTimeImmutable('midnight'))->setDate($year, $startMonth, 1);
@@ -417,7 +415,7 @@  discard block
 block discarded – undo
417 415
     /**
418 416
      * find Month.
419 417
      */
420
-    public function findMonth(int $year, int $month): array|QueryResultInterface
418
+    public function findMonth(int $year, int $month): array | QueryResultInterface
421 419
     {
422 420
         $startTime = (new \DateTimeImmutable('midnight'))->setDate($year, $month, 1);
423 421
         $endTime = $startTime->modify('+1 month -1 second');
@@ -428,7 +426,7 @@  discard block
 block discarded – undo
428 426
     /**
429 427
      * find Week.
430 428
      */
431
-    public function findWeek(int $year, int $week, int $weekStart = 1): array|QueryResultInterface
429
+    public function findWeek(int $year, int $week, int $weekStart = 1): array | QueryResultInterface
432 430
     {
433 431
         $startTime = \DateTimeImmutable::createFromMutable(
434 432
             DateTimeUtility::convertWeekYear2DayMonthYear($week, $year, $weekStart)
@@ -441,7 +439,7 @@  discard block
 block discarded – undo
441 439
     /**
442 440
      * find day.
443 441
      */
444
-    public function findDay(int $year, int $month, int $day): array|QueryResultInterface
442
+    public function findDay(int $year, int $month, int $day): array | QueryResultInterface
445 443
     {
446 444
         $startTime = (new \DateTimeImmutable('midnight'))->setDate($year, $month, $day);
447 445
         $endTime = $startTime->modify('+1 day -1 second');
@@ -479,7 +477,7 @@  discard block
 block discarded – undo
479 477
     public function findByTimeSlot(
480 478
         ?\DateTimeInterface $startTime,
481 479
         \DateTimeInterface $endTime = null
482
-    ): array|QueryResultInterface {
480
+    ): array | QueryResultInterface {
483 481
         $query = $this->createQuery();
484 482
         $constraints = $this->getDefaultConstraints($query);
485 483
         $this->addTimeFrameConstraints($constraints, $query, $startTime, $endTime);
@@ -493,7 +491,7 @@  discard block
 block discarded – undo
493 491
     /**
494 492
      * Find all indices by the given Event model.
495 493
      */
496
-    public function findByEvent(DomainObjectInterface $event): array|QueryResultInterface
494
+    public function findByEvent(DomainObjectInterface $event): array | QueryResultInterface
497 495
     {
498 496
         $query = $this->createQuery();
499 497
 
@@ -522,8 +520,7 @@  discard block
 block discarded – undo
522 520
             ->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
523 521
 
524 522
         return isset($frameworkConfig['persistence']['storagePid']) ?
525
-            GeneralUtility::intExplode(',', $frameworkConfig['persistence']['storagePid']) :
526
-            [];
523
+            GeneralUtility::intExplode(',', $frameworkConfig['persistence']['storagePid']) : [];
527 524
     }
528 525
 
529 526
     /**
Please login to merge, or discard this patch.