@@ -95,6 +95,8 @@ |
||
95 | 95 | * @param string $callback The name of the function definition on the $component. |
96 | 96 | * @param int Optional $priority The priority at which the function should be fired. |
97 | 97 | * @param int Optional $accepted_args The number of arguments that should be passed to the $callback. |
98 | + * @param integer $priority |
|
99 | + * @param integer $accepted_args |
|
98 | 100 | * @return type The collection of actions and filters registered with WordPress. |
99 | 101 | */ |
100 | 102 | private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) { |
@@ -189,7 +189,7 @@ |
||
189 | 189 | * Get a plugin option by name. |
190 | 190 | * |
191 | 191 | * @param string $name Option name. |
192 | - * @param mixed $default Option default if not set. |
|
192 | + * @param string|false $default Option default if not set. |
|
193 | 193 | * @return mixed Option value. |
194 | 194 | */ |
195 | 195 | public function get_option( $name = null, $default = null ) { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * Fetch an issue. |
67 | 67 | * @param string $id Issue ID. |
68 | 68 | * @param array $options Request options. |
69 | - * @param array $expires Cache TTL, in seconds (defaults to 3600). |
|
69 | + * @param integer $expires Cache TTL, in seconds (defaults to 3600). |
|
70 | 70 | * @return mixed Response data. |
71 | 71 | */ |
72 | 72 | public function get_issue( $id, $options = array(), $expires = 3600 ) { |
@@ -77,10 +77,9 @@ discard block |
||
77 | 77 | |
78 | 78 | /** |
79 | 79 | * Handle GET requests. |
80 | - * @param string $resource Resource to fetch |
|
81 | 80 | * @param array $options Request options. |
82 | - * @param array $expires Cache TTL, in seconds (defaults to 3600). |
|
83 | - * @return mixed Response data. |
|
81 | + * @param integer $expires Cache TTL, in seconds (defaults to 3600). |
|
82 | + * @return string Response data. |
|
84 | 83 | */ |
85 | 84 | public function get( $url, $options = array(), $expires = 3600 ) { |
86 | 85 | $options = $this->add_credentials( $options ); |
@@ -100,7 +99,6 @@ discard block |
||
100 | 99 | |
101 | 100 | /** |
102 | 101 | * Fetch the response body for a GET request. |
103 | - * @param string $resource Resource to fetch |
|
104 | 102 | * @param array $options Request options. |
105 | 103 | * @return string Request body. |
106 | 104 | */ |
@@ -173,7 +173,6 @@ |
||
173 | 173 | /** |
174 | 174 | * Render error message. |
175 | 175 | * |
176 | - * @param string $error Error message. |
|
177 | 176 | */ |
178 | 177 | private function render_issue( $issue ) { |
179 | 178 | ob_start(); |