@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\SwaggerBundle package. |
4 | 4 | * |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $jsonEncoderMock |
45 | 45 | ->expects($this->once()) |
46 | 46 | ->method('encode') |
47 | - ->willReturnCallback(function ($string) { |
|
47 | + ->willReturnCallback(function($string) { |
|
48 | 48 | $data = json_encode($string); |
49 | 49 | if (is_null($data)) { |
50 | 50 | throw new \Exception(); |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\SwaggerBundle package. |
4 | 4 | * |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | $logger |
221 | 221 | ->expects($this->once()) |
222 | 222 | ->method('log') |
223 | - ->with($this->anything(), $this->callback(function ($message) use (&$logref) { |
|
223 | + ->with($this->anything(), $this->callback(function($message) use (&$logref) { |
|
224 | 224 | $matches = []; |
225 | 225 | if (preg_match('/logref ([a-z0-9]*)/', $message, $matches)) { |
226 | 226 | $logref = $matches[1]; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | use Doctrine\Common\Annotations\AnnotationRegistry; |
4 | 4 | use Composer\Autoload\ClassLoader; |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | /** |
7 | 7 | * @var ClassLoader $loader |
8 | 8 | */ |
9 | -$loader = require __DIR__ . '/../../../../../vendor/autoload.php'; |
|
9 | +$loader = require __DIR__.'/../../../../../vendor/autoload.php'; |
|
10 | 10 | |
11 | 11 | AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
12 | 12 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\SwaggerBundle package. |
4 | 4 | * |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | public static function setUpBeforeClass() |
29 | 29 | { |
30 | - static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/petstore.yml'); |
|
30 | + static::initSchemaManager(__DIR__.'/PetStore/app/swagger/petstore.yml'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | $id = rand(); |
65 | 65 | |
66 | - $responseData = $this->get('/v2/pet/' . $id); |
|
66 | + $responseData = $this->get('/v2/pet/'.$id); |
|
67 | 67 | |
68 | 68 | $this->assertSame($id, $responseData->id); |
69 | 69 | } |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\SwaggerBundle package. |
4 | 4 | * |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | public static function setUpBeforeClass() |
29 | 29 | { |
30 | - static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/data.yml'); |
|
30 | + static::initSchemaManager(__DIR__.'/PetStore/app/swagger/data.yml'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function canFindByCriteria() |
67 | 67 | { |
68 | - $criteria = [ |
|
68 | + $criteria = [ |
|
69 | 69 | (object)[ |
70 | 70 | 'fieldName' => 'x', |
71 | 71 | 'operator' => 'eq', |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\SwaggerBundle package. |
4 | 4 | * |
@@ -30,6 +30,6 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function canInitSchemaManager() |
32 | 32 | { |
33 | - static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/data.json'); |
|
33 | + static::initSchemaManager(__DIR__.'/PetStore/app/swagger/data.json'); |
|
34 | 34 | } |
35 | 35 | } |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\SwaggerBundle package. |
4 | 4 | * |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public static function setUpBeforeClass() |
32 | 32 | { |
33 | - static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/petstore.yml'); |
|
33 | + static::initSchemaManager(__DIR__.'/PetStore/app/swagger/petstore.yml'); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\SwaggerBundle package. |
4 | 4 | * |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | public static function setUpBeforeClass() |
32 | 32 | { |
33 | - static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/petstore.yml'); |
|
33 | + static::initSchemaManager(__DIR__.'/PetStore/app/swagger/petstore.yml'); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } catch (ApiResponseErrorException $e) { |
82 | 82 | $error = Hal::fromJson($e->getJson(), 10); |
83 | 83 | $resource = $error->getFirstResource('errors'); |
84 | - $specLink = $url . '#/paths/~1pet~1findByStatus/get/parameters/0/body/properties/quantity'; |
|
84 | + $specLink = $url.'#/paths/~1pet~1findByStatus/get/parameters/0/body/properties/quantity'; |
|
85 | 85 | $this->assertSame($specLink, $resource->getUri()); |
86 | 86 | |
87 | 87 | return; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of the KleijnWeb\SwaggerBundle package. |
4 | 4 | * |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | ->arrayNode('namespace') |
38 | 38 | ->beforeNormalization() |
39 | 39 | ->ifString() |
40 | - ->then(function ($v) { |
|
40 | + ->then(function($v) { |
|
41 | 41 | return [$v]; |
42 | 42 | }) |
43 | 43 | ->end() |