Completed
Pull Request — master (#80)
by John
03:11
created
src/Tests/Functional/SerializationPetStoreApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
     public static function setUpBeforeClass()
30 30
     {
31
-        static::initSchemaManager(__DIR__ . '/PetStore/app/swagger/petstore.yml');
31
+        static::initSchemaManager(__DIR__.'/PetStore/app/swagger/petstore.yml');
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
src/Tests/Response/VndValidationErrorFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             ],
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/Routing/SwaggerRouteLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                     $router,
99 99
                     $routerController
100 100
                 );
101
-                $defaults      = [
101
+                $defaults = [
102 102
                     '_controller'   => $controllerKey,
103 103
                     '_definition'   => $resource,
104 104
                     '_swagger_path' => $path
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                             break;
141 141
                         }
142 142
                         if (isset($paramDefinition->enum)) {
143
-                            $requirements[$paramDefinition->name] = '(' .
143
+                            $requirements[$paramDefinition->name] = '('.
144 144
                                 implode('|', $paramDefinition->enum)
145 145
                                 . ')';
146 146
                             break;
Please login to merge, or discard this patch.
src/Tests/Document/YamlParserTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Tests/Functional/GenericDataApiTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
65 65
      */
66 66
     public function canFindByCriteria()
67 67
     {
68
-        $criteria     = [
68
+        $criteria = [
69 69
             (object)[
70 70
                 'fieldName' => 'x',
71 71
                 'operator'  => 'eq',
Please login to merge, or discard this patch.
src/DependencyInjection/KleijnWebSwaggerExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function load(array $configs, ContainerBuilder $container)
26 26
     {
27 27
         $config = $this->processConfiguration(new Configuration(), $configs);
28
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
28
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
29 29
         $loader->load('services.yml');
30 30
 
31 31
         $container->setParameter('swagger.document.base_path', $config['document']['base_path']);
Please login to merge, or discard this patch.
src/Document/Specification/Operation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Tests/Routing/SwaggerRouteLoaderTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             ->willReturn((object)[]);
81 81
 
82 82
         $this->loader->load(self::DOCUMENT_PATH);
83
-        $this->loader->load(self::DOCUMENT_PATH . '2');
83
+        $this->loader->load(self::DOCUMENT_PATH.'2');
84 84
     }
85 85
 
86 86
     /**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             ->willReturn($pathDefinitions);
101 101
 
102 102
         $routes1 = $this->loader->load(self::DOCUMENT_PATH);
103
-        $routes2 = $this->loader->load(self::DOCUMENT_PATH . '2');
103
+        $routes2 = $this->loader->load(self::DOCUMENT_PATH.'2');
104 104
         $this->assertSame(count($routes1), count(array_diff_key($routes1->all(), $routes2->all())));
105 105
     }
106 106
 
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
         $definitionPaths = array_keys((array)$pathDefinitions);
355 355
         sort($definitionPaths);
356 356
 
357
-        $routePaths = array_map(function (Route $route) {
357
+        $routePaths = array_map(function(Route $route) {
358 358
             return $route->getPath();
359 359
         }, $routes->getIterator()->getArrayCopy());
360 360
 
Please login to merge, or discard this patch.