Skip to content

Commit 1070e1b

Browse files
committed
Code style cleanup
1 parent 2af447c commit 1070e1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Domain/Model/Index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function request(string $method, string $path = null, array $arguments =
192192
public function create(): void
193193
{
194194
$indexConfiguration = $this->getConfiguration() ?? [];
195-
$indexCreateObject = is_array($indexConfiguration) ? array_filter($indexConfiguration, static fn($key) => in_array($key, self::$allowedIndexCreateKeys, true), ARRAY_FILTER_USE_KEY) : [];
195+
$indexCreateObject = array_filter($indexConfiguration, static fn($key) => in_array($key, self::$allowedIndexCreateKeys, true), ARRAY_FILTER_USE_KEY);
196196
$this->request('PUT', null, [], $this->encodeRequestBody($indexCreateObject));
197197
}
198198

@@ -301,7 +301,7 @@ private function prefixName(): string
301301

302302
private function encodeRequestBody(array $content): string
303303
{
304-
if (empty($content)) {
304+
if ($content === []) {
305305
return '';
306306
}
307307

0 commit comments

Comments
 (0)