Completed
Push — add/jitm-builder ( c05944...443a73 )
by
unknown
10:01
created
modules/shortcodes/soundcloud.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
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
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
  *
170 170
  * @param  string $url
171 171
  *
172
- * @return boolean
172
+ * @return integer
173 173
  */
174 174
 function soundcloud_url_has_tracklist( $url ) {
175 175
 	return preg_match( '/^(.+?)\/(sets|groups|playlists)\/(.+?)$/', $url );
Please login to merge, or discard this patch.
class.jetpack-post-images.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,6 +153,7 @@  discard block
 block discarded – undo
153 153
 	/**
154 154
 	 * Get attachment images for a specified post and return them. Also make sure
155 155
 	 * their dimensions are at or above a required minimum.
156
+	 * @param integer $post_id
156 157
 	 */
157 158
 	static function from_attachment( $post_id, $width = 200, $height = 200 ) {
158 159
 		$images = array();
@@ -545,7 +546,6 @@  discard block
 block discarded – undo
545 546
 	 * resized and cropped image.
546 547
 	 *
547 548
 	 * @param  string $src
548
-	 * @param  int    $dimension
549 549
 	 * @return string            Transformed image URL
550 550
 	 */
551 551
 	static function fit_image_url( $src, $width, $height ) {
Please login to merge, or discard this patch.
modules/widgets/internet-defense-league.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -129,6 +129,9 @@
 block discarded – undo
129 129
 		echo '<p>' . sprintf( _x( 'Learn more about the %s', 'the Internet Defense League', 'jetpack' ), '<a href="https://www.internetdefenseleague.org/">Internet Defense League</a>' ) . '</p>';
130 130
 	}
131 131
 
132
+	/**
133
+	 * @param string $field_name
134
+	 */
132 135
 	public function select( $field_name, $options, $default = null ) {
133 136
 		echo '<select class="widefat" name="' . $this->get_field_name( $field_name ) . '">';
134 137
 		foreach ( $options as $option_slug => $option_name ) {
Please login to merge, or discard this patch.
class.jetpack-jitm-config.php 1 patch
Doc Comments   +26 added lines patch added patch discarded remove patch
@@ -7,12 +7,18 @@  discard block
 block discarded – undo
7 7
 
8 8
 	private $rule;
9 9
 
10
+	/**
11
+	 * @param string $key
12
+	 */
10 13
 	static function verify_array( &$array, $key ) {
11 14
 		if ( ! isset( $array[ $key ] ) ) {
12 15
 			$array[ $key ] = array();
13 16
 		}
14 17
 	}
15 18
 
19
+	/**
20
+	 * @param string $name
21
+	 */
16 22
 	function __construct( $name ) {
17 23
 		$this->rule            = array();
18 24
 		self::$config[ $name ] = &$this->rule;
@@ -30,6 +36,9 @@  discard block
 block discarded – undo
30 36
 		return $this;
31 37
 	}
32 38
 
39
+	/**
40
+	 * @param string $capability
41
+	 */
33 42
 	function user_can( $capability ) {
34 43
 		self::verify_array( $this->rule, 'caps' );
35 44
 
@@ -46,6 +55,9 @@  discard block
 block discarded – undo
46 55
 		return $this;
47 56
 	}
48 57
 
58
+	/**
59
+	 * @param string $plugin
60
+	 */
49 61
 	function plugin_inactive( $plugin ) {
50 62
 		self::verify_array( $this->rule, 'inactive_plugins' );
51 63
 
@@ -62,6 +74,9 @@  discard block
 block discarded – undo
62 74
 		return $this;
63 75
 	}
64 76
 
77
+	/**
78
+	 * @param string $screen
79
+	 */
65 80
 	function in_admin( $screen ) {
66 81
 		self::verify_array( $this->rule, 'message' );
67 82
 		self::verify_array( $this->rule['message'], 'screens' );
@@ -71,6 +86,9 @@  discard block
 block discarded – undo
71 86
 		return $this;
72 87
 	}
73 88
 
89
+	/**
90
+	 * @param string $hook
91
+	 */
74 92
 	function with_CTA( $message, $hook ) {
75 93
 		self::verify_array( $this->rule, 'message' );
76 94
 
@@ -90,6 +108,10 @@  discard block
 block discarded – undo
90 108
 		return $this;
91 109
 	}
92 110
 
111
+	/**
112
+	 * @param string $group
113
+	 * @param string $detail
114
+	 */
93 115
 	function track( $group, $detail ) {
94 116
 		$this->rule['tracker'] = array(
95 117
 			$group,
@@ -99,6 +121,10 @@  discard block
 block discarded – undo
99 121
 		return $this;
100 122
 	}
101 123
 
124
+	/**
125
+	 * @param string $key
126
+	 * @param integer $expected_value
127
+	 */
102 128
 	function has_query_parameter( $key, $expected_value = null ) {
103 129
 		self::verify_array( $this->rule, 'has_query' );
104 130
 
Please login to merge, or discard this patch.