Skip to content

Commit

Permalink
cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Nov 28, 2021
1 parent 066e54d commit 25558db
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/RedisJson/Command/ArrayIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static function createCommandWithArguments(
return new self(
$key,
new Path($path),
json_encode($json),
json_encode($json, JSON_THROW_ON_ERROR),
$start,
$stop
);
Expand Down
1 change: 0 additions & 1 deletion src/RedisJson/Command/ArrayPop.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ private function __construct(
) {
$this->arguments = [$key, $path->getPath(), $index];
$this->responseCallback = static function ($result) use ($path) {
var_dump($result);
return RedisJson::getArrayResult($result, [$path]);
};
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Module/RedisJsonJsonPathSyntaxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public function shouldRunReJSONDebugCommandsSuccessfully(): void
*/
public function shouldFailForInvalidDebugCommand(): void
{
$this->expectException(\Redislabs\Module\RedisJSON\Exceptions\InvalidDebugSubcommandException::class);
$this->expectException(\Redislabs\Module\RedisJson\Exceptions\InvalidDebugSubcommandException::class);
/**
* @var ReJSON $jsonModule
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Redislabs\Module\ReJSON\ReJSON;
use Redislabs\Module\RedisJson\RedisJson;

class RedisJsonTest extends \Codeception\Test\Unit
class RedisJsonLegacyPathTest extends \Codeception\Test\Unit
{
/**
* @var \RedislabsModulesTest\UnitTester
Expand Down Expand Up @@ -57,7 +57,7 @@ public function shouldFailForInvalidReJSONCommand(): void
*/
public function shouldFailReJSONCommandWhenInvalidExistentialModifierGiven(): void
{
$this->expectException(\Redislabs\Module\RedisJSON\Exceptions\InvalidExistentialModifierException::class);
$this->expectException(\Redislabs\Module\RedisJson\Exceptions\InvalidExistentialModifierException::class);
$this->reJsonModule->set('test', '.', ['ttt' => ['deneme' => 1]], 'NN');
}

Expand Down Expand Up @@ -247,7 +247,7 @@ public function shouldRunReJSONDebugCommandsSuccessfully(): void
*/
public function shouldFailForInvalidDebugCommand(): void
{
$this->expectException(\Redislabs\Module\RedisJSON\Exceptions\InvalidDebugSubcommandException::class);
$this->expectException(\Redislabs\Module\RedisJson\Exceptions\InvalidDebugSubcommandException::class);
/**
* @var ReJSON $jsonModule
*/
Expand Down

0 comments on commit 25558db

Please sign in to comment.