@@ -46,7 +46,6 @@ |
||
46 | 46 | * Sets the field |
47 | 47 | * |
48 | 48 | * @param string name |
49 | - * @param Schema $schame |
|
50 | 49 | */ |
51 | 50 | public function set($name, Schema $schema) { |
52 | 51 | $this->definitions->set($name, $schema); |
@@ -77,7 +77,6 @@ |
||
77 | 77 | /** |
78 | 78 | * Sets the response |
79 | 79 | * |
80 | - * @param Response $code |
|
81 | 80 | */ |
82 | 81 | public function set(Response $response) { |
83 | 82 | $this->responses->set($response->getCode(), $response); |
@@ -91,7 +91,6 @@ |
||
91 | 91 | * Searches whether a parameter with the given unique combination exists |
92 | 92 | * |
93 | 93 | * @param string $name |
94 | - * @param string $id |
|
95 | 94 | * @return boolean |
96 | 95 | */ |
97 | 96 | public function search($name, $in) { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * @return boolean |
51 | 51 | */ |
52 | 52 | public function searchByName($name) { |
53 | - return $this->parameters->search($name, function (Parameter $param, $name) { |
|
53 | + return $this->parameters->search($name, function(Parameter $param, $name) { |
|
54 | 54 | return $param->getName() == $name; |
55 | 55 | }); |
56 | 56 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @return boolean |
96 | 96 | */ |
97 | 97 | public function search($name, $in) { |
98 | - return $this->parameters->search(function (Parameter $param) use ($name, $in) { |
|
98 | + return $this->parameters->search(function(Parameter $param) use ($name, $in) { |
|
99 | 99 | return $param->getIn() == $in && $param->getName() == $name; |
100 | 100 | }); |
101 | 101 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | |
14 | 14 | // flatten array |
15 | 15 | $fields = []; |
16 | - array_walk_recursive($cols, function ($a) use (&$fields) { $fields[] = $a; }); |
|
16 | + array_walk_recursive($cols, function($a) use (&$fields) { $fields[] = $a; }); |
|
17 | 17 | |
18 | 18 | $out = []; |
19 | 19 | $refl = new \ReflectionClass(get_class($this)); |