Completed
Push — milestone/2.0 ( c8c0f3...e03107 )
by
unknown
06:41
created
core/Container/Term_Meta_Container.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 	 * Show the container only on terms from the specified taxonomies.
188 188
 	 *
189 189
 	 * @param string|array $taxonomies
190
-	 * @return object $this
190
+	 * @return Term_Meta_Container $this
191 191
 	 **/
192 192
 	public function show_on_taxonomy( $taxonomies ) {
193 193
 		$taxonomies = (array) $taxonomies;
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 	 * Show the container only on particular term level.
202 202
 	 *
203 203
 	 * @param int $term_level
204
-	 * @return object $this
204
+	 * @return Term_Meta_Container $this
205 205
 	 */
206 206
 	public function show_on_level( $term_level ) {
207 207
 		$this->settings['show_on_level'] = $term_level;
Please login to merge, or discard this patch.
core/Container/Container.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
 	 * Assign datastore instance for use by the container fields
500 500
 	 *
501 501
 	 * @param Datastore_Interface $datastore
502
-	 * @return object $this
502
+	 * @return Container $this
503 503
 	 **/
504 504
 	public function set_datastore( Datastore_Interface $datastore, $set_as_default = false ) {
505 505
 		if ( $set_as_default && !$this->has_default_datastore() ) {
@@ -723,7 +723,7 @@  discard block
 block discarded – undo
723 723
 	 * assigned to them instead.
724 724
 	 *
725 725
 	 * @param array $fields
726
-	 * @return object $this
726
+	 * @return Container $this
727 727
 	 **/
728 728
 	public function add_fields( $fields ) {
729 729
 		foreach ( $fields as $field ) {
@@ -749,7 +749,7 @@  discard block
 block discarded – undo
749 749
 	 *
750 750
 	 * @param string $tab_name
751 751
 	 * @param array $fields
752
-	 * @return object $this
752
+	 * @return Container $this
753 753
 	 */
754 754
 	public function add_tab( $tab_name, $fields ) {
755 755
 		$this->add_template( 'tabs', array( $this, 'template_tabs' ) );
Please login to merge, or discard this patch.
core/Container/Nav_Menu_Item_Container.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,6 @@
 block discarded – undo
42 42
 	 * Perform instance initialization
43 43
 	 *
44 44
 	 * @param int $menu_item_id Used to pass the correct menu_item_id to the Container object
45
-	 * @param bool $render Whether the container will render the fields.
46 45
 	 */
47 46
 	public function init( $menu_item_id = 0 ) {
48 47
 		$this->get_datastore()->set_id( $menu_item_id );
Please login to merge, or discard this patch.
core/Container/Post_Meta_Container.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 	 * Show the container only on particular page referenced by it's path.
343 343
 	 *
344 344
 	 * @param int|string $page page ID or page path
345
-	 * @return object $this
345
+	 * @return Post_Meta_Container $this
346 346
 	 **/
347 347
 	public function show_on_page( $page ) {
348 348
 		$page_id = absint( $page );
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 	 * Show the container only on pages whose parent is referenced by $parent_page_path.
369 369
 	 *
370 370
 	 * @param string $parent_page_path
371
-	 * @return object $this
371
+	 * @return Post_Meta_Container $this
372 372
 	 **/
373 373
 	public function show_on_page_children( $parent_page_path ) {
374 374
 		$page = get_page_by_path( $parent_page_path );
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 	 * @see show_on_taxonomy_term()
391 391
 	 *
392 392
 	 * @param string $category_slug
393
-	 * @return object $this
393
+	 * @return Post_Meta_Container $this
394 394
 	 **/
395 395
 	public function show_on_category( $category_slug ) {
396 396
 		$this->settings['show_on']['category'] = $category_slug;
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
 	 * Show the container only on pages whose template has filename $template_path.
403 403
 	 *
404 404
 	 * @param string|array $template_path
405
-	 * @return object $this
405
+	 * @return Post_Meta_Container $this
406 406
 	 **/
407 407
 	public function show_on_template( $template_path ) {
408 408
 		// Backwards compatibility where only pages support templates
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
 	 * Hide the container from pages whose template has filename $template_path.
428 428
 	 *
429 429
 	 * @param string|array $template_path
430
-	 * @return object $this
430
+	 * @return Post_Meta_Container $this
431 431
 	 **/
432 432
 	public function hide_on_template( $template_path ) {
433 433
 		if ( is_array( $template_path ) ) {
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
 	 * Levels start from 1 (top level post)
448 448
 	 *
449 449
 	 * @param int $level
450
-	 * @return object $this
450
+	 * @return Post_Meta_Container $this
451 451
 	 **/
452 452
 	public function show_on_level( $level ) {
453 453
 		if ( $level < 0 ) {
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
 	 *
465 465
 	 * @param string $taxonomy_slug
466 466
 	 * @param string $term_slug
467
-	 * @return object $this
467
+	 * @return Post_Meta_Container $this
468 468
 	 **/
469 469
 	public function show_on_taxonomy_term( $term_slug, $taxonomy_slug ) {
470 470
 		$term = get_term_by( 'slug', $term_slug, $taxonomy_slug );
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
 	 * Learn more about {@link http://codex.wordpress.org/Post_Formats Post Formats (Codex)}
482 482
 	 *
483 483
 	 * @param string|array $post_format Name of the format as listed on Codex
484
-	 * @return object $this
484
+	 * @return Post_Meta_Container $this
485 485
 	 **/
486 486
 	public function show_on_post_format( $post_format ) {
487 487
 		if ( is_array( $post_format ) ) {
@@ -503,8 +503,8 @@  discard block
 block discarded – undo
503 503
 	/**
504 504
 	 * Show the container only on posts from the specified type(s).
505 505
 	 *
506
-	 * @param string|array $post_types
507
-	 * @return object $this
506
+	 * @param string $post_types
507
+	 * @return Post_Meta_Container $this
508 508
 	 **/
509 509
 	public function show_on_post_type( $post_types ) {
510 510
 		$post_types = (array) $post_types;
Please login to merge, or discard this patch.
core/Container/Repository.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,6 @@
 block discarded – undo
141 141
 	/**
142 142
 	 * Check if container identificator id is unique
143 143
 	 * 
144
-	 * @param string $title
145 144
 	 */
146 145
 	protected function is_unique_panel_id( $id ) {
147 146
 		return !in_array( $id, $this->registered_panel_ids );
Please login to merge, or discard this patch.
core/Container/User_Meta_Container.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	/**
46 46
 	 * Checks whether the current request is valid
47 47
 	 *
48
-	 * @return bool
48
+	 * @return null|boolean
49 49
 	 **/
50 50
 	public function is_valid_save( $user_id = 0 ) {
51 51
 		if ( ! isset( $_REQUEST[ $this->get_nonce_name() ] ) || ! wp_verify_nonce( $_REQUEST[ $this->get_nonce_name() ], $this->get_nonce_name() ) ) {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 * Perform checks whether the current save() request is valid
64 64
 	 *
65 65
 	 * @param int $user_id ID of the user against which save() is ran
66
-	 * @return bool
66
+	 * @return null|boolean
67 67
 	 **/
68 68
 	public function is_valid_save_conditions( $user_id ) {
69 69
 		$valid = true;
@@ -198,7 +198,6 @@  discard block
 block discarded – undo
198 198
 	/**
199 199
 	 * Validate and parse the show_for logic rules.
200 200
 	 *
201
-	 * @param array $rules
202 201
 	 * @return array
203 202
 	 */
204 203
 	protected function parse_show_for( $show_for ) {
@@ -246,7 +245,7 @@  discard block
 block discarded – undo
246 245
 	 * Show the container only on users who have the $role role.
247 246
 	 *
248 247
 	 * @param string $role
249
-	 * @return object $this
248
+	 * @return User_Meta_Container $this
250 249
 	 **/
251 250
 	public function show_on_user_role( $role ) {
252 251
 		$this->settings['show_on']['role'] = (array) $role;
@@ -258,7 +257,7 @@  discard block
 block discarded – undo
258 257
 	 * Show the container only for users who have either capabilities or roles setup
259 258
 	 *
260 259
 	 * @param array $show_for
261
-	 * @return object $this
260
+	 * @return User_Meta_Container $this
262 261
 	 **/
263 262
 	public function show_for( $show_for ) {
264 263
 		$this->settings['show_for'] = $this->parse_show_for( $show_for );
Please login to merge, or discard this patch.
core/Container/Widget_Container.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 	/**
11 11
 	 * Create a new widget
12 12
 	 *
13
-	 * @param string $id Unique ID of the widget
14 13
 	 **/
15 14
 	public function __construct( $unique_id, $title, $type ) {
16 15
 		$this->id = $unique_id;
Please login to merge, or discard this patch.
core/Datastore/Key_Value_Datastore.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -225,6 +225,7 @@
 block discarded – undo
225 225
 	/**
226 226
 	 * Convert an array of storage key patterns to a parentheses-enclosed sql comparison
227 227
 	 *
228
+	 * @param string $column
228 229
 	 * @return string
229 230
 	 **/
230 231
 	protected function storage_key_patterns_to_sql( $column, $patterns ) {
Please login to merge, or discard this patch.
core/Field/Checkbox_Field.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	/**
41 41
 	 * Return a differently formatted value for end-users
42 42
 	 *
43
-	 * @return mixed
43
+	 * @return boolean
44 44
 	 **/
45 45
 	public function get_formatted_value() {
46 46
 		return ( $this->get_value() === $this->option_value );
Please login to merge, or discard this patch.