Completed
Push — master ( 9c3abc...2c705a )
by Marin
03:58
created
core/Container/Container.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -632,7 +632,7 @@
 block discarded – undo
632 632
 	/**
633 633
 	 * Assign DataStore instance for use by the container fields
634 634
 	 *
635
-	 * @param object $store
635
+	 * @param Datastore_Interface $store
636 636
 	 **/
637 637
 	function set_datastore(Datastore_Interface $store) {
638 638
 		$this->store = $store;
Please login to merge, or discard this patch.
core/Container/Nav_Menu_Container.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 	/**
19 19
 	 * Create a new nav menu item fields container
20 20
 	 *
21
-	 * @param string $title Unique title of the container
22 21
 	 **/
23 22
 	function __construct($id) {
24 23
 		// Reset the registered fields array, this is required so we can have fields with same names
Please login to merge, or discard this patch.
core/Container/Post_Meta_Container.php 1 patch
Doc Comments   +11 added lines, -12 removed lines patch added patch discarded remove patch
@@ -433,8 +433,8 @@  discard block
 block discarded – undo
433 433
 	/**
434 434
 	 * Show the container only on pages whose parent is referenced by $parent_page_path.
435 435
 	 *
436
-	 * @param string $page_path
437
-	 * @return object $this
436
+	 * @param string $parent_page_path
437
+	 * @return Post_Meta_Container $this
438 438
 	 **/
439 439
 	function show_on_page_children($parent_page_path) {
440 440
 		$page = get_page_by_path($parent_page_path);
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 	 * Show the container only on particular page referenced by it's path.
453 453
 	 *
454 454
 	 * @param int|string $page page ID or page path
455
-	 * @return object $this
455
+	 * @return Post_Meta_Container $this
456 456
 	 **/
457 457
 	function show_on_page($page) {
458 458
 		if ( is_int($page) ) {
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
 	 * @see show_on_taxonomy_term()
477 477
 	 *
478 478
 	 * @param string $category_slug
479
-	 * @return object $this
479
+	 * @return Post_Meta_Container $this
480 480
 	 **/
481 481
 	function show_on_category($category_slug) {
482 482
 		$this->settings['show_on']['category'] = $category_slug;
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
 	 * Show the container only on pages whose template has filename $template_path.
489 489
 	 *
490 490
 	 * @param string|array $template_path
491
-	 * @return object $this
491
+	 * @return Post_Meta_Container $this
492 492
 	 **/
493 493
 	function show_on_template($template_path) {
494 494
 		if ( is_array($template_path) ) {
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
 	 * Hide the container from pages whose template has filename $template_path.
508 508
 	 *
509 509
 	 * @param string|array $template_path
510
-	 * @return object $this
510
+	 * @return Post_Meta_Container $this
511 511
 	 **/
512 512
 	function hide_on_template($template_path) {
513 513
 		if ( is_array($template_path) ) {
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
 	 * Levels start from 1 (top level post)
528 528
 	 *
529 529
 	 * @param int $level
530
-	 * @return object $this
530
+	 * @return Post_Meta_Container $this
531 531
 	 **/
532 532
 	function show_on_level($level) {
533 533
 		if ($level < 0 ) {
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
 	 *
545 545
 	 * @param string $taxonomy_slug
546 546
 	 * @param string $term_slug
547
-	 * @return object $this
547
+	 * @return Post_Meta_Container $this
548 548
 	 **/
549 549
 	function show_on_taxonomy_term($term_slug, $taxonomy_slug) {
550 550
 		$term = get_term_by('slug', $term_slug, $taxonomy_slug);
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
 	 * Learn more about {@link http://codex.wordpress.org/Post_Formats Post Formats (Codex)}
562 562
 	 *
563 563
 	 * @param string|array $post_format Name of the format as listed on Codex
564
-	 * @return object $this
564
+	 * @return Post_Meta_Container $this
565 565
 	 **/
566 566
 	function show_on_post_format($post_format) {
567 567
 		if ( is_array($post_format) ) {
@@ -583,8 +583,8 @@  discard block
 block discarded – undo
583 583
 	/**
584 584
 	 * Show the container only on posts from the specified type(s).
585 585
 	 *
586
-	 * @param string|array $post_type
587
-	 * @return object $this
586
+	 * @param string|array $post_types
587
+	 * @return Post_Meta_Container $this
588 588
 	 **/
589 589
 	function show_on_post_type($post_types) {
590 590
 		$post_types = (array)$post_types;
@@ -610,7 +610,6 @@  discard block
 block discarded – undo
610 610
 	 * Sets the meta box container priority
611 611
 	 *
612 612
 	 * @see https://codex.wordpress.org/Function_Reference/add_meta_box
613
-	 * @param string $context ('high', 'core', 'default' or 'low')
614 613
 	 */
615 614
 	function set_priority($priority) {
616 615
 		$this->settings['panel_priority'] = $priority;
Please login to merge, or discard this patch.
core/Container/Term_Meta_Container.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -187,8 +187,7 @@  discard block
 block discarded – undo
187 187
 	/**
188 188
 	 * Show the container only on terms from the specified taxonomies.
189 189
 	 *
190
-	 * @param string|array $post_type
191
-	 * @return object $this
190
+	 * @return Term_Meta_Container $this
192 191
 	 **/
193 192
 	function show_on_taxonomy($taxonomies) {
194 193
 		$taxonomies = (array)$taxonomies;
@@ -202,7 +201,7 @@  discard block
 block discarded – undo
202 201
 	 * Show the container only on particular term level. 
203 202
 	 *
204 203
 	 * @param int $term_level 
205
-	 * @return object $this 
204
+	 * @return Term_Meta_Container $this 
206 205
 	 */ 
207 206
 	function show_on_level($term_level) {                    
208 207
 		$this->settings['show_on_level'] = $term_level; 
Please login to merge, or discard this patch.
core/Field/Field.php 1 patch
Doc Comments   +16 added lines, -17 removed lines patch added patch discarded remove patch
@@ -304,8 +304,8 @@  discard block
 block discarded – undo
304 304
 	/**
305 305
 	 * Assign DataStore instance for use during load, save and delete
306 306
 	 *
307
-	 * @param object $store
308
-	 * @return object $this
307
+	 * @param Datastore_Interface $store
308
+	 * @return Field $this
309 309
 	 **/
310 310
 	function set_datastore(Datastore_Interface $store) {
311 311
 		$this->store = $store;
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 	 * Assign the type of the container this field is in
326 326
 	 *
327 327
 	 * @param string
328
-	 * @return object $this
328
+	 * @return Field $this
329 329
 	 **/
330 330
 	function set_context($context) {
331 331
 		$this->context = $context;
@@ -353,7 +353,6 @@  discard block
 block discarded – undo
353 353
 	/**
354 354
 	 * Set default field value
355 355
 	 *
356
-	 * @param mixed $value
357 356
 	 **/
358 357
 	function set_default_value($default_value) {
359 358
 		$this->default_value = $default_value;
@@ -423,7 +422,7 @@  discard block
 block discarded – undo
423 422
 	 * Set field name prefix. Calling this method will update the current field name and the conditional logic fields.
424 423
 	 *
425 424
 	 * @param string $prefix
426
-	 * @return object $this
425
+	 * @return Field $this
427 426
 	 **/
428 427
 	function set_prefix($prefix) {
429 428
 		$this->name = preg_replace('~^' . preg_quote($this->name_prefix, '~') . '~', '', $this->name);
@@ -467,7 +466,7 @@  discard block
 block discarded – undo
467 466
 	 * Set additional text to be displayed during field render,
468 467
 	 * containing information and guidance for the user
469 468
 	 *
470
-	 * @return object $this
469
+	 * @return Field $this
471 470
 	 **/
472 471
 	function set_help_text($help_text) {
473 472
 		$this->help_text = $help_text;
@@ -478,7 +477,7 @@  discard block
 block discarded – undo
478 477
 	 * Alias for set_help_text()
479 478
 	 *
480 479
 	 * @see set_help_text()
481
-	 * @return object $this
480
+	 * @return Field $this
482 481
 	 **/
483 482
 	function help_text($help_text) {
484 483
 		return $this->set_help_text($help_text);
@@ -487,7 +486,7 @@  discard block
 block discarded – undo
487 486
 	/**
488 487
 	 * Return the field help text
489 488
 	 *
490
-	 * @return object $this
489
+	 * @return string $this
491 490
 	 **/
492 491
 	function get_help_text() {
493 492
 		return $this->help_text;
@@ -497,7 +496,7 @@  discard block
 block discarded – undo
497 496
 	 * Whether or not this value should be auto loaded. Applicable to theme options only.
498 497
 	 *
499 498
 	 * @param bool $autoload
500
-	 * @return object $this
499
+	 * @return Field $this
501 500
 	 **/
502 501
 	function set_autoload($autoload) {
503 502
 		$this->autoload = $autoload;
@@ -516,8 +515,7 @@  discard block
 block discarded – undo
516 515
 	/**
517 516
 	 * Whether or not this field will be initialized when the field is in the viewport (visible).
518 517
 	 * 
519
-	 * @param bool $autoload
520
-	 * @return object $this
518
+	 * @return Field $this
521 519
 	 **/
522 520
 	function set_lazyload($lazyload) {
523 521
 		$this->lazyload = $lazyload;
@@ -537,7 +535,7 @@  discard block
 block discarded – undo
537 535
 	 * Set the field width.
538 536
 	 * 
539 537
 	 * @param int $width
540
-	 * @return object $this
538
+	 * @return Field $this
541 539
 	 **/
542 540
 	function set_width($width) {
543 541
 		$this->width = (int) $width;
@@ -557,7 +555,7 @@  discard block
 block discarded – undo
557 555
 	 *  Add custom CSS class to the field html container.
558 556
 	 * 
559 557
 	 * @param string|array $classes
560
-	 * @return object $this
558
+	 * @return Field $this
561 559
 	 **/
562 560
 	function add_class($classes) {
563 561
 		if (!is_array($classes)) {
@@ -581,7 +579,7 @@  discard block
 block discarded – undo
581 579
 	 * Whether this field is mandatory for the user
582 580
 	 *
583 581
 	 * @param bool $required
584
-	 * @return object $this
582
+	 * @return Field $this
585 583
 	 **/
586 584
 	function set_required($required) {
587 585
 		$this->required = $required;
@@ -590,7 +588,7 @@  discard block
 block discarded – undo
590 588
 
591 589
 	/**
592 590
 	 * HTML id attribute getter.
593
-	 * @return string
591
+	 * @return integer
594 592
 	 */
595 593
 	function get_id() {
596 594
 		return $this->id;
@@ -630,6 +628,7 @@  discard block
 block discarded – undo
630 628
 	/**
631 629
 	 * Cleans up an object class for usage as HTML class
632 630
 	 *
631
+	 * @param string $type
633 632
 	 * @return string
634 633
 	 */
635 634
 	protected function clean_type($type) {
@@ -647,7 +646,7 @@  discard block
 block discarded – undo
647 646
 	/**
648 647
 	 * Return an array of html classes to be used for the field container
649 648
 	 *
650
-	 * @return array
649
+	 * @return string[]
651 650
 	 */
652 651
 	public function get_html_class() {
653 652
 		$html_classes = array();
@@ -833,7 +832,7 @@  discard block
 block discarded – undo
833 832
 	/**
834 833
 	 * Changes the options array structure. This is needed to keep the array items order when it is JSON encoded.
835 834
 	 *
836
-	 * @param array $options
835
+	 * @param string $options
837 836
 	 * @return array
838 837
 	 */
839 838
 	public function parse_options($options) {
Please login to merge, or discard this patch.
core/Helper/Helper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -547,7 +547,7 @@
 block discarded – undo
547 547
 	 * Recursive sorting function by array key.
548 548
 	 * @param  array  &$array     The input array.
549 549
 	 * @param  int    $sort_flags Flags for controlling sorting behavior.
550
-	 * @return array              Sorted array.
550
+	 * @return boolean              Sorted array.
551 551
 	 */
552 552
 	public static function ksort_recursive( &$array, $sort_flags = SORT_REGULAR ) {
553 553
 		if (!is_array($array)) {
Please login to merge, or discard this patch.