Completed
Push — master ( 2f1531...a6cc58 )
by Martijn
17s
created
SwaggerGen/Swagger/Parameter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
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}'");
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/StringType.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/AbstractType.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.