From 3e61232a837ed23dd164c85f4d3eeb0bc535f061 Mon Sep 17 00:00:00 2001 From: Kirill Astakhov Date: Fri, 18 Nov 2022 10:01:18 +0200 Subject: [PATCH] Add discord link --- README.md | 3 ++- src/GRPC/ProtocCommandBuilder.php | 2 +- tests/src/GRPC/ProtocCommandBuilderTest.php | 14 +++++++------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b205100..9a6cf98 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ [![Codecov](https://codecov.io/gh/spiral/roadrunner-bridge/branch/master/graph/badge.svg)](https://codecov.io/gh/spiral/roadrunner-bridge/) [![Total Downloads](https://poser.pugx.org/spiral/roadrunner-bridge/downloads)](https://packagist.org/packages/spiral/roadrunner-bridge) [![StyleCI](https://github.styleci.io/repos/447581540/shield)](https://github.styleci.io/repos/447581540) + ## Requirements @@ -1324,7 +1325,7 @@ use Spiral\RoadRunnerBridge\Bootloader as RoadRunnerBridge; protected const LOAD = [ // ... - RoadRunnerBridge\CentrifugoBootloader::class, + RoadRunnerBridge\CentrifugoBootloader::class, // ... ]; ``` diff --git a/src/GRPC/ProtocCommandBuilder.php b/src/GRPC/ProtocCommandBuilder.php index f67f50f..3fcc39d 100644 --- a/src/GRPC/ProtocCommandBuilder.php +++ b/src/GRPC/ProtocCommandBuilder.php @@ -38,7 +38,7 @@ private function getProtoFiles(string $protoDir): array { return \array_filter( $this->files->getFiles($protoDir), - static fn(string $file) => \str_ends_with($file, '.proto') + static fn (string $file) => \str_ends_with($file, '.proto') ); } diff --git a/tests/src/GRPC/ProtocCommandBuilderTest.php b/tests/src/GRPC/ProtocCommandBuilderTest.php index 2a32901..08f1457 100644 --- a/tests/src/GRPC/ProtocCommandBuilderTest.php +++ b/tests/src/GRPC/ProtocCommandBuilderTest.php @@ -30,12 +30,12 @@ public function testBuild(): void $files->shouldReceive('getFiles')->with('path1') ->andReturn([ - 'message.proto.tmp', - 'service.proto.tmp', - 'message.proto', - 'service.proto', - '.gitignore', - '.gitattributes' + 'message.proto.tmp', + 'service.proto.tmp', + 'message.proto', + 'service.proto', + '.gitignore', + '.gitattributes', ]); $this->assertSame( @@ -61,7 +61,7 @@ public function testBuildWithNullServicesBasePath(): void 'message.proto', 'service.proto', '.gitignore', - '.gitattributes' + '.gitattributes', ]); $this->assertSame(