diff --git a/src/RedisJson/Exceptions/InvalidDebugSubcommandException.php b/src/RedisJson/Exceptions/InvalidDebugSubcommandException.php index c0501d5..4b71cf8 100644 --- a/src/RedisJson/Exceptions/InvalidDebugSubcommandException.php +++ b/src/RedisJson/Exceptions/InvalidDebugSubcommandException.php @@ -6,5 +6,4 @@ class InvalidDebugSubcommandException extends \InvalidArgumentException { - } diff --git a/src/RedisJson/Exceptions/InvalidExistentialModifierException.php b/src/RedisJson/Exceptions/InvalidExistentialModifierException.php index 2731a20..ecab7f5 100644 --- a/src/RedisJson/Exceptions/InvalidExistentialModifierException.php +++ b/src/RedisJson/Exceptions/InvalidExistentialModifierException.php @@ -6,5 +6,4 @@ class InvalidExistentialModifierException extends \InvalidArgumentException { - } diff --git a/src/RedisJson/Exceptions/InvalidNoEscapeValueException.php b/src/RedisJson/Exceptions/InvalidNoEscapeValueException.php index 816973a..16398fb 100644 --- a/src/RedisJson/Exceptions/InvalidNoEscapeValueException.php +++ b/src/RedisJson/Exceptions/InvalidNoEscapeValueException.php @@ -6,5 +6,4 @@ class InvalidNoEscapeValueException extends \InvalidArgumentException { - } diff --git a/src/RedisJson/Exceptions/RedisJsonModuleNotFound.php b/src/RedisJson/Exceptions/RedisJsonModuleNotFound.php index 233ee29..b7e9193 100644 --- a/src/RedisJson/Exceptions/RedisJsonModuleNotFound.php +++ b/src/RedisJson/Exceptions/RedisJsonModuleNotFound.php @@ -6,5 +6,4 @@ class RedisJsonModuleNotFound extends \InvalidArgumentException { - } diff --git a/src/RedisJson/Exceptions/RedisJsonModuleVersionNotSupported.php b/src/RedisJson/Exceptions/RedisJsonModuleVersionNotSupported.php index 00e6173..f194c35 100644 --- a/src/RedisJson/Exceptions/RedisJsonModuleVersionNotSupported.php +++ b/src/RedisJson/Exceptions/RedisJsonModuleVersionNotSupported.php @@ -6,5 +6,4 @@ class RedisJsonModuleVersionNotSupported extends \InvalidArgumentException { - } diff --git a/src/RedisJson/RedisJson.php b/src/RedisJson/RedisJson.php index a6c5ea5..cf7ba4e 100644 --- a/src/RedisJson/RedisJson.php +++ b/src/RedisJson/RedisJson.php @@ -233,7 +233,8 @@ public static function getResult(string $result, array $paths) if (count($paths) > 1) { $resultArray = []; foreach ($result as $itemKey => $itemValue) { - $resultArray[$itemKey] = (is_countable($itemValue) ? count($itemValue) : 0) === 1 ? $itemValue[0] : $itemValue; + $resultArray[$itemKey] = (is_countable($itemValue) ? count($itemValue) : 0) === 1 ? $itemValue[0] + : $itemValue; } return $resultArray; } diff --git a/tests/_support/Helper/Unit.php b/tests/_support/Helper/Unit.php index 1e373db..f2da372 100644 --- a/tests/_support/Helper/Unit.php +++ b/tests/_support/Helper/Unit.php @@ -7,5 +7,4 @@ class Unit extends \Codeception\Module { - }