Skip to content

Commit

Permalink
fix: code style
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Dec 10, 2022
1 parent d397938 commit f120741
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 7 deletions.
Expand Up @@ -6,5 +6,4 @@

class InvalidDebugSubcommandException extends \InvalidArgumentException
{

}
Expand Up @@ -6,5 +6,4 @@

class InvalidExistentialModifierException extends \InvalidArgumentException
{

}
1 change: 0 additions & 1 deletion src/RedisJson/Exceptions/InvalidNoEscapeValueException.php
Expand Up @@ -6,5 +6,4 @@

class InvalidNoEscapeValueException extends \InvalidArgumentException
{

}
1 change: 0 additions & 1 deletion src/RedisJson/Exceptions/RedisJsonModuleNotFound.php
Expand Up @@ -6,5 +6,4 @@

class RedisJsonModuleNotFound extends \InvalidArgumentException
{

}
Expand Up @@ -6,5 +6,4 @@

class RedisJsonModuleVersionNotSupported extends \InvalidArgumentException
{

}
3 changes: 2 additions & 1 deletion src/RedisJson/RedisJson.php
Expand Up @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion tests/_support/Helper/Unit.php
Expand Up @@ -7,5 +7,4 @@

class Unit extends \Codeception\Module
{

}

0 comments on commit f120741

Please sign in to comment.