@@ -49,7 +49,7 @@ |
||
| 49 | 49 | return ''; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - $getTypeFromReference = function ($schema) { |
|
| 52 | + $getTypeFromReference = function($schema) { |
|
| 53 | 53 | return $schema->{'x-type'} = substr($schema->{'x-ref-id'}, strrpos($schema->{'x-ref-id'}, '/') + 1); |
| 54 | 54 | }; |
| 55 | 55 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $suffix = "[]"; |
| 49 | 49 | } |
| 50 | 50 | if (class_exists($fqcn = $this->qualify($resourceNamespace, $typeName))) { |
| 51 | - return $fqcn . $suffix; |
|
| 51 | + return $fqcn.$suffix; |
|
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | |
@@ -63,6 +63,6 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | protected function qualify(string $resourceNamespace, string $typeName): string |
| 65 | 65 | { |
| 66 | - return ltrim($resourceNamespace . '\\' . $typeName, '\\'); |
|
| 66 | + return ltrim($resourceNamespace.'\\'.$typeName, '\\'); |
|
| 67 | 67 | } |
| 68 | 68 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public function apply(callable $f) |
| 42 | 42 | { |
| 43 | - $recurse = function (&$item) use ($f, &$recurse) { |
|
| 43 | + $recurse = function(&$item) use ($f, &$recurse) { |
|
| 44 | 44 | |
| 45 | 45 | foreach ($item as $attribute => &$value) { |
| 46 | 46 | if (false === $f($value, $attribute)) { |