@@ -199,7 +199,7 @@ |
||
199 | 199 | * @param string $type Test type, async or direct. Optional, direct all tests. |
200 | 200 | * @param string $group Testing group to check status of. Optional, default all tests. |
201 | 201 | * |
202 | - * @return true|array True if all tests pass. Array of failed tests. |
|
202 | + * @return boolean True if all tests pass. Array of failed tests. |
|
203 | 203 | */ |
204 | 204 | public function pass( $type = 'all', $group = 'all' ) { |
205 | 205 | $results = $this->raw_results( $type, $group ); |
@@ -416,7 +416,7 @@ |
||
416 | 416 | * Only enqueue block assets when needed. |
417 | 417 | * |
418 | 418 | * @param string $type Slug of the block. |
419 | - * @param array $script_dependencies Script dependencies. Will be merged with automatically |
|
419 | + * @param string[] $script_dependencies Script dependencies. Will be merged with automatically |
|
420 | 420 | * detected script dependencies from the webpack build. |
421 | 421 | * |
422 | 422 | * @return void |
@@ -129,6 +129,9 @@ discard block |
||
129 | 129 | return apply_filters( 'jp_carousel_load_for_images_linked_to_file', false ); |
130 | 130 | } |
131 | 131 | |
132 | + /** |
|
133 | + * @param string $version |
|
134 | + */ |
|
132 | 135 | function asset_version( $version ) { |
133 | 136 | /** |
134 | 137 | * Filter the version string used when enqueuing Carousel assets. |
@@ -511,6 +514,9 @@ discard block |
||
511 | 514 | return $attr; |
512 | 515 | } |
513 | 516 | |
517 | + /** |
|
518 | + * @param string $html |
|
519 | + */ |
|
514 | 520 | function add_data_to_container( $html ) { |
515 | 521 | global $post; |
516 | 522 | if ( |
@@ -757,6 +763,9 @@ discard block |
||
757 | 763 | return ( 1 == $value ) ? 1 : 0; |
758 | 764 | } |
759 | 765 | |
766 | + /** |
|
767 | + * @param string $name |
|
768 | + */ |
|
760 | 769 | function settings_checkbox( $name, $label_text, $extra_text = '', $default_to_checked = true ) { |
761 | 770 | if ( empty( $name ) ) { |
762 | 771 | return; |
@@ -772,6 +781,9 @@ discard block |
||
772 | 781 | echo '</fieldset>'; |
773 | 782 | } |
774 | 783 | |
784 | + /** |
|
785 | + * @param string $name |
|
786 | + */ |
|
775 | 787 | function settings_select( $name, $values, $extra_text = '' ) { |
776 | 788 | if ( empty( $name ) || ! is_array( $values ) || empty( $values ) ) { |
777 | 789 | return; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | /** |
143 | 143 | * Plugin options getter |
144 | 144 | * |
145 | - * @param string|array $option Option name. |
|
145 | + * @param string $option Option name. |
|
146 | 146 | * @param mixed $default Default value. |
147 | 147 | * |
148 | 148 | * @return mixed Option value |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * |
159 | 159 | * @param string $url Soundcloud URL. |
160 | 160 | * |
161 | - * @return boolean |
|
161 | + * @return integer |
|
162 | 162 | */ |
163 | 163 | function soundcloud_url_has_tracklist( $url ) { |
164 | 164 | return preg_match( '/^(.+?)\/(sets|groups|playlists)\/(.+?)$/', $url ); |
@@ -228,6 +228,9 @@ |
||
228 | 228 | ); |
229 | 229 | } |
230 | 230 | |
231 | + /** |
|
232 | + * @param Queue $queue |
|
233 | + */ |
|
231 | 234 | protected function get_buffer( $queue, $number_of_items ) { |
232 | 235 | $start = time(); |
233 | 236 | $max_duration = 5; // this will try to get the buffer |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * Converts GlotPress URL into a GlotPress API URL |
24 | 24 | * |
25 | - * @param sring $url URL |
|
25 | + * @param string $url URL |
|
26 | 26 | * @return sstring API URL |
27 | 27 | */ |
28 | 28 | function apize_url( $url ) { |
@@ -95,6 +95,9 @@ |
||
95 | 95 | return (array) $upgrader->skin->get_upgrade_messages(); |
96 | 96 | } |
97 | 97 | |
98 | + /** |
|
99 | + * @param string $plugin_slug |
|
100 | + */ |
|
98 | 101 | protected static function generate_wordpress_org_plugin_download_link( $plugin_slug ) { |
99 | 102 | return "https://downloads.wordpress.org/plugin/$plugin_slug.latest-stable.zip"; |
100 | 103 | } |
@@ -115,7 +115,7 @@ |
||
115 | 115 | * Mock a global function and make it return a certain value. |
116 | 116 | * |
117 | 117 | * @param string $function_name Name of the function. |
118 | - * @param mixed $return_value Return value of the function. |
|
118 | + * @param integer $return_value Return value of the function. |
|
119 | 119 | * @return phpmock\Mock The mock object. |
120 | 120 | */ |
121 | 121 | protected function mock_function( $function_name, $return_value = null ) { |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * @param string $vendorPath Path to the vendor directory. |
161 | 161 | * @param string $basePath Base Path. |
162 | 162 | * |
163 | - * @return array $classMap |
|
163 | + * @return string $classMap |
|
164 | 164 | */ |
165 | 165 | private function getClassMap( array $autoloads, Filesystem $filesystem, $vendorPath, $basePath ) { |
166 | 166 | $blacklist = null; |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | /** |
225 | 225 | * Generate the PHP that will be used in the autoload_classmap_package.php files. |
226 | 226 | * |
227 | - * @param srting $classMap class map array string that is to be written out to the file. |
|
227 | + * @param string $classMap class map array string that is to be written out to the file. |
|
228 | 228 | * |
229 | 229 | * @return string |
230 | 230 | */ |