Completed
Push — master ( ba73f2...e6d5b5 )
by Martijn
27s
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.
tests/SwaggerGenTest.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         }
112 112
     }
113 113
 }
114
-JSON, $output);
114
+json, $output);
115 115
     }
116 116
 
117 117
     /**
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
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             } else {
81 81
                 $type = $this->enum ? 'enum' : 'string';
82 82
             }
83
-            throw new Exception("Empty {$type} default");
83
+            throw new Exception("empty {$type} default");
84 84
         }
85 85
 
86 86
         if (!empty($this->enum) && !in_array($value, $this->enum, true)) {
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             } else {
94 94
                 $type = $this->enum ? 'enum' : 'string';
95 95
             }
96
-            throw new Exception("Default {$type} length beyond maximum: '{$value}'");
96
+            throw new Exception("default {$type} length beyond maximum: '{$value}'");
97 97
         }
98 98
 
99 99
         if ($this->minLength !== null && mb_strlen($value) < $this->minLength) {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             } else {
103 103
                 $type = $this->enum ? 'enum' : 'string';
104 104
             }
105
-            throw new Exception("Default {$type} length beyond minimum: '{$value}'");
105
+            throw new Exception("default {$type} length beyond minimum: '{$value}'");
106 106
         }
107 107
 
108 108
         return $value;
Please login to merge, or discard this patch.