@@ -81,6 +81,9 @@ discard block |
||
| 81 | 81 | return $this->switch->controller->runAction($action); |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $postfix |
|
| 86 | + */ |
|
| 84 | 87 | public function run($postfix = null) |
| 85 | 88 | { |
| 86 | 89 | return $this->runAction($postfix); |
@@ -90,7 +93,7 @@ discard block |
||
| 90 | 93 | * Setter for action. Saves the action to the controller. |
| 91 | 94 | * |
| 92 | 95 | * @param mixed $action action config |
| 93 | - * @param null $postfix |
|
| 96 | + * @param string $postfix |
|
| 94 | 97 | */ |
| 95 | 98 | public function setAction($action, $postfix = null) |
| 96 | 99 | { |
@@ -161,7 +161,7 @@ |
||
| 161 | 161 | * Method downloads the requested file from the API and saves it to the local machine. |
| 162 | 162 | * Method respects authentication and access rules. |
| 163 | 163 | * |
| 164 | - * @param integer|File $file the ID of the file, or the [[File]] model. |
|
| 164 | + * @param File $file the ID of the file, or the [[File]] model. |
|
| 165 | 165 | * When model is passed, no additional query will be performed. |
| 166 | 166 | * @param bool $overrideCache whether the cache must be invalidated |
| 167 | 167 | * @throws Exception when fails to save file locally |
@@ -40,6 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * {@inheritdoc} |
| 43 | + * @param string $key |
|
| 43 | 44 | */ |
| 44 | 45 | public function setBounded($key, $value) |
| 45 | 46 | { |
@@ -65,6 +66,7 @@ discard block |
||
| 65 | 66 | |
| 66 | 67 | /** |
| 67 | 68 | * {@inheritdoc} |
| 69 | + * @param string $key |
|
| 68 | 70 | */ |
| 69 | 71 | public function getBounded($key) |
| 70 | 72 | { |
@@ -78,8 +80,7 @@ discard block |
||
| 78 | 80 | |
| 79 | 81 | /** |
| 80 | 82 | * Performs request to the API. |
| 81 | - * @param string $key |
|
| 82 | - * @param array $value |
|
| 83 | + * @param string $action |
|
| 83 | 84 | * @return array |
| 84 | 85 | */ |
| 85 | 86 | private function perform($action, $data) |
@@ -53,6 +53,7 @@ |
||
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * {@inheritdoc} |
| 56 | + * @param string $mimeType |
|
| 56 | 57 | */ |
| 57 | 58 | public function resolveGeneratorClass($mimeType) |
| 58 | 59 | { |