Completed
Push — master ( ba73f2...e6d5b5 )
by Martijn
27s
created
SwaggerGen/TypeRegistry.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@  discard block
 block discarded – undo
12 12
  * @copyright  2014-2025 Martijn van der Lee
13 13
  * @license    https://opensource.org/licenses/MIT MIT
14 14
  */
15
-class TypeRegistry
16
-{
15
+class TypeRegistry
16
+{
17 17
 
18 18
     /**
19 19
      * Map of format-name => class-name
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function add(string $classname): void
31 31
     {
32
-        if (is_subclass_of($classname, ICustomType::class)) {
33
-            foreach ($classname::getFormats() as $format) {
32
+        if (is_subclass_of($classname, ICustomType::class)) {
33
+            foreach ($classname::getFormats() as $format) {
34 34
                 $this->formats[$format] = $classname;
35 35
             }
36 36
         }
Please login to merge, or discard this patch.