Passed
Push — master ( 09a4c4...a9ac3c )
by Francis
02:32
created
src/Swagger/SwaggerModelGenerator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $this->definitions[$subDefinitionName] = $subConfig;
165 165
         $this->generateClass($subDefinitionName);
166 166
         [$subNamespace, $subClassName] = $this->getClassNameAndNamespaceFromDefinitionName($subDefinitionName);
167
-        $type = '\\' . $subNamespace . '\\' . $subClassName;
167
+        $type = '\\'.$subNamespace.'\\'.$subClassName;
168 168
         $type .= $currentConfig['type'] === 'array' ? '[]' : '';
169 169
 
170 170
         return $type;
@@ -203,11 +203,11 @@  discard block
 block discarded – undo
203 203
         $classParts = explode('/', $classPath);
204 204
         $className = array_pop($classParts);
205 205
         $namespace = implode('\\', $classParts);
206
-        $namespace = $this->namespace . ($namespace === '' ? '' : '\\'.$namespace);
206
+        $namespace = $this->namespace.($namespace === '' ? '' : '\\'.$namespace);
207 207
 
208 208
         return [
209 209
             $namespace,
210
-            $classPrefix . $className . $classSuffix,
210
+            $classPrefix.$className.$classSuffix,
211 211
         ];
212 212
     }
213 213
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 
241 241
         $singleType = rtrim($type, '[]');
242 242
         [$propertyNamespace, $propertyClassName] = $this->getClassNameAndNamespaceFromDefinitionName($singleType);
243
-        return $propertyNamespace . '\\' . $propertyClassName;
243
+        return $propertyNamespace.'\\'.$propertyClassName;
244 244
     }
245 245
 
246 246
     /**
Please login to merge, or discard this patch.