@@ -93,9 +93,9 @@ |
||
93 | 93 | return filter_input(INPUT_POST, $this->key); |
94 | 94 | } |
95 | 95 | if ($this->type == self::TYPE_FILE) { |
96 | - if (isset($_FILES[$this->key])) { |
|
97 | - return $_FILES[$this->key]; |
|
98 | - } |
|
96 | + if (isset($_FILES[$this->key])) { |
|
97 | + return $_FILES[$this->key]; |
|
98 | + } |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | throw new Exception("Invalid type"); |
@@ -41,6 +41,9 @@ |
||
41 | 41 | return true; |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @param string|false $ipRestrictions |
|
46 | + */ |
|
44 | 47 | private function isValidIp($ipRestrictions) |
45 | 48 | { |
46 | 49 | if ($ipRestrictions == '*' || $ipRestrictions == '' || $ipRestrictions == null) { |
@@ -23,6 +23,9 @@ discard block |
||
23 | 23 | $this->apiLink = $apiLink; |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @param string|null $method |
|
28 | + */ |
|
26 | 29 | public function getApiHandler($method, $version, $package, $apiAction = '') |
27 | 30 | { |
28 | 31 | foreach ($this->handlers as $handler) { |
@@ -79,6 +82,9 @@ discard block |
||
79 | 82 | return $list; |
80 | 83 | } |
81 | 84 | |
85 | + /** |
|
86 | + * @param ApiHandlerInterface $handler |
|
87 | + */ |
|
82 | 88 | private function createParamsList($handler) |
83 | 89 | { |
84 | 90 | $paramsList = $handler['handler']->params(); |
@@ -46,6 +46,9 @@ |
||
46 | 46 | $this->clickCallback->__invoke($method, $version, $package, $apiAction); |
47 | 47 | } |
48 | 48 | |
49 | + /** |
|
50 | + * @param \Tomaj\NetteApi\Handlers\ApiHandlerInterface[] $handlers |
|
51 | + */ |
|
49 | 52 | private function sortHandlers($handlers) |
50 | 53 | { |
51 | 54 | $versionHandlers = []; |