Completed
Pull Request — 2.x (#3632)
by Scott Kingsley
05:01
created
sql/upgrade/PodsUpgrade.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     }
138 138
 
139 139
     /**
140
-     * @param $method
140
+     * @param string $method
141 141
      * @param $v
142 142
      * @param null $x
143 143
      */
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     }
157 157
 
158 158
     /**
159
-     * @param $method
159
+     * @param string $method
160 160
      * @param null $x
161 161
      *
162 162
      * @return bool
Please login to merge, or discard this patch.
sql/upgrade/PodsUpgrade_2_1_0.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     }
17 17
 
18 18
     /**
19
-     * @return array|bool|int|mixed|null|void
19
+     * @return integer
20 20
      */
21 21
     public function prepare_relationships () {
22 22
         $relationship_fields = $this->api->load_fields( array( 'type' => 'pick' ) );
Please login to merge, or discard this patch.
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/link.php 1 patch
Doc Comments   +1 added lines, -2 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
 	 */
@@ -132,7 +131,7 @@  discard block
 block discarded – undo
132 131
 	 *
133 132
 	 * @param array $options
134 133
 	 *
135
-	 * @return array
134
+	 * @return string
136 135
 	 * @since 2.0
137 136
 	 */
138 137
 	public function schema( $options = null ) {
Please login to merge, or discard this patch.
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
 	 */
@@ -118,7 +117,7 @@  discard block
 block discarded – undo
118 117
 	 *
119 118
 	 * @param array $options
120 119
 	 *
121
-	 * @return array
120
+	 * @return string
122 121
 	 * @since 2.0
123 122
 	 */
124 123
 	public function schema ( $options = null ) {
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/fields/pick.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
      *
662 662
      * @param array $options
663 663
      *
664
-     * @return array
664
+     * @return string|false
665 665
      * @since 2.0
666 666
      */
667 667
     public function schema ( $options = null ) {
@@ -681,7 +681,6 @@  discard block
 block discarded – undo
681 681
      * @param mixed $value
682 682
      * @param string $name
683 683
      * @param array $options
684
-     * @param array $fields
685 684
      * @param array $pod
686 685
      * @param int $id
687 686
      *
@@ -797,7 +796,7 @@  discard block
 block discarded – undo
797 796
      * @param int $id
798 797
      *
799 798
      * @param null $params
800
-     * @return array|bool
799
+     * @return string|boolean
801 800
      * @since 2.0
802 801
      */
803 802
     public function validate ( $value, $name = null, $options = null, $fields = null, $pod = null, $id = null, $params = null ) {
@@ -1302,7 +1301,7 @@  discard block
 block discarded – undo
1302 1301
      *
1303 1302
      * @param array $object_params Object data parameters
1304 1303
      *
1305
-     * @return array|bool Object data
1304
+     * @return string Object data
1306 1305
      */
1307 1306
     public function get_object_data ( $object_params = null ) {
1308 1307
 
Please login to merge, or discard this patch.
classes/PodsAPI.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1559,7 +1559,7 @@  discard block
 block discarded – undo
1559 1559
      *
1560 1560
      * @param array $params An associative array of parameters
1561 1561
      * @param bool $sanitized (optional) Decides whether the params have been sanitized before being passed, will sanitize them if false.
1562
-     * @param bool|int $db (optional) Whether to save into the DB or just return Pod array.
1562
+     * @param boolean $db (optional) Whether to save into the DB or just return Pod array.
1563 1563
      *
1564 1564
      * @return int Pod ID
1565 1565
      * @since 1.7.9
@@ -3903,7 +3903,7 @@  discard block
 block discarded – undo
3903 3903
      * Save relationships
3904 3904
      *
3905 3905
      * @param int $id ID of item
3906
-     * @param int|array $related_id ID or IDs to save
3906
+     * @param int|array $related_ids ID or IDs to save
3907 3907
      * @param array $pod Pod data
3908 3908
      * @param array $field Field data
3909 3909
      */
@@ -5061,7 +5061,6 @@  discard block
 block discarded – undo
5061 5061
      * Delete an object from tableless fields
5062 5062
      *
5063 5063
      * @param int $id
5064
-     * @param string $type
5065 5064
      * @param string $name
5066 5065
      *
5067 5066
      * @return bool
@@ -5284,6 +5283,7 @@  discard block
 block discarded – undo
5284 5283
      * $params['name'] string Pod name
5285 5284
      *
5286 5285
      * @param array $params An associative array of parameters
5286
+     * @param string $type
5287 5287
      *
5288 5288
      * @return bool True if exists
5289 5289
      *
@@ -6792,7 +6792,7 @@  discard block
 block discarded – undo
6792 6792
      * @param string $type Field type to look for
6793 6793
      * @param array $options (optional) Options of the field to pass to the schema function.
6794 6794
      *
6795
-     * @return array|bool|mixed|null
6795
+     * @return string
6796 6796
      *
6797 6797
      * @since 2.0
6798 6798
      */
@@ -7228,7 +7228,7 @@  discard block
 block discarded – undo
7228 7228
 	 *
7229 7229
 	 * Load the information about an objects MySQL table
7230 7230
 	 *
7231
-	 * @param $object_type
7231
+	 * @param string $object_type
7232 7232
 	 * @param string $object The object to look for
7233 7233
 	 * @param null $name (optional) Name of the pod to load
7234 7234
 	 * @param array $pod (optional) Array with pod information
Please login to merge, or discard this patch.