Skip to content

Commit

Permalink
Fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
waltertamboer committed Oct 18, 2020
1 parent 91a23ee commit 96ea18c
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;
use Throwable;

use function assert;
use function call_user_func;
use function json_encode;
use function memory_get_usage;
use function sprintf;
use function time;
use function usleep;

use const JSON_UNESCAPED_SLASHES;

final class Client implements ClientInterface
Expand Down
1 change: 1 addition & 0 deletions src/ClientOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace ChessZebra\JobSystem;

use ChessZebra\JobSystem\Worker\RescheduleStrategy\RescheduleStrategyInterface;

use const PHP_INT_MAX;

final class ClientOptions
Expand Down
5 changes: 2 additions & 3 deletions src/Context/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use ChessZebra\JobSystem\Storage\StorageInterface;
use ChessZebra\JobSystem\Storage\StoredJobInterface;
use Psr\Log\LoggerInterface;

use function array_key_exists;

/**
Expand Down Expand Up @@ -56,9 +57,7 @@ final class Context implements ContextInterface
*/
private $stats;

/**
* @var int
*/
/** @var int */
private $nextInterval;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Storage/InMemory/DelayedJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace ChessZebra\JobSystem\Storage\InMemory;

use ChessZebra\JobSystem\Storage\StoredJobInterface;

use function time;

final class DelayedJob
Expand Down
1 change: 1 addition & 0 deletions src/Storage/InMemoryStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use ChessZebra\JobSystem\Storage\InMemory\DelayedJob;
use ChessZebra\JobSystem\Storage\InMemory\StoredJob;
use SplQueue;

use function assert;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Storage/Pheanstalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use ChessZebra\JobSystem\Storage\Pheanstalk\StoredJob;
use Pheanstalk\Contract\PheanstalkInterface;
use Pheanstalk\Job;

use function assert;
use function json_encode;
use function microtime;
Expand Down
1 change: 1 addition & 0 deletions src/Storage/Pheanstalk/StoredJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Pheanstalk\Contract\PheanstalkInterface;
use Pheanstalk\Job as PheanstalkJob;
use RuntimeException;

use function array_key_exists;
use function json_decode;
use function sprintf;
Expand Down
2 changes: 2 additions & 0 deletions tests/ClientOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

use ChessZebra\JobSystem\Worker\RescheduleStrategy\RescheduleStrategyInterface;
use PHPUnit\Framework\TestCase;

use function assert;

use const PHP_INT_MAX;

final class ClientOptionsTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/Storage/Pheanstalk/StoredJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Pheanstalk\Job;
use PHPUnit\Framework\TestCase;
use RuntimeException;

use function json_encode;

final class StoredJobTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Storage/PheanstalkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

namespace ChessZebra\JobSystem\Storage;

use ArrayObject;
use ChessZebra\JobSystem\Job\Job;
use ChessZebra\JobSystem\Storage\Pheanstalk\StoredJob;
use Pheanstalk\Contract\PheanstalkInterface;
use Pheanstalk\Contract\ResponseInterface;
use Pheanstalk\Job as PheanstalkJob;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;

use function json_encode;

final class PheanstalkTest extends TestCase
Expand Down

0 comments on commit 96ea18c

Please sign in to comment.