@@ -138,10 +138,10 @@ discard block |
||
| 138 | 138 | $ins = null; |
| 139 | 139 | try{ |
| 140 | 140 | $ins = $app->make($name); |
| 141 | - }catch (\Exception $e){ |
|
| 141 | + } catch (\Exception $e){ |
|
| 142 | 142 | try{ |
| 143 | 143 | $ins = new $name(""); |
| 144 | - }catch (\Exception $e){ |
|
| 144 | + } catch (\Exception $e){ |
|
| 145 | 145 | |
| 146 | 146 | } |
| 147 | 147 | } |
@@ -223,9 +223,9 @@ discard block |
||
| 223 | 223 | { |
| 224 | 224 | if ($content instanceof ReturnMeta || $content instanceof ParamMeta) { |
| 225 | 225 | return $this->makeExample($content->container); |
| 226 | - }elseif ($content instanceof TypeContainerInterface){ |
|
| 226 | + } elseif ($content instanceof TypeContainerInterface){ |
|
| 227 | 227 | return $content->makeExample(); |
| 228 | - }elseif(is_array($content)) { |
|
| 228 | + } elseif(is_array($content)) { |
|
| 229 | 229 | $res = []; |
| 230 | 230 | foreach ($content as $k => $v) { |
| 231 | 231 | $res[$k] = $this->makeExample($v); |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | $paramSchema = new PrimitiveSchemaObject(); |
| 385 | 385 | if($isFile){ |
| 386 | 386 | $paramSchema->type = 'file'; |
| 387 | - }else{ |
|
| 387 | + } else{ |
|
| 388 | 388 | $paramSchema->type = self::mapType($param->type); |
| 389 | 389 | self::mapValidation($param->validation, $paramSchema); |
| 390 | 390 | } |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | } elseif($container == null){ |
| 443 | 443 | $schema = null ;//new PrimitiveSchemaObject(); |
| 444 | 444 | //$schema->type = null; |
| 445 | - }else { |
|
| 445 | + } else { |
|
| 446 | 446 | $schema = new PrimitiveSchemaObject(); |
| 447 | 447 | //$schema->type = 'mixed'; |
| 448 | 448 | } |