mirror of
https://github.com/predis/predis.git
synced 2026-08-30 12:15:03 +00:00
Codestyle fixes
This commit is contained in:
@@ -25,6 +25,7 @@ return (new PhpCsFixer\Config)
|
||||
'single_line_throw' => false,
|
||||
'concat_space' => ['spacing' => 'one'],
|
||||
'increment_style' => false,
|
||||
'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['array_destructuring', 'arrays']]
|
||||
])
|
||||
->setFinder(
|
||||
PhpCsFixer\Finder::create()
|
||||
|
||||
@@ -174,7 +174,7 @@ class CommandTest extends PredisTestCase
|
||||
*/
|
||||
public function testSerializeCommand(): void
|
||||
{
|
||||
$command = new class() extends Command {
|
||||
$command = new class extends Command {
|
||||
public function getId()
|
||||
{
|
||||
return 'Test';
|
||||
|
||||
@@ -20,7 +20,7 @@ class PrefixableCommandTest extends PredisTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->testClass = new class() extends PrefixableCommand {
|
||||
$this->testClass = new class extends PrefixableCommand {
|
||||
public function getId()
|
||||
{
|
||||
return 'test';
|
||||
|
||||
@@ -26,7 +26,7 @@ class BZPOPBaseTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testCommand = new class() extends BZPOPBase {
|
||||
$this->testCommand = new class extends BZPOPBase {
|
||||
public function getId(): string
|
||||
{
|
||||
return 'test';
|
||||
|
||||
@@ -22,7 +22,7 @@ class AggregateTest extends PredisTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Aggregate;
|
||||
|
||||
public static $aggregateArgumentPositionOffset = 0;
|
||||
|
||||
@@ -21,7 +21,7 @@ class BitByteTest extends PredisTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use BitByte;
|
||||
|
||||
public function getId()
|
||||
|
||||
@@ -24,7 +24,7 @@ class BucketSizeTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use BucketSize;
|
||||
|
||||
public static $bucketSizeArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class CapacityTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Capacity;
|
||||
|
||||
public static $capacityArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class ErrorTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Error;
|
||||
|
||||
public static $errorArgumentPositionOffset = 0;
|
||||
|
||||
@@ -22,7 +22,7 @@ class ExpansionTest extends PredisTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Expansion;
|
||||
|
||||
public static $expansionArgumentPositionOffset = 0;
|
||||
|
||||
@@ -23,7 +23,7 @@ class ItemsTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Items;
|
||||
|
||||
public static $itemsArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class MaxIterationsTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use MaxIterations;
|
||||
|
||||
public static $maxIterationsArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class NoCreateTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use NoCreate;
|
||||
|
||||
public static $noCreateArgumentPositionOffset = 0;
|
||||
|
||||
@@ -23,7 +23,7 @@ class ByArgumentTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use ByArgument;
|
||||
|
||||
public static $byArgumentPositionOffset = 0;
|
||||
|
||||
@@ -26,7 +26,7 @@ class GeoByTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use GeoBy;
|
||||
|
||||
public function getId()
|
||||
|
||||
@@ -25,7 +25,7 @@ class ByLexByScoreTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use ByLexByScore;
|
||||
|
||||
public static $byLexByScoreArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class CountTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Count;
|
||||
|
||||
public static $countArgumentPositionOffset = 2;
|
||||
|
||||
@@ -24,7 +24,7 @@ class DbTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use DB;
|
||||
|
||||
public static $dbArgumentPositionOffset = 0;
|
||||
|
||||
@@ -26,7 +26,7 @@ class GeoFromTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use GeoFrom;
|
||||
|
||||
public function getId()
|
||||
|
||||
@@ -24,7 +24,7 @@ class GetTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Get;
|
||||
|
||||
public static $getArgumentPositionOffset = 0;
|
||||
|
||||
@@ -22,7 +22,7 @@ class IndentTest extends PredisTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Indent;
|
||||
|
||||
public static $indentArgumentPositionOffset = 0;
|
||||
|
||||
@@ -22,7 +22,7 @@ class NewlineTest extends PredisTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Newline;
|
||||
|
||||
public static $newlineArgumentPositionOffset = 0;
|
||||
|
||||
@@ -22,7 +22,7 @@ class NxXxArgumentTest extends PredisTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use NxXxArgument;
|
||||
|
||||
public static $nxXxArgumentPositionOffset = 0;
|
||||
|
||||
@@ -22,7 +22,7 @@ class SpaceTest extends PredisTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Space;
|
||||
|
||||
public static $spaceArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class KeysTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Keys;
|
||||
|
||||
public static $keysArgumentPositionOffset = 0;
|
||||
|
||||
@@ -22,7 +22,7 @@ class LeftRightTest extends PredisTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use LeftRight;
|
||||
|
||||
public static $leftRightArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class LimitObjectTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use LimitObject;
|
||||
|
||||
public function getId()
|
||||
|
||||
@@ -24,7 +24,7 @@ class LimitTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Limit;
|
||||
|
||||
public static $limitArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class MinMaxModifierTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use MinMaxModifier;
|
||||
|
||||
public function getId()
|
||||
|
||||
@@ -23,7 +23,7 @@ class ReplaceTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Replace;
|
||||
|
||||
public function getId()
|
||||
|
||||
@@ -24,7 +24,7 @@ class RevTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Rev;
|
||||
|
||||
public static $revArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class StoredistTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Storedist;
|
||||
|
||||
public static $storeDistArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class TimeoutTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Timeout;
|
||||
|
||||
public static $timeoutArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class ServerToTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use ServerTo;
|
||||
|
||||
public static $toArgumentPositionOffset = 0;
|
||||
|
||||
@@ -22,7 +22,7 @@ class WeightsTest extends PredisTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use Weights;
|
||||
|
||||
public static $weightsArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class WithCoordTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use WithCoord;
|
||||
|
||||
public static $withCoordArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class WithDistTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use WithDist;
|
||||
|
||||
public static $withDistArgumentPositionOffset = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ class WithHashTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use WithHash;
|
||||
|
||||
public static $withHashArgumentPositionOffset = 0;
|
||||
|
||||
@@ -26,7 +26,7 @@ class WithScoresTest extends PredisTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->testClass = new class() extends RedisCommand {
|
||||
$this->testClass = new class extends RedisCommand {
|
||||
use WithScores;
|
||||
|
||||
public function getId()
|
||||
|
||||
@@ -17,11 +17,11 @@ use Predis\ClientException;
|
||||
use Predis\Command\RawCommand;
|
||||
use Predis\NotSupportedException;
|
||||
use Predis\Response\Error as ErrorResponse;
|
||||
use PredisTestCase;
|
||||
use Relay\Relay;
|
||||
use Predis\Response\ErrorInterface as ErrorResponseInterface;
|
||||
use PredisTestCase;
|
||||
use ReflectionClass;
|
||||
use Relay\Exception as RelayException;
|
||||
use Relay\Relay;
|
||||
|
||||
/**
|
||||
* @group ext-relay
|
||||
|
||||
Reference in New Issue
Block a user