Skip to content

Commit 2ce81b7

Browse files
committed
Fix CS
1 parent bcd94f1 commit 2ce81b7

File tree

14 files changed

+45
-45
lines changed

14 files changed

+45
-45
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ use Tarantool\Queue\Queue;
7272
$queue = new Queue($client, 'foobar');
7373
```
7474

75-
where `$client` is either an instance of the Tarantool class from the [pecl extension](https://github.com/tarantool/tarantool-php)
75+
where `$client` is either an instance of the `Tarantool` class from the [pecl extension](https://github.com/tarantool/tarantool-php)
7676
or an instance of `Tarantool\Client\Client` from the [pure PHP package](https://github.com/tarantool-php/client).
7777

7878

src/Options.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
declare(strict_types=1);
4-
5-
/*
3+
/**
64
* This file is part of the Tarantool Queue package.
75
*
86
* (c) Eugene Leonovich <gen.work@gmail.com>
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace Tarantool\Queue;
1515

1616
final class Options

src/Queue.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
declare(strict_types=1);
4-
5-
/*
3+
/**
64
* This file is part of the Tarantool Queue package.
75
*
86
* (c) Eugene Leonovich <gen.work@gmail.com>
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace Tarantool\Queue;
1515

1616
use Tarantool\Client\Client;

src/States.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
declare(strict_types=1);
4-
5-
/*
3+
/**
64
* This file is part of the Tarantool Queue package.
75
*
86
* (c) Eugene Leonovich <gen.work@gmail.com>
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace Tarantool\Queue;
1515

1616
final class States

src/TarantoolAdapter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
declare(strict_types=1);
4-
5-
/*
3+
/**
64
* This file is part of the Tarantool Queue package.
75
*
86
* (c) Eugene Leonovich <gen.work@gmail.com>
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace Tarantool\Queue;
1515

1616
final class TarantoolAdapter

src/Task.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
declare(strict_types=1);
4-
5-
/*
3+
/**
64
* This file is part of the Tarantool Queue package.
75
*
86
* (c) Eugene Leonovich <gen.work@gmail.com>
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace Tarantool\Queue;
1515

1616
final class Task

tests/Integration/FifoQueueTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
declare(strict_types=1);
4-
5-
/*
3+
/**
64
* This file is part of the Tarantool Queue package.
75
*
86
* (c) Eugene Leonovich <gen.work@gmail.com>
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace Tarantool\Queue\Tests\Integration;
1515

1616
final class FifoQueueTest extends QueueTest

tests/Integration/FifottlQueueTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
declare(strict_types=1);
4-
5-
/*
3+
/**
64
* This file is part of the Tarantool Queue package.
75
*
86
* (c) Eugene Leonovich <gen.work@gmail.com>
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace Tarantool\Queue\Tests\Integration;
1515

1616
final class FifottlQueueTest extends QueueTest

tests/Integration/QueueTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
declare(strict_types=1);
4-
5-
/*
3+
/**
64
* This file is part of the Tarantool Queue package.
75
*
86
* (c) Eugene Leonovich <gen.work@gmail.com>
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace Tarantool\Queue\Tests\Integration;
1515

1616
use PHPUnit\Framework\TestCase;
@@ -412,32 +412,32 @@ public function provideFailureCallbackData() : iterable
412412
];
413413
}
414414

415-
protected static function assertTaskInstance($task) : void
415+
final protected static function assertTaskInstance($task) : void
416416
{
417417
self::assertInstanceOf(Task::class, $task);
418418
}
419419

420-
protected static function assertTask(Task $task, int $expectedId, string $expectedState, $expectedData) : void
420+
final protected static function assertTask(Task $task, int $expectedId, string $expectedState, $expectedData) : void
421421
{
422422
self::assertSame($expectedId, $task->getId());
423423
self::assertSame($expectedState, $task->getState());
424424
self::assertSame($expectedData, $task->getData());
425425
}
426426

427-
protected static function assertSameArray(array $expected, array $actual) : void
427+
final protected static function assertSameArray(array $expected, array $actual) : void
428428
{
429429
ksort($expected);
430430
ksort($actual);
431431

432432
self::assertSame($expected, $actual);
433433
}
434434

435-
protected function getQueue() : Queue
435+
final protected function getQueue() : Queue
436436
{
437437
return $this->queue;
438438
}
439439

440-
protected function getTubeType() : string
440+
final protected function getTubeType() : string
441441
{
442442
$class = new \ReflectionClass($this);
443443
$type = str_replace('QueueTest', '', $class->getShortName());

tests/Integration/Ttl.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
declare(strict_types=1);
4-
5-
/*
3+
/**
64
* This file is part of the Tarantool Queue package.
75
*
86
* (c) Eugene Leonovich <gen.work@gmail.com>
@@ -11,6 +9,8 @@
119
* file that was distributed with this source code.
1210
*/
1311

12+
declare(strict_types=1);
13+
1414
namespace Tarantool\Queue\Tests\Integration;
1515

1616
use Tarantool\Queue\Queue;

0 commit comments

Comments
 (0)