@@ -91,6 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * Is a type format known? |
| 94 | + * @param string $name |
|
| 94 | 95 | * @return bool |
| 95 | 96 | */ |
| 96 | 97 | public function hasFormat($name) |
@@ -100,6 +101,7 @@ discard block |
||
| 100 | 101 | |
| 101 | 102 | /** |
| 102 | 103 | * Get the type class name |
| 104 | + * @param string $name |
|
| 103 | 105 | * @return null|string |
| 104 | 106 | */ |
| 105 | 107 | public function getFormat($name) |
@@ -172,7 +172,7 @@ |
||
| 172 | 172 | // Internal type if type known and not overwritten by definition |
| 173 | 173 | if (isset(self::$classTypes[$format])) { |
| 174 | 174 | $type = self::$classTypes[$format]; |
| 175 | - $class = "\\SwaggerGen\\Swagger\\Type\\{$type}Type"; |
|
| 175 | + $class = "\\SwaggerGen\\Swagger\\Type\\{$type}type"; |
|
| 176 | 176 | return new $class($parent, $definition); |
| 177 | 177 | } elseif ($parent->getSwagger()->hasFormat($format)) { |
| 178 | 178 | $class = $parent->getSwagger()->getFormat($format); |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | $format = strtolower($match[1]); |
| 109 | 109 | if (isset(self::$classTypes[$format])) { |
| 110 | 110 | $type = self::$classTypes[$format]; |
| 111 | - $class = "\\SwaggerGen\\Swagger\\Type\\{$type}Type"; |
|
| 111 | + $class = "\\SwaggerGen\\Swagger\\Type\\{$type}type"; |
|
| 112 | 112 | $this->Type = new $class($this, $definition); |
| 113 | 113 | } elseif ($this->getSwagger()->hasFormat($format)) { |
| 114 | 114 | $class = $this->getSwagger()->getFormat($format); |