@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @param string $name The key name (will be prefixed). |
53 | 53 | * @param mixed $default The default value if not found (Default: null) |
54 | 54 | * |
55 | - * @return mixed The value or $default if not found. |
|
55 | + * @return string The value or $default if not found. |
|
56 | 56 | */ |
57 | 57 | public static function _SERVER( $name, $default = null ) { |
58 | 58 | return self::get( $_SERVER, $name, $default ); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * |
127 | 127 | * @param mixed $value The value to return from the closure. |
128 | 128 | * |
129 | - * @return Closure The closure with the $value bound. |
|
129 | + * @return \Closure The closure with the $value bound. |
|
130 | 130 | */ |
131 | 131 | public static function _return( $value ) { |
132 | 132 | return function() use ( $value ) { return $value; }; |
@@ -73,7 +73,7 @@ |
||
73 | 73 | * |
74 | 74 | * @param array $allowlist Array of widgets to show before a search is performed, if the setting is enabled. |
75 | 75 | * |
76 | - * @return array |
|
76 | + * @return string[] |
|
77 | 77 | */ |
78 | 78 | function add_to_allowlist( $allowlist ) { |
79 | 79 |
@@ -97,7 +97,7 @@ |
||
97 | 97 | * @uses api_request() |
98 | 98 | * |
99 | 99 | * @param array $_transient_data Update array build by WordPress. |
100 | - * @return array Modified update array with custom plugin data. |
|
100 | + * @return stdClass Modified update array with custom plugin data. |
|
101 | 101 | */ |
102 | 102 | public function check_update( $_transient_data ) { |
103 | 103 |
@@ -510,6 +510,9 @@ discard block |
||
510 | 510 | $this->settings->set( $settings ); |
511 | 511 | } |
512 | 512 | |
513 | + /** |
|
514 | + * @param boolean $echo |
|
515 | + */ |
|
513 | 516 | public function settings_edd_license_activation( $field, $echo ) { |
514 | 517 | |
515 | 518 | $script_debug = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; |
@@ -617,7 +620,6 @@ discard block |
||
617 | 620 | * Check the GravityView license information |
618 | 621 | * |
619 | 622 | * @since 1.19.3 |
620 | - * @param bool $force Whether to force checking license, even if AJAX |
|
621 | 623 | * |
622 | 624 | * @return void |
623 | 625 | */ |
@@ -140,7 +140,7 @@ |
||
140 | 140 | * |
141 | 141 | * @param array $items Styles to exclude from no-conflict |
142 | 142 | * |
143 | - * @return array |
|
143 | + * @return string[] |
|
144 | 144 | */ |
145 | 145 | public function register_no_conflict( $items ) { |
146 | 146 |
@@ -65,7 +65,7 @@ |
||
65 | 65 | /** |
66 | 66 | * Returns an array of tokens this test wants to listen for. |
67 | 67 | * |
68 | - * @return array |
|
68 | + * @return integer[] |
|
69 | 69 | */ |
70 | 70 | public function register() |
71 | 71 | { |
@@ -1016,7 +1016,7 @@ |
||
1016 | 1016 | * @param \PHP_CodeSniffer_File $phpcsFile The file being scanned. |
1017 | 1017 | * @param int $stackPtr The position of the return type token. |
1018 | 1018 | * |
1019 | - * @return string|false The name of the return type token. |
|
1019 | + * @return null|string The name of the return type token. |
|
1020 | 1020 | */ |
1021 | 1021 | public function getReturnTypeHintName(File $phpcsFile, $stackPtr) |
1022 | 1022 | { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | * |
48 | 48 | * @since 9.2.0 |
49 | 49 | * |
50 | - * @return array |
|
50 | + * @return integer[] |
|
51 | 51 | */ |
52 | 52 | public function register() |
53 | 53 | { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * |
46 | 46 | * @since 9.2.0 |
47 | 47 | * |
48 | - * @return array |
|
48 | + * @return string[] |
|
49 | 49 | */ |
50 | 50 | public function register() |
51 | 51 | { |