Completed
Pull Request — 2.x (#3394)
by Scott Kingsley
19:22 queued 12:37
created
classes/fields/website.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,6 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * Add options and set defaults to
50 50
      *
51
-     * @param array $options
52 51
      *
53 52
      * @since 2.0
54 53
      */
@@ -106,7 +105,7 @@  discard block
 block discarded – undo
106 105
      *
107 106
      * @param array $options
108 107
      *
109
-     * @return array
108
+     * @return string
110 109
      * @since 2.0
111 110
      */
112 111
     public function schema ( $options = null ) {
Please login to merge, or discard this patch.
classes/fields/wysiwyg.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,6 @@
 block discarded – undo
193 193
      * @param mixed $value
194 194
      * @param string $name
195 195
      * @param array $options
196
-     * @param array $fields
197 196
      * @param array $pod
198 197
      * @param int $id
199 198
      *
Please login to merge, or discard this patch.
classes/Pods.php 1 patch
Doc Comments   +7 added lines, -10 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 	/**
331 331
 	 * Rewind Iterator
332 332
 	 *
333
-	 * @return void|boolean
333
+	 * @return null|false
334 334
 	 *
335 335
 	 * @since 2.3.4
336 336
 	 *
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 	/**
382 382
 	 * Move onto the next Iterator row
383 383
 	 *
384
-	 * @return void|boolean
384
+	 * @return null|false
385 385
 	 *
386 386
 	 * @since 2.3.4
387 387
 	 *
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
 	/**
476 476
 	 * Return field array from a Pod, a field's data, or a field option
477 477
 	 *
478
-	 * @param null $field
478
+	 * @param string $field
479 479
 	 * @param null $option
480 480
 	 *
481 481
 	 * @return bool|mixed
@@ -1927,7 +1927,6 @@  discard block
 block discarded – undo
1927 1927
 	 * Return the next item ID, loops at the first id to return the last
1928 1928
 	 *
1929 1929
 	 * @param int $id
1930
-	 * @param array $find_params
1931 1930
 	 *
1932 1931
 	 * @return int
1933 1932
 	 * @since 2.0
@@ -2443,7 +2442,7 @@  discard block
 block discarded – undo
2443 2442
 	 * @param null|int $offset Offset of rows
2444 2443
 	 * @param null|int $total Total rows
2445 2444
 	 *
2446
-	 * @return int Number of pages
2445
+	 * @return double Number of pages
2447 2446
 	 * @since 2.3.10
2448 2447
 	 */
2449 2448
 	public function total_pages( $limit = null, $offset = null, $total = null ) {
@@ -2552,7 +2551,7 @@  discard block
 block discarded – undo
2552 2551
 	 * @see PodsAPI::save_pod_item
2553 2552
 	 *
2554 2553
 	 * @param string $field Field name
2555
-	 * @param mixed $value ID(s) to add, int|float to add to number field, string for dates (+1 week), or string for text
2554
+	 * @param string $value ID(s) to add, int|float to add to number field, string for dates (+1 week), or string for text
2556 2555
 	 * @param int $id (optional) ID of the pod item to update
2557 2556
 	 *
2558 2557
 	 * @return int The item ID
@@ -2658,7 +2657,7 @@  discard block
 block discarded – undo
2658 2657
 	 * @see PodsAPI::save_pod_item
2659 2658
 	 *
2660 2659
 	 * @param string $field Field name
2661
-	 * @param mixed $value ID(s) to add, int|float to add to number field, string for dates (-1 week), or string for text
2660
+	 * @param string $value ID(s) to add, int|float to add to number field, string for dates (-1 week), or string for text
2662 2661
 	 * @param int $id (optional) ID of the pod item to update
2663 2662
 	 *
2664 2663
 	 * @return int The item ID
@@ -3261,7 +3260,7 @@  discard block
 block discarded – undo
3261 3260
 	 *
3262 3261
 	 * @see Pods_Templates::template
3263 3262
 	 *
3264
-	 * @param string $template The template name
3263
+	 * @param string $template_name The template name
3265 3264
 	 * @param string $code Custom template code to use instead
3266 3265
 	 * @param bool $deprecated Whether to use deprecated functionality based on old function usage
3267 3266
 	 *
@@ -3547,7 +3546,6 @@  discard block
 block discarded – undo
3547 3546
 	 * Replace magic tags with their values
3548 3547
 	 *
3549 3548
 	 * @param string $code The content to evaluate
3550
-	 * @param object $obj The Pods object
3551 3549
 	 *
3552 3550
 	 * @return string Code with Magic Tags evaluated
3553 3551
 	 *
@@ -3561,7 +3559,6 @@  discard block
 block discarded – undo
3561 3559
 	 * Replace magic tags with their values
3562 3560
 	 *
3563 3561
 	 * @param string $tag The magic tag to process
3564
-	 * @param object $obj The Pods object
3565 3562
 	 *
3566 3563
 	 * @return string Code with Magic Tags evaluated
3567 3564
 	 *
Please login to merge, or discard this patch.
classes/PodsArray.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     /**
93 93
      * Validate value on a specific type and set default (if empty)
94 94
      *
95
-     * @param mixed $offset Used to get value of Array or Variable on Object
95
+     * @param string $offset Used to get value of Array or Variable on Object
96 96
      * @param mixed $default Used to set default value if it doesn't exist
97 97
      * @param string $type Used to force a specific type of variable (allowed: array, object, integer, absint, boolean)
98 98
      * @param mixed $extra Used in advanced types of variables
Please login to merge, or discard this patch.
classes/PodsComponents.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -493,6 +493,9 @@  discard block
 block discarded – undo
493 493
         }
494 494
     }
495 495
 
496
+    /**
497
+     * @param string $settings
498
+     */
496 499
     public function admin ( $options, $settings, $component ) {
497 500
         if ( !isset( $this->components[ $component ] ) )
498 501
             wp_die( 'Invalid Component' );
@@ -507,7 +510,7 @@  discard block
 block discarded – undo
507 510
      *
508 511
      * @param string $component The component name to toggle
509 512
      *
510
-     * @return bool
513
+     * @return boolean|null
511 514
      *
512 515
      * @since 2.0
513 516
      */
Please login to merge, or discard this patch.
classes/PodsField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
      *
145 145
      * @param array $options
146 146
      *
147
-     * @return array
147
+     * @return string
148 148
      * @since 2.0
149 149
      */
150 150
     public function prepare ( $options = null ) {
Please login to merge, or discard this patch.
classes/PodsForm.php 1 patch
Doc Comments   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -414,6 +414,8 @@  discard block
 block discarded – undo
414 414
      * Merge attributes and handle classes
415 415
      *
416 416
      * @since 2.0
417
+     * @param string $name
418
+     * @param string $type
417 419
      */
418 420
     public static function merge_attributes( $attributes, $name = null, $type = null, $options = null, $classes = '' ) {
419 421
         $options = (array) $options;
@@ -832,7 +834,6 @@  discard block
 block discarded – undo
832 834
      * @param mixed $value
833 835
      * @param string $name
834 836
      * @param array $options
835
-     * @param array $fields
836 837
      * @param array $pod
837 838
      * @param int $id
838 839
      * @param array $traverse
@@ -874,7 +875,6 @@  discard block
 block discarded – undo
874 875
      * @param mixed $value
875 876
      * @param string $name
876 877
      * @param array $options
877
-     * @param array $fields
878 878
      * @param array $pod
879 879
      * @param int $id
880 880
      * @param array $traverse
@@ -1225,9 +1225,6 @@  discard block
 block discarded – undo
1225 1225
     /**
1226 1226
      * Run a method from a Field Type's class
1227 1227
      *
1228
-     * @param string $field_type Field Type indentifier
1229
-     * @param string $method Method name
1230
-     * @param mixed $arg More arguments
1231 1228
      *
1232 1229
      * @return mixed
1233 1230
      * @access public
Please login to merge, or discard this patch.
classes/PodsMigrate.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
      * @param array $data Array of data
458 458
      * @param string $delimiter Delimiter for export type 'sv'
459 459
      *
460
-     * @return bool
460
+     * @return false|string
461 461
      */
462 462
     public function build_sv ( $data = null, $delimiter = null ) {
463 463
         if ( !empty( $data ) )
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
     /**
522 522
      * @param array $data Array of data
523 523
      *
524
-     * @return bool
524
+     * @return false|string
525 525
      */
526 526
     public function build_xml ( $data = null ) {
527 527
         if ( !empty( $data ) )
Please login to merge, or discard this patch.
classes/PodsUI.php 1 patch
Doc Comments   +9 added lines, -10 removed lines patch added patch discarded remove patch
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
      * @param mixed $options Object, Array, or String containing Pod or Options to be used
428 428
      * @param bool $deprecated Set to true to support old options array from Pods UI plugin
429 429
      *
430
-     * @return \PodsUI
430
+     * @return false|null
431 431
      *
432 432
      * @license http://www.gnu.org/licenses/gpl-2.0.html
433 433
      * @since 2.0
@@ -1294,7 +1294,7 @@  discard block
 block discarded – undo
1294 1294
     }
1295 1295
 
1296 1296
     /**
1297
-     * @return mixed
1297
+     * @return null|boolean
1298 1298
      */
1299 1299
     public function go () {
1300 1300
         $this->do_hook( 'go' );
@@ -1494,7 +1494,7 @@  discard block
 block discarded – undo
1494 1494
      * @param bool $create
1495 1495
      * @param bool $duplicate
1496 1496
      *
1497
-     * @return bool|mixed
1497
+     * @return null|boolean
1498 1498
      */
1499 1499
     public function form ( $create = false, $duplicate = false ) {
1500 1500
         if ( in_array( 'duplicate', $this->actions_disabled ) )
@@ -1635,7 +1635,7 @@  discard block
 block discarded – undo
1635 1635
     }
1636 1636
 
1637 1637
     /**
1638
-     * @return bool|mixed
1638
+     * @return null|boolean
1639 1639
 	 * @since 2.3.10
1640 1640
      */
1641 1641
     public function view () {
@@ -1886,9 +1886,9 @@  discard block
 block discarded – undo
1886 1886
     }
1887 1887
 
1888 1888
     /**
1889
-     * @param null $id
1889
+     * @param integer $id
1890 1890
      *
1891
-     * @return bool|mixed
1891
+     * @return null|boolean
1892 1892
      */
1893 1893
     public function delete ( $id = null ) {
1894 1894
         $this->do_hook( 'pre_delete', $id );
@@ -1922,7 +1922,6 @@  discard block
 block discarded – undo
1922 1922
     }
1923 1923
 
1924 1924
     /**
1925
-     * @param null $id
1926 1925
      *
1927 1926
      * @return bool|mixed
1928 1927
      */
@@ -2179,7 +2178,6 @@  discard block
 block discarded – undo
2179 2178
     }
2180 2179
 
2181 2180
     /**
2182
-     * @param bool $full Whether to get ALL data or use pagination
2183 2181
      *
2184 2182
      * @return bool
2185 2183
      */
@@ -2298,6 +2296,7 @@  discard block
 block discarded – undo
2298 2296
     }
2299 2297
 
2300 2298
     /**
2299
+     * @param string $method
2301 2300
      * @return array
2302 2301
      */
2303 2302
     public function get_row ( &$counter = 0, $method = null ) {
@@ -3188,7 +3187,7 @@  discard block
 block discarded – undo
3188 3187
     /**
3189 3188
      * @param bool $reorder
3190 3189
      *
3191
-     * @return bool|mixed
3190
+     * @return null|boolean
3192 3191
      */
3193 3192
     public function table ( $reorder = false ) {
3194 3193
 		if ( false !== $this->callback( 'table', $reorder ) ) {
@@ -3982,7 +3981,7 @@  discard block
 block discarded – undo
3982 3981
     }
3983 3982
 
3984 3983
     /**
3985
-     * @param bool|array $exclude
3984
+     * @param string[] $exclude
3986 3985
      * @param bool|array $array
3987 3986
      */
3988 3987
     public function hidden_vars ( $exclude = false, $array = false ) {
Please login to merge, or discard this patch.