Skip to content

Commit

Permalink
Code style cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsunet committed Jan 25, 2023
1 parent 2af447c commit 1070e1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Domain/Model/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function request(string $method, string $path = null, array $arguments =
public function create(): void
{
$indexConfiguration = $this->getConfiguration() ?? [];
$indexCreateObject = is_array($indexConfiguration) ? array_filter($indexConfiguration, static fn($key) => in_array($key, self::$allowedIndexCreateKeys, true), ARRAY_FILTER_USE_KEY) : [];
$indexCreateObject = array_filter($indexConfiguration, static fn($key) => in_array($key, self::$allowedIndexCreateKeys, true), ARRAY_FILTER_USE_KEY);
$this->request('PUT', null, [], $this->encodeRequestBody($indexCreateObject));
}

Expand Down Expand Up @@ -301,7 +301,7 @@ private function prefixName(): string

private function encodeRequestBody(array $content): string
{
if (empty($content)) {
if ($content === []) {
return '';
}

Expand Down

0 comments on commit 1070e1b

Please sign in to comment.