Completed
Push — master ( 2349e7...786aa9 )
by Beñat
05:21
created
src/Kreta/SimpleApiDocBundle/Annotation/ApiDoc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         if (isset($data['statusCodes'])) {
72 72
             $this->initializeStatusCodes();
73 73
             foreach ($data['statusCodes'] as $key => $element) {
74
-                if ((int) $key < 200) {
74
+                if ((int)$key < 200) {
75 75
                     $this->statusCodes($element);
76 76
                 } else {
77 77
                     $this->statusCodes($key, $element);
Please login to merge, or discard this patch.
src/Kreta/SimpleApiDocBundle/Parser/ValidationParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         foreach ($metadata->getConstraints() as $constraint) {
95 95
             $class = new \ReflectionClass($constraint);
96 96
             $fields = $constraint->fields;
97
-            $entityConstraint = [implode(', ', (array) $fields) => $constraint->message];
97
+            $entityConstraint = [implode(', ', (array)$fields) => $constraint->message];
98 98
             $entityConstraints = array_merge($entityConstraints, $entityConstraint);
99 99
             $validations[$class->getShortName()] = $entityConstraint;
100 100
         }
Please login to merge, or discard this patch.
src/Kreta/SimpleApiDocBundle/Extractor/ApiDocExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
                 $controllerClass = substr($actionName, 0, strpos($actionName, '::'));
116 116
                 $reflectionClass = new \ReflectionClass(substr($controllerClass, strpos($controllerClass, ':')));
117 117
                 $class = str_replace('Controller', '', $reflectionClass->getShortName());
118
-                $inputType = 'Kreta\\Component\\' . $class . '\\Form\\Type\\' . $class . 'Type';
118
+                $inputType = 'Kreta\\Component\\'.$class.'\\Form\\Type\\'.$class.'Type';
119 119
                 if (class_exists($inputType)) {
120 120
                     $inputReflection->setValue($annotation, $inputType);
121 121
                 }
Please login to merge, or discard this patch.
Kreta/SimpleApiDocBundle/DependencyInjection/KretaSimpleApiDocExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     {
32 32
         $configuration = new Configuration();
33 33
         $this->processConfiguration($configuration, $configs);
34
-        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
34
+        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
35 35
         $loader->load('services.yml');
36 36
     }
37 37
 }
Please login to merge, or discard this patch.