Completed
Pull Request — master (#14)
by
unknown
01:38
created
SwaggerGen/Swagger/Type/ObjectType.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,8 +116,7 @@
 block discarded – undo
116 116
                 $propertySuffix = substr($command, -1);
117 117
                 if ($propertySuffix === '!') {
118 118
                     $readOnly = true;
119
-                }
120
-				else if ($propertySuffix !== '?') {
119
+                } else if ($propertySuffix !== '?') {
121 120
 					$this->required[$name] = true;
122 121
 				}
123 122
 
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Swagger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
 			case 'definition':
147 147
             case 'definition!':
148 148
 				$definition = new Schema($this);
149
-				if(substr($command, -1) === '!') {
149
+				if (substr($command, -1) === '!') {
150 150
 				    $definition->setReadOnly();
151 151
                 }
152 152
 				$name = self::wordShift($data);
Please login to merge, or discard this patch.