Completed
Pull Request — 2.x (#4068)
by Jory
04:54
created
classes/PodsComponents.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -493,6 +493,9 @@
 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' );
Please login to merge, or discard this patch.
classes/fields/oembed.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 	 *
157 157
 	 * @param array $options
158 158
 	 *
159
-	 * @return array
159
+	 * @return string
160 160
 	 * @since 2.0
161 161
 	 */
162 162
 	public function schema ( $options = null ) {
@@ -168,10 +168,9 @@  discard block
 block discarded – undo
168 168
 	/**
169 169
 	 * Change the way the value of the field is displayed with Pods::get
170 170
 	 *
171
-	 * @param mixed $value
171
+	 * @param string $value
172 172
 	 * @param string $name
173 173
 	 * @param array $options
174
-	 * @param array $fields
175 174
 	 * @param array $pod
176 175
 	 * @param int $id
177 176
 	 *
Please login to merge, or discard this patch.
classes/PodsInit.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -935,7 +935,7 @@
 block discarded – undo
935 935
 	 * @param        $args
936 936
 	 * @param string $type
937 937
 	 *
938
-	 * @return array
938
+	 * @return string
939 939
 	 */
940 940
 	public static function object_label_fix( $args, $type = 'post_type' ) {
941 941
 
Please login to merge, or discard this patch.
classes/PodsUI.php 1 patch
Doc Comments   +9 added lines, -9 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
@@ -1295,7 +1295,7 @@  discard block
 block discarded – undo
1295 1295
     }
1296 1296
 
1297 1297
     /**
1298
-     * @return mixed
1298
+     * @return null|boolean
1299 1299
      */
1300 1300
     public function go () {
1301 1301
         $this->do_hook( 'go' );
@@ -1495,7 +1495,7 @@  discard block
 block discarded – undo
1495 1495
      * @param bool $create
1496 1496
      * @param bool $duplicate
1497 1497
      *
1498
-     * @return bool|mixed
1498
+     * @return null|boolean
1499 1499
      */
1500 1500
     public function form ( $create = false, $duplicate = false ) {
1501 1501
         if ( in_array( 'duplicate', $this->actions_disabled ) )
@@ -1636,7 +1636,7 @@  discard block
 block discarded – undo
1636 1636
     }
1637 1637
 
1638 1638
     /**
1639
-     * @return bool|mixed
1639
+     * @return null|boolean
1640 1640
 	 * @since 2.3.10
1641 1641
      */
1642 1642
     public function view () {
@@ -1887,9 +1887,9 @@  discard block
 block discarded – undo
1887 1887
     }
1888 1888
 
1889 1889
     /**
1890
-     * @param null $id
1890
+     * @param integer $id
1891 1891
      *
1892
-     * @return bool|mixed
1892
+     * @return null|boolean
1893 1893
      */
1894 1894
     public function delete ( $id = null ) {
1895 1895
         $this->do_hook( 'pre_delete', $id );
@@ -2291,7 +2291,6 @@  discard block
 block discarded – undo
2291 2291
     }
2292 2292
 
2293 2293
     /**
2294
-     * @param bool $full Whether to get ALL data or use pagination
2295 2294
      *
2296 2295
      * @return bool
2297 2296
      */
@@ -2410,6 +2409,7 @@  discard block
 block discarded – undo
2410 2409
     }
2411 2410
 
2412 2411
     /**
2412
+     * @param string $method
2413 2413
      * @return array
2414 2414
      */
2415 2415
     public function get_row ( &$counter = 0, $method = null ) {
@@ -3300,7 +3300,7 @@  discard block
 block discarded – undo
3300 3300
     /**
3301 3301
      * @param bool $reorder
3302 3302
      *
3303
-     * @return bool|mixed
3303
+     * @return null|boolean
3304 3304
      */
3305 3305
     public function table ( $reorder = false ) {
3306 3306
 		if ( false !== $this->callback( 'table', $reorder ) ) {
@@ -4143,7 +4143,7 @@  discard block
 block discarded – undo
4143 4143
     }
4144 4144
 
4145 4145
     /**
4146
-     * @param bool|array $exclude
4146
+     * @param string[] $exclude
4147 4147
      * @param bool|array $array
4148 4148
      */
4149 4149
     public function hidden_vars ( $exclude = false, $array = false ) {
Please login to merge, or discard this patch.
classes/PodsForm.php 1 patch
Doc Comments   -5 removed lines patch added patch discarded remove patch
@@ -882,7 +882,6 @@  discard block
 block discarded – undo
882 882
      * @param mixed $value
883 883
      * @param string $name
884 884
      * @param array $options
885
-     * @param array $fields
886 885
      * @param array $pod
887 886
      * @param int $id
888 887
      * @param array $traverse
@@ -924,7 +923,6 @@  discard block
 block discarded – undo
924 923
      * @param mixed $value
925 924
      * @param string $name
926 925
      * @param array $options
927
-     * @param array $fields
928 926
      * @param array $pod
929 927
      * @param int $id
930 928
      * @param array $traverse
@@ -1295,9 +1293,6 @@  discard block
 block discarded – undo
1295 1293
     /**
1296 1294
      * Run a method from a Field Type's class
1297 1295
      *
1298
-     * @param string $field_type Field Type indentifier
1299
-     * @param string $method Method name
1300
-     * @param mixed $arg More arguments
1301 1296
      *
1302 1297
      * @return mixed
1303 1298
      * @access public
Please login to merge, or discard this patch.
classes/fields/link.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,6 @@
 block discarded – undo
50 50
 	/**
51 51
 	 * Add options and set defaults to
52 52
 	 *
53
-	 * @param array $options
54 53
 	 *
55 54
 	 * @since 2.0
56 55
 	 */
Please login to merge, or discard this patch.
classes/fields/website.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,6 @@  discard block
 block discarded – undo
50 50
 	/**
51 51
 	 * Add options and set defaults to
52 52
 	 *
53
-	 * @param array $options
54 53
 	 *
55 54
 	 * @since 2.0
56 55
 	 */
@@ -120,7 +119,7 @@  discard block
 block discarded – undo
120 119
 	 *
121 120
 	 * @param array $options
122 121
 	 *
123
-	 * @return array
122
+	 * @return string
124 123
 	 * @since 2.0
125 124
 	 */
126 125
 	public function schema ( $options = null ) {
@@ -143,7 +142,7 @@  discard block
 block discarded – undo
143 142
 	 * @param array $pod
144 143
 	 * @param int $id
145 144
 	 *
146
-	 * @return mixed|null
145
+	 * @return string
147 146
 	 * @since 2.0
148 147
 	 */
149 148
 	public function display ( $value = null, $name = null, $options = null, $pod = null, $id = null ) {
Please login to merge, or discard this patch.