Completed
Push — master ( 890a42...717975 )
by Martijn
02:00
created
SwaggerGen/Swagger/Type/Property.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 		$format = strtolower($match[1]);
66 66
 		if (isset(self::$classTypes[$format])) {
67 67
 			$type = self::$classTypes[$format];
68
-			$class = "SwaggerGen\\Swagger\\Type\\{$type}Type";
68
+			$class = "SwaggerGen\\Swagger\\Type\\{$type}type";
69 69
 			$this->Type = new $class($this, $definition);
70 70
 		} else {
71 71
 			throw new \SwaggerGen\Exception("Property format not recognized: '{$format}'");
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/ArrayType.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
 		$format = strtolower($match[1]);
166 166
 		if (isset(self::$classTypes[$format])) {
167 167
 			$type = self::$classTypes[$format];
168
-			$typeClass = "SwaggerGen\\Swagger\\Type\\{$type}Type";
168
+			$typeClass = "SwaggerGen\\Swagger\\Type\\{$type}type";
169 169
 			return new $typeClass($this, $items);
170 170
 		}
171 171
 
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Parameter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 		$format = strtolower($match[1]);
66 66
 		if (isset(self::$classTypes[$format])) {
67 67
 			$type = self::$classTypes[$format];
68
-			$class = "SwaggerGen\\Swagger\\Type\\{$type}Type";
68
+			$class = "SwaggerGen\\Swagger\\Type\\{$type}type";
69 69
 			$this->Type = new $class($this, $definition);
70 70
 		} else {
71 71
 			throw new \SwaggerGen\Exception("Property format not recognized: '{$format}'");
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Schema.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 			// Internal type if type known and not overwritten by definition
73 73
 			if (isset(self::$classTypes[$format])) {
74 74
 				$type = self::$classTypes[$format];
75
-				$class = "SwaggerGen\\Swagger\\Type\\{$type}Type";
75
+				$class = "SwaggerGen\\Swagger\\Type\\{$type}type";
76 76
 				$this->type = new $class($this, $definition);
77 77
 			} else {
78 78
 				$this->type = new Type\ReferenceObjectType($this, $definition);
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/StringType.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
 	protected function validateDefault($value)
155 155
 	{
156 156
 		if (empty($value)) {
157
-			throw new \SwaggerGen\Exception("Empty {$this->type} default");
157
+			throw new \SwaggerGen\Exception("empty {$this->type} default");
158 158
 		}
159 159
 
160 160
 		if (!empty($this->enum) && !in_array($value, $this->enum)) {
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Type/AbstractRegexType.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
 		$match = array();
46 46
 		if (preg_match(self::REGEX_START . self::REGEX_FORMAT . self::REGEX_DEFAULT_START . $this->regex . self::REGEX_DEFAULT_END . self::REGEX_END, $definition, $match) !== 1) {
47
-			throw new \SwaggerGen\Exception("Unparseable {$this->type} definition: '{$definition}'");
47
+			throw new \SwaggerGen\Exception("unparseable {$this->type} definition: '{$definition}'");
48 48
 		}
49 49
 
50 50
 		if (strtolower($match[1] !== $this->type)) {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 		$value = parent::validateDefault($value);
61 61
 		
62 62
 		if (preg_match('/' . $this->pattern . '/', $value) !== 1) {
63
-			throw new \SwaggerGen\Exception("Invalid {$this->type} default value");
63
+			throw new \SwaggerGen\Exception("invalid {$this->type} default value");
64 64
 		}
65 65
 		
66 66
 		return $value;
Please login to merge, or discard this patch.