@@ -115,7 +115,7 @@ |
||
115 | 115 | $this->Type = new $class($this, $definition); |
116 | 116 | } elseif (isset(self::$classTypes[$format])) { |
117 | 117 | $type = self::$classTypes[$format]; |
118 | - $class = "\\SwaggerGen\\Swagger\\Type\\{$type}Type"; |
|
118 | + $class = "\\SwaggerGen\\Swagger\\Type\\{$type}type"; |
|
119 | 119 | $this->Type = new $class($this, $definition); |
120 | 120 | } else { |
121 | 121 | throw new Exception("Type format not recognized: '{$format}'"); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | { |
174 | 174 | if (empty($value)) { |
175 | 175 | $type = $this->format ?: ($this->enum ? 'enum' : 'string'); |
176 | - throw new Exception("Empty {$type} default"); |
|
176 | + throw new Exception("empty {$type} default"); |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | if (!empty($this->enum) && !in_array($value, $this->enum)) { |
@@ -182,12 +182,12 @@ discard block |
||
182 | 182 | |
183 | 183 | if ($this->maxLength !== null && mb_strlen($value) > $this->maxLength) { |
184 | 184 | $type = $this->format ?: ($this->enum ? 'enum' : 'string'); |
185 | - throw new Exception("Default {$type} length beyond maximum: '{$value}'"); |
|
185 | + throw new Exception("default {$type} length beyond maximum: '{$value}'"); |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | if ($this->minLength !== null && mb_strlen($value) < $this->minLength) { |
189 | 189 | $type = $this->format ?: ($this->enum ? 'enum' : 'string'); |
190 | - throw new Exception("Default {$type} length beyond minimum: '{$value}'"); |
|
190 | + throw new Exception("default {$type} length beyond minimum: '{$value}'"); |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | return $value; |
@@ -198,7 +198,7 @@ |
||
198 | 198 | return new $class($parent, $definition); |
199 | 199 | } elseif (isset(self::$classTypes[$format])) { |
200 | 200 | $type = self::$classTypes[$format]; |
201 | - $class = "\\SwaggerGen\\Swagger\\Type\\{$type}Type"; |
|
201 | + $class = "\\SwaggerGen\\Swagger\\Type\\{$type}type"; |
|
202 | 202 | return new $class($parent, $definition); |
203 | 203 | } else { |
204 | 204 | return new ReferenceObjectType($parent, $definition); |