mirror of
https://github.com/predis/predis.git
synced 2026-10-25 13:17:41 +00:00
Codestyle updates (#1485)
This commit is contained in:
committed by
GitHub
parent
8fbd34c6b3
commit
1726db0f47
@@ -108,7 +108,7 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run Redis cluster
|
||||
uses: isbang/compose-action@v1.4.1
|
||||
uses: hoverkraft-tech/compose-action@v2.0.1
|
||||
with:
|
||||
compose-file: .github/workflows/cluster/docker-compose.yml
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -91,7 +91,7 @@ class FTCONFIG_Test extends PredisCommandTestCase
|
||||
* @group connected
|
||||
* @group relay-resp3
|
||||
* @return void
|
||||
* @requiresRediSearchVersion >= 1.0.0
|
||||
* @requiresRedisVersion <= 7.3.0
|
||||
*/
|
||||
public function testSetGivenRediSearchConfigurationParameter(): void
|
||||
{
|
||||
@@ -104,7 +104,7 @@ class FTCONFIG_Test extends PredisCommandTestCase
|
||||
* @group connected
|
||||
* @group relay-resp3
|
||||
* @return void
|
||||
* @requiresRediSearchVersion >= 1.0.0
|
||||
* @requiresRedisVersion <= 7.3.0
|
||||
*/
|
||||
public function testGetReturnsGivenRediSearchConfigurationParameter(): void
|
||||
{
|
||||
@@ -118,7 +118,7 @@ class FTCONFIG_Test extends PredisCommandTestCase
|
||||
* @group connected
|
||||
* @group relay-resp3
|
||||
* @return void
|
||||
* @requiresRediSearchVersion >= 1.0.0
|
||||
* @requiresRedisVersion <= 7.3.0
|
||||
*/
|
||||
public function testHelpReturnsGivenRediSearchConfigurationDescription(): void
|
||||
{
|
||||
@@ -141,7 +141,7 @@ class FTCONFIG_Test extends PredisCommandTestCase
|
||||
* @group connected
|
||||
* @group relay-resp3
|
||||
* @return void
|
||||
* @requiresRediSearchVersion >= 1.0.0
|
||||
* @requiresRedisVersion <= 7.3.0
|
||||
*/
|
||||
public function testSetThrowsExceptionOnNonExistingOption(): void
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user