Completed
Push — master ( a6cc58...1b8eb5 )
by Martijn
26s
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/AbstractType.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
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
 
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
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.