@@ -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}'"); |
@@ -200,7 +200,7 @@ |
||
200 | 200 | |
201 | 201 | if (isset(self::$classTypes[$format])) { |
202 | 202 | $type = self::$classTypes[$format]; |
203 | - $class = "\\SwaggerGen\\Swagger\\Type\\{$type}Type"; |
|
203 | + $class = "\\SwaggerGen\\Swagger\\Type\\{$type}type"; |
|
204 | 204 | return new $class($parent, $definition); |
205 | 205 | } |
206 | 206 |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | } else { |
178 | 178 | $type = $this->enum ? 'enum' : 'string'; |
179 | 179 | } |
180 | - throw new Exception("Empty {$type} default"); |
|
180 | + throw new Exception("empty {$type} default"); |
|
181 | 181 | } |
182 | 182 | |
183 | 183 | if (!empty($this->enum) && !in_array($value, $this->enum)) { |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | } else { |
191 | 191 | $type = $this->enum ? 'enum' : 'string'; |
192 | 192 | } |
193 | - throw new Exception("Default {$type} length beyond maximum: '{$value}'"); |
|
193 | + throw new Exception("default {$type} length beyond maximum: '{$value}'"); |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | if ($this->minLength !== null && mb_strlen($value) < $this->minLength) { |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | } else { |
200 | 200 | $type = $this->enum ? 'enum' : 'string'; |
201 | 201 | } |
202 | - throw new Exception("Default {$type} length beyond minimum: '{$value}'"); |
|
202 | + throw new Exception("default {$type} length beyond minimum: '{$value}'"); |
|
203 | 203 | } |
204 | 204 | |
205 | 205 | return $value; |