Completed
Pull Request — master (#33)
by Martijn
02:18
created
SwaggerGen/Swagger/Swagger.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -91,6 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
 	/**
93 93
 	 * Is a type format known?
94
+	 * @param string $name
94 95
 	 * @return bool
95 96
 	 */
96 97
 	public function hasFormat($name)
@@ -100,6 +101,7 @@  discard block
 block discarded – undo
100 101
 
101 102
 	/**
102 103
 	 * Get the type class name
104
+	 * @param string $name
103 105
 	 * @return null|string
104 106
 	 */
105 107
 	public function getFormat($name)
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
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
 		// Internal type if type known and not overwritten by definition
173 173
 		if (isset(self::$classTypes[$format])) {
174 174
 			$type = self::$classTypes[$format];
175
-			$class = "\\SwaggerGen\\Swagger\\Type\\{$type}Type";
175
+			$class = "\\SwaggerGen\\Swagger\\Type\\{$type}type";
176 176
 			return new $class($parent, $definition);
177 177
 		} elseif ($parent->getSwagger()->hasFormat($format)) {
178 178
 			$class = $parent->getSwagger()->getFormat($format);
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
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 		$format = strtolower($match[1]);
109 109
 		if (isset(self::$classTypes[$format])) {
110 110
 			$type = self::$classTypes[$format];
111
-			$class = "\\SwaggerGen\\Swagger\\Type\\{$type}Type";
111
+			$class = "\\SwaggerGen\\Swagger\\Type\\{$type}type";
112 112
 			$this->Type = new $class($this, $definition);
113 113
 		} elseif ($this->getSwagger()->hasFormat($format)) {
114 114
 			$class = $this->getSwagger()->getFormat($format);
Please login to merge, or discard this patch.