Completed
Pull Request — master (#23)
by
unknown
03:09
created
SwaggerGen/Swagger/Swagger.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
 				return $this;
143 143
 
144 144
 			case 'model':
145
-            case 'model!':
145
+			case 'model!':
146 146
 			case 'definition':
147
-            case 'definition!':
147
+			case 'definition!':
148 148
 				$name = self::wordShift($data);
149 149
 				if (empty($name)) {
150 150
 					throw new \SwaggerGen\Exception('Missing definition name');
@@ -156,8 +156,8 @@  discard block
 block discarded – undo
156 156
 
157 157
 				$definition = new Schema($this, $typeDef);
158 158
 				if(substr($command, -1) === '!') {
159
-				    $definition->setReadOnly();
160
-                }
159
+					$definition->setReadOnly();
160
+				}
161 161
 				$this->definitions[$name] = $definition;
162 162
 				return $definition;
163 163
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
 				}
156 156
 
157 157
 				$definition = new Schema($this, $typeDef);
158
-				if(substr($command, -1) === '!') {
158
+				if (substr($command, -1) === '!') {
159 159
 				    $definition->setReadOnly();
160 160
                 }
161 161
 				$this->definitions[$name] = $definition;
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
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
 		// Internal type if type known and not overwritten by definition
121 121
 		if (isset(self::$classTypes[$format])) {
122 122
 			$type = self::$classTypes[$format];
123
-			$class = "SwaggerGen\\Swagger\\Type\\{$type}Type";
123
+			$class = "SwaggerGen\\Swagger\\Type\\{$type}type";
124 124
 			return new $class($parent, $definition);
125 125
 		} else {
126 126
 			return new ReferenceObjectType($parent, $definition);
Please login to merge, or discard this patch.