Completed
Pull Request — master (#823)
by Hannes
16s
created
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/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/Utility/HelperUtility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * Get the query for the given class name oder object.
30 30
      */
31
-    public static function getQuery(string|object $objectName): QueryInterface
31
+    public static function getQuery(string | object $objectName): QueryInterface
32 32
     {
33 33
         $objectName = \is_object($objectName) ? $objectName::class : $objectName;
34 34
         /** @var PersistenceManagerInterface $manager */
Please login to merge, or discard this patch.
Classes/ViewHelpers/IndicesByObjectViewHelper.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
     /**
53 53
      * Render method.
54 54
      */
55
-    public function render(): array|QueryResultInterface
55
+    public function render(): array | QueryResultInterface
56 56
     {
57 57
         /** @var AbstractEntity $object */
58 58
         $object = $this->arguments['object'];
Please login to merge, or discard this patch.
Classes/ViewHelpers/IndexTraversingViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     /**
49 49
      * Render method.
50 50
      */
51
-    public function render(): array|QueryResultInterface
51
+    public function render(): array | QueryResultInterface
52 52
     {
53 53
         return $this->indexRepository->findByTraversing(
54 54
             $this->arguments['index'],
Please login to merge, or discard this patch.