Completed
Pull Request — 2.x (#3632)
by Scott Kingsley
07:11 queued 01:04
created
classes/fields/phone.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/slug.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      *
113 113
      * @param array $options
114 114
      *
115
-     * @return array
115
+     * @return string
116 116
      * @since 2.0
117 117
      */
118 118
     public function schema ( $options = null ) {
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      * @param array $pod
223 223
      * @param object $params
224 224
      *
225
-     * @return mixed|string
225
+     * @return string
226 226
      * @since 2.0
227 227
      */
228 228
     public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) {
Please login to merge, or discard this patch.
classes/PodsAdmin.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2021,7 +2021,7 @@  discard block
 block discarded – undo
2021 2021
      *
2022 2022
      * @param PodsUI $ui
2023 2023
      *
2024
-     * @return bool
2024
+     * @return boolean|null
2025 2025
      */
2026 2026
     public function admin_components_toggle ( PodsUI $ui ) {
2027 2027
         $component = $_GET[ 'id' ];
@@ -2154,7 +2154,7 @@  discard block
 block discarded – undo
2154 2154
      *
2155 2155
      * @param $capabilities List of extra capabilities to add
2156 2156
      *
2157
-     * @return array
2157
+     * @return string[]
2158 2158
      */
2159 2159
     public function admin_capabilities ( $capabilities ) {
2160 2160
         $pods = pods_api()->load_pods( array( 'type' => array( 'pod', 'table', 'post_type', 'taxonomy', 'settings' ) ) );
@@ -2472,7 +2472,7 @@  discard block
 block discarded – undo
2472 2472
      *
2473 2473
      * @param array $pod
2474 2474
      *
2475
-     * @return bool
2475
+     * @return boolean|null
2476 2476
      */
2477 2477
     protected function restable_pod( $pod ) {
2478 2478
         $type =  $pod[ 'type' ];
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/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/link.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.