Skip to content

Commit

Permalink
Move options into their own namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Aug 20, 2023
1 parent 3838a6d commit e0e9214
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Amp\Redis\Command;
namespace Amp\Redis\Command\Option;

final class LexBoundary
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Amp\Redis\Command;
namespace Amp\Redis\Command\Option;

final class RangeOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Amp\Redis\Command;
namespace Amp\Redis\Command\Option;

final class RedisSetOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Amp\Redis\Command;
namespace Amp\Redis\Command\Option;

final class RedisSortOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types=1);

namespace Amp\Redis\Command;
namespace Amp\Redis\Command\Option;

final class ScoreBoundary
{
Expand Down
1 change: 1 addition & 0 deletions src/Command/RedisCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use Amp\ForbidCloning;
use Amp\ForbidSerialization;
use Amp\Redis\Command\Option\RedisSetOptions;
use Amp\Redis\Protocol\QueryException;
use Amp\Redis\RedisClient;
use function Amp\Redis\Internal;
Expand Down
1 change: 1 addition & 0 deletions src/Command/RedisList.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use Amp\ForbidCloning;
use Amp\ForbidSerialization;
use Amp\Redis\Command\Option\RedisSortOptions;
use Amp\Redis\RedisClient;

final class RedisList
Expand Down
1 change: 1 addition & 0 deletions src/Command/RedisSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use Amp\ForbidCloning;
use Amp\ForbidSerialization;
use Amp\Redis\Command\Option\RedisSortOptions;
use Amp\Redis\RedisClient;

final class RedisSet
Expand Down
4 changes: 4 additions & 0 deletions src/Command/RedisSortedSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use Amp\ForbidCloning;
use Amp\ForbidSerialization;
use Amp\Redis\Command\Option\LexBoundary;
use Amp\Redis\Command\Option\RangeOptions;
use Amp\Redis\Command\Option\RedisSortOptions;
use Amp\Redis\Command\Option\ScoreBoundary;
use Amp\Redis\RedisClient;
use function Amp\Redis\Internal\toMap;

Expand Down
2 changes: 1 addition & 1 deletion src/RedisCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use Amp\Cache\CacheException;
use Amp\ForbidCloning;
use Amp\ForbidSerialization;
use Amp\Redis\Command\Option\RedisSetOptions;
use Amp\Redis\Command\RedisCommands;
use Amp\Redis\Command\RedisSetOptions;
use Amp\Serialization\NativeSerializer;
use Amp\Serialization\Serializer;

Expand Down
2 changes: 1 addition & 1 deletion test/RedisListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Amp\Redis;

use Amp\Redis\Command\RedisSortOptions;
use Amp\Redis\Command\Option\RedisSortOptions;

class RedisListTest extends IntegrationTest
{
Expand Down
2 changes: 1 addition & 1 deletion test/RedisSetOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Amp\Redis;

use Amp\Redis\Command\RedisSetOptions;
use Amp\Redis\Command\Option\RedisSetOptions;
use PHPUnit\Framework\TestCase;

class RedisSetOptionsTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/RedisSortOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Amp\Redis;

use Amp\Redis\Command\RedisSortOptions;
use Amp\Redis\Command\Option\RedisSortOptions;
use PHPUnit\Framework\TestCase;

class RedisSortOptionsTest extends TestCase
Expand Down
6 changes: 3 additions & 3 deletions test/RedisSortedSetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Amp\Redis;

use Amp\Redis\Command\LexBoundary;
use Amp\Redis\Command\RangeOptions;
use Amp\Redis\Command\ScoreBoundary;
use Amp\Redis\Command\Option\LexBoundary;
use Amp\Redis\Command\Option\RangeOptions;
use Amp\Redis\Command\Option\ScoreBoundary;

class RedisSortedSetTest extends IntegrationTest
{
Expand Down

0 comments on commit e0e9214

Please sign in to comment.