@@ -11,6 +11,9 @@ |
||
11 | 11 | private $declarations; |
12 | 12 | private $current_relative_path; |
13 | 13 | |
14 | + /** |
|
15 | + * @param $declarations |
|
16 | + */ |
|
14 | 17 | public function __construct( $current_relative_path, $declarations ) { |
15 | 18 | $this->current_relative_path = $current_relative_path; |
16 | 19 | $this->declarations = $declarations; |
@@ -9,6 +9,9 @@ |
||
9 | 9 | public $declaration; |
10 | 10 | public $invocation_root; |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $invocation_root |
|
14 | + */ |
|
12 | 15 | function __construct( $invocation, $declaration, $invocation_root = null ) { |
13 | 16 | $this->invocation = $invocation; |
14 | 17 | $this->declaration = $declaration; |
@@ -15,6 +15,9 @@ |
||
15 | 15 | public $line; |
16 | 16 | public $func_name; |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $func_name |
|
20 | + */ |
|
18 | 21 | public function __construct( $path, $line, $func_name ) { |
19 | 22 | $this->path = $path; |
20 | 23 | $this->line = $line; |
@@ -9,6 +9,9 @@ |
||
9 | 9 | private $invocations; |
10 | 10 | private $file_path; |
11 | 11 | |
12 | + /** |
|
13 | + * @param $invocations |
|
14 | + */ |
|
12 | 15 | public function __construct( $file_path, $invocations ) { |
13 | 16 | $this->file_path = $file_path; |
14 | 17 | $this->invocations = $invocations; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * Convenience function for grabbing options from params->options |
119 | 119 | * |
120 | 120 | * @param string $option the option to grab. |
121 | - * @param mixed $default (optional). |
|
121 | + * @param boolean $default (optional). |
|
122 | 122 | * @return option or $default if not set |
123 | 123 | * |
124 | 124 | * @since 4.5.0 |
@@ -710,7 +710,7 @@ discard block |
||
710 | 710 | /** |
711 | 711 | * Check the reasons to bail before we attempt to insert ads. |
712 | 712 | * |
713 | - * @return true if we should bail (don't insert ads) |
|
713 | + * @return boolean if we should bail (don't insert ads) |
|
714 | 714 | * |
715 | 715 | * @since 4.5.0 |
716 | 716 | */ |
@@ -47,7 +47,7 @@ |
||
47 | 47 | * @param array $args Widget args. |
48 | 48 | * @param array $instance The Widget instance. |
49 | 49 | * |
50 | - * @return bool|void |
|
50 | + * @return false|null |
|
51 | 51 | */ |
52 | 52 | public function widget( $args, $instance ) { |
53 | 53 | global $wordads; |
@@ -308,7 +308,7 @@ |
||
308 | 308 | * @since 8.7.0 |
309 | 309 | * |
310 | 310 | * @param array|string $data the data to be encoded. |
311 | - * @return boolean|string The encoded string on success, false on failure |
|
311 | + * @return false|string The encoded string on success, false on failure |
|
312 | 312 | */ |
313 | 313 | public function encrypt_data_to_wpcom( $data ) { |
314 | 314 |
@@ -50,6 +50,7 @@ |
||
50 | 50 | * Perform the IXR request. |
51 | 51 | * |
52 | 52 | * @param string[] ...$args IXR args. |
53 | + * @param string $args |
|
53 | 54 | * |
54 | 55 | * @return bool True if request succeeded, false otherwise. |
55 | 56 | */ |
@@ -25,6 +25,7 @@ |
||
25 | 25 | * The rest of the arguments are the params specified to the method. |
26 | 26 | * |
27 | 27 | * @param string[] ...$args IXR args. |
28 | + * @param string $args |
|
28 | 29 | */ |
29 | 30 | public function addCall( ...$args ) { |
30 | 31 | $method_name = array_shift( $args ); |