@@ -53,7 +53,7 @@ |
||
| 53 | 53 | */ |
| 54 | 54 | protected function qualify(string $resourceNamespace, string $typeName): string |
| 55 | 55 | { |
| 56 | - return ltrim($resourceNamespace . '\\' . $typeName, '\\'); |
|
| 56 | + return ltrim($resourceNamespace.'\\'.$typeName, '\\'); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | { |
| 143 | 143 | foreach ($this->definition->parameters as $i => $paramDefinition) { |
| 144 | 144 | if ($paramDefinition->name === $parameterName) { |
| 145 | - return '/' . implode('/', [ |
|
| 145 | + return '/'.implode('/', [ |
|
| 146 | 146 | 'paths', |
| 147 | 147 | str_replace(['~', '/'], ['~0', '~1'], $this->getPath()), |
| 148 | 148 | $this->getMethod(), |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | { |
| 194 | 194 | $segment = str_replace(['~0', '~1'], ['~', '/'], array_shift($segments)); |
| 195 | 195 | if (property_exists($context, $segment)) { |
| 196 | - $pointer .= '/' . $segment; |
|
| 196 | + $pointer .= '/'.$segment; |
|
| 197 | 197 | if (!count($segments)) { |
| 198 | 198 | return $pointer; |
| 199 | 199 | } |
@@ -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 | * |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $this->contentDecoderMock |
| 34 | 34 | ->expects($this->any()) |
| 35 | 35 | ->method('decodeContent') |
| 36 | - ->willReturnCallback(function (Request $request) { |
|
| 36 | + ->willReturnCallback(function(Request $request) { |
|
| 37 | 37 | return json_decode($request->getContent()); |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -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 | * |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function canParseNumericMap() |
| 26 | 26 | { |
| 27 | - $yaml = <<<YAML |
|
| 27 | + $yaml = <<<YAML |
|
| 28 | 28 | map: |
| 29 | 29 | 1: one |
| 30 | 30 | 2: two |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | ->getMockBuilder('KleijnWeb\SwaggerBundle\Document\ParameterRefBuilder') |
| 36 | 36 | ->disableOriginalConstructor() |
| 37 | 37 | ->getMock(); |
| 38 | - $this->factory = new VndValidationErrorFactory($this->refBuilder); |
|
| 38 | + $this->factory = new VndValidationErrorFactory($this->refBuilder); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | public function resultIncludesErrorMessagesCreatedByJsonSchema() |
| 72 | 72 | { |
| 73 | - $value = (object)[ |
|
| 73 | + $value = (object)[ |
|
| 74 | 74 | 'foo' => (object)[ |
| 75 | 75 | 'blah' => 'one' |
| 76 | 76 | ], |
@@ -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 | } |