Passed
Branch ticket-41057 (c4f931)
by Stephen
24:38
created
tests/phpunit/tests/file.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -61,6 +61,9 @@
 block discarded – undo
61 61
 			$this->assertEquals( $expected[ $header ], $value, $header );
62 62
 	}
63 63
 
64
+	/**
65
+	 * @param string $filename
66
+	 */
64 67
 	function is_unique_writable_file($path, $filename) {
65 68
 		$fullpath = $path . DIRECTORY_SEPARATOR . $filename;
66 69
 
Please login to merge, or discard this patch.
tests/phpunit/tests/functions/deprecated.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,6 @@  discard block
 block discarded – undo
91 91
 
92 92
 	/**
93 93
 	 * Catch arguments that have passed through _deprecated_argument
94
-	 * @param string $argument
95 94
 	 * @param string $message
96 95
 	 * @param float $version
97 96
 	 * @return void
@@ -109,7 +108,7 @@  discard block
 block discarded – undo
109 108
 	 * Check if something was deprecated
110 109
 	 * @param string $type argument|function|file
111 110
 	 * @param string $name
112
-	 * @return array|false
111
+	 * @return string|false
113 112
 	 */
114 113
 	protected function was_deprecated( $type, $name ) {
115 114
 		switch ( $type ) {
Please login to merge, or discard this patch.
tests/phpunit/tests/general/template.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
190 190
 	 * @since 4.3.0
191 191
 	 *
192 192
 	 * @param $meta_tags
193
-	 * @return array
193
+	 * @return string[]
194 194
 	 */
195 195
 	function _custom_site_icon_meta_tag( $meta_tags ) {
196 196
 		$meta_tags[] = sprintf( '<link rel="apple-touch-icon" sizes="150x150" href="%s" />', esc_url( get_site_icon_url( 150 ) ) );
Please login to merge, or discard this patch.
tests/phpunit/tests/image/base.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	 * Helper assertion for testing alpha on images using GD library
39 39
 	 *
40 40
 	 * @param  string $image_path
41
-	 * @param  array $point      array(x,y)
41
+	 * @param  integer[] $point      array(x,y)
42 42
 	 * @param  int $alpha
43 43
 	 */
44 44
 	protected function assertImageAlphaAtPointGD( $image_path, $point, $alpha ) {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	 * Helper assertion for testing alpha on images using Imagick
55 55
 	 *
56 56
 	 * @param string $image_path
57
-	 * @param array $point      array(x,y)
57
+	 * @param integer[] $point      array(x,y)
58 58
 	 * @param int $expected
59 59
 	 */
60 60
 	protected function assertImageAlphaAtPointImagick( $image_path, $point, $expected ) {
Please login to merge, or discard this patch.
tests/phpunit/tests/image/intermediate_size.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
 		parent::tearDown();
16 16
 	}
17 17
 
18
+	/**
19
+	 * @param string $file
20
+	 */
18 21
 	public function _make_attachment( $file, $parent_post_id = 0 ) {
19 22
 		$contents = file_get_contents( $file );
20 23
 		$upload = wp_upload_bits( basename( $file ), null, $contents );
Please login to merge, or discard this patch.
tests/phpunit/tests/image/resize.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -163,6 +163,9 @@
 block discarded – undo
163 163
 
164 164
 	/**
165 165
 	 * Function to help out the tests
166
+	 * @param string $file
167
+	 * @param integer $width
168
+	 * @param integer $height
166 169
 	 */
167 170
 	protected function resize_helper( $file, $width, $height, $crop = false ) {
168 171
 		$editor = wp_get_image_editor( $file );
Please login to merge, or discard this patch.
tests/phpunit/tests/media.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -1201,6 +1201,8 @@
 block discarded – undo
1201 1201
 
1202 1202
 	/**
1203 1203
 	 * Helper function to move the src image to the first position in the expected srcset string.
1204
+	 * @param string $srcset
1205
+	 * @param string|false $src_url
1204 1206
 	 */
1205 1207
 	function _src_first( $srcset, $src_url, $src_width ) {
1206 1208
 		$src_string = $src_url . ' ' . $src_width . 'w';
Please login to merge, or discard this patch.
tests/phpunit/tests/multisite/updateBlogDetails.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,6 @@
 block discarded – undo
45 45
 	 *
46 46
 	 * @param string $flag       The name of the flag being set or unset on a site.
47 47
 	 * @param string $flag_value '0' or '1'. The value of the flag being set.
48
-	 * @param string $action     The hook expected to fire for the flag name and flag combination.
49 48
 	 *
50 49
 	 * @dataProvider data_flag_hooks
51 50
 	 */
Please login to merge, or discard this patch.
tests/phpunit/tests/option/userSettings.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -49,6 +49,11 @@
 block discarded – undo
49 49
 	}
50 50
 
51 51
 	// set_user_setting bails if `headers_sent()` is true
52
+
53
+	/**
54
+	 * @param string $name
55
+	 * @param string $value
56
+	 */
52 57
 	function set_user_setting( $name, $value ) {
53 58
 		$all_user_settings = get_all_user_settings();
54 59
 		$all_user_settings[ $name ] = $value;
Please login to merge, or discard this patch.