diff --git a/src/Validators/SwaggerSpecValidator.php b/src/Validators/SwaggerSpecValidator.php index 1578522e..8356b9a9 100644 --- a/src/Validators/SwaggerSpecValidator.php +++ b/src/Validators/SwaggerSpecValidator.php @@ -178,7 +178,9 @@ protected function validateResponse(array $response, string $statusCode, string if (!empty($response['schema'])) { $this->validateType( - $response['schema'], array_merge(self::SCHEMA_TYPES, ['file']), "{$responseId}.schema" + $response['schema'], + array_merge(self::SCHEMA_TYPES, ['file']), + "{$responseId}.schema" ); } @@ -198,7 +200,8 @@ protected function validateParameters(array $operation, string $path, string $op $this->validateFieldValue("{$paramId}.in", self::ALLOWED_VALUES['parameter_in']); $this->validateFieldValue( - "{$paramId}.collectionFormat", self::ALLOWED_VALUES['parameter_collection_format'] + "{$paramId}.collectionFormat", + self::ALLOWED_VALUES['parameter_collection_format'] ); $this->validateParameterType($param, $operation, $paramId, $operationId); diff --git a/tests/AutoDocControllerTest.php b/tests/AutoDocControllerTest.php index b74eae67..eccb1b3c 100644 --- a/tests/AutoDocControllerTest.php +++ b/tests/AutoDocControllerTest.php @@ -177,7 +177,8 @@ public function testGetElementsAssetFile() $response->assertStatus(Response::HTTP_OK); $this->assertEquals( - $response->getContent(), file_get_contents(resource_path('/assets/elements/web-components.min.js')) + $response->getContent(), + file_get_contents(resource_path('/assets/elements/web-components.min.js')) ); $response->assertHeader('Content-Type', 'text/html; charset=UTF-8'); diff --git a/tests/SwaggerServiceTest.php b/tests/SwaggerServiceTest.php index dada6186..a68048a7 100755 --- a/tests/SwaggerServiceTest.php +++ b/tests/SwaggerServiceTest.php @@ -308,7 +308,8 @@ public function testAddDataRequestWithEmptyDataAndInfo() config(['auto-doc.info' => []]); $this->mockDriverGetEmptyAndSaveTpmData( - [], $this->getJsonFixture('tmp_data_request_with_empty_data_and_info') + [], + $this->getJsonFixture('tmp_data_request_with_empty_data_and_info') ); app(SwaggerService::class);