Skip to content

Commit

Permalink
Fixes cs
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed Jun 22, 2022
1 parent b6db9c3 commit 1eb90a8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/RoadRunnerMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public static function detect(EnvironmentInterface $environment): self
{
$value = $environment->getMode();

return (self::tryFrom($value) ?? self::Unknown);
return self::tryFrom($value) ?? self::Unknown;
}
}
2 changes: 0 additions & 2 deletions tests/src/Queue/DispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
use Spiral\Queue\Failed\FailedJobHandlerInterface;
use Spiral\Queue\HandlerInterface;
use Spiral\Queue\HandlerRegistryInterface;
use Spiral\RoadRunner\Environment;
use Spiral\RoadRunner\EnvironmentInterface;
use Spiral\RoadRunner\Jobs\ConsumerInterface;
use Spiral\RoadRunner\Jobs\Task\ReceivedTaskInterface;
use Spiral\RoadRunnerBridge\Queue\Dispatcher;
Expand Down
4 changes: 2 additions & 2 deletions tests/src/RoadRunnerModeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ protected function setUp(): void
*/
public function testDetectMode(string $mode, RoadRunnerMode $expected): void
{
$this->getContainer()->bind(EnvironmentInterface::class, static fn() => new Environment([
'RR_MODE' => $mode
$this->getContainer()->bind(EnvironmentInterface::class, static fn () => new Environment([
'RR_MODE' => $mode,
]));

$this->assertSame($expected, $this->getContainer()->get(RoadRunnerMode::class));
Expand Down
2 changes: 0 additions & 2 deletions tests/src/Tcp/DispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
use Spiral\App\Tcp\TestInterceptor;
use Spiral\App\Tcp\TestService;
use Spiral\Boot\FinalizerInterface;
use Spiral\RoadRunner\Environment;
use Spiral\RoadRunner\EnvironmentInterface;
use Spiral\RoadRunner\Payload;
use Spiral\RoadRunner\Tcp\TcpWorkerInterface;
use Spiral\RoadRunner\WorkerInterface;
Expand Down

0 comments on commit 1eb90a8

Please sign in to comment.