@@ -115,7 +115,7 @@ |
||
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 | ) |
@@ -104,7 +104,7 @@ |
||
104 | 104 | { |
105 | 105 | static $tables; |
106 | 106 | if (!\is_array($tables)) { |
107 | - $tables = array_map(static function ($config) { |
|
107 | + $tables = array_map(static function($config) { |
|
108 | 108 | return $config['tableName']; |
109 | 109 | }, Register::getRegister()); |
110 | 110 | } |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | /** |
171 | 171 | * Reset the DateTime. |
172 | 172 | */ |
173 | - public static function resetTime(string|\DateTimeInterface $dateTime = null): \DateTime |
|
173 | + public static function resetTime(string | \DateTimeInterface $dateTime = null): \DateTime |
|
174 | 174 | { |
175 | 175 | $dateTime = self::normalizeDateTimeSingle($dateTime); |
176 | 176 | $dateTime->setTime(0, 0); |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * @throws \Exception |
185 | 185 | */ |
186 | 186 | public static function normalizeDateTimeSingle( |
187 | - int|string|\DateTimeInterface $dateInformation = null, |
|
187 | + int | string | \DateTimeInterface $dateInformation = null, |
|
188 | 188 | \DateTimeZone $timezone = null |
189 | 189 | ): \DateTime { |
190 | 190 | $timezone = $timezone ?? self::getTimeZone(); |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | * |
234 | 234 | * @see resetTime() |
235 | 235 | */ |
236 | - public static function getDayStart(string|\DateTimeInterface $dateInformation): \DateTime |
|
236 | + public static function getDayStart(string | \DateTimeInterface $dateInformation): \DateTime |
|
237 | 237 | { |
238 | 238 | return self::resetTime($dateInformation); |
239 | 239 | } |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | /** |
242 | 242 | * Get the End of the given day. |
243 | 243 | */ |
244 | - public static function getDayEnd(string|\DateTimeInterface $dateInformation): \DateTime |
|
244 | + public static function getDayEnd(string | \DateTimeInterface $dateInformation): \DateTime |
|
245 | 245 | { |
246 | 246 | $dateTime = self::resetTime($dateInformation); |
247 | 247 | $dateTime->setTime(23, 59, 59); |
@@ -15,7 +15,7 @@ |
||
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. |
@@ -28,7 +28,7 @@ |
||
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 */ |