Completed
Pull Request — 2.x (#3184)
by Scott Kingsley
20:26 queued 09:08
created
classes/fields/password.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/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.
includes/general.php 1 patch
Doc Comments   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -310,7 +310,6 @@  discard block
 block discarded – undo
310 310
 /**
311 311
  * Determine if Deprecated Mode is enabled
312 312
  *
313
- * @param bool $include_debug Whether to include strict mode
314 313
  *
315 314
  * @return bool Whether Deprecated Mode is enabled
316 315
  *
@@ -443,6 +442,7 @@  discard block
 block discarded – undo
443 442
  * @param string $minimum_version Minimum version
444 443
  * @param string $comparison Comparison operator
445 444
  * @param string $maximum_version Maximum version
445
+ * @param string $what
446 446
  *
447 447
  * @return bool
448 448
  */
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
  * @uses get_shortcode_regex() Gets the search pattern for searching shortcodes.
907 907
  *
908 908
  * @param string $content Content to search for shortcodes
909
- * @param array $shortcodes Array of shortcodes to run
909
+ * @param string[] $shortcodes Array of shortcodes to run
910 910
  * @return string Content with shortcodes filtered out.
911 911
  */
912 912
 function pods_do_shortcode( $content, $shortcodes ) {
@@ -1446,7 +1446,7 @@  discard block
 block discarded – undo
1446 1446
  * @param string|bool $key Key for the cache
1447 1447
  * @param string $group (optional) Key for the group
1448 1448
  *
1449
- * @return bool|mixed|null|void
1449
+ * @return boolean
1450 1450
  *
1451 1451
  * @since 2.0
1452 1452
  */
@@ -1654,7 +1654,6 @@  discard block
 block discarded – undo
1654 1654
  *
1655 1655
  * @param string|array $pod The pod name or array of pod names
1656 1656
  * @param string $name The name of the Pod
1657
- * @param array $object (optional) Pod array, including any 'fields' arrays
1658 1657
  *
1659 1658
  * @return array|boolean Field data or false if unsuccessful
1660 1659
  * @since 2.1
@@ -2056,9 +2055,9 @@  discard block
 block discarded – undo
2056 2055
  *
2057 2056
  * @param string $field_name The field name.
2058 2057
  * @param object|Pods $pod Pods object.
2059
- * @param bool|true $read Are we checking read or write?
2058
+ * @param boolean $read Are we checking read or write?
2060 2059
  *
2061
- * @return bool If supports, true, else false.
2060
+ * @return boolean|null If supports, true, else false.
2062 2061
  */
2063 2062
 function pods_rest_api_field_allowed_to_extend( $field_name, $pod, $read = true ) {
2064 2063
     if ( is_object( $pod ) ) {
Please login to merge, or discard this patch.