@@ -359,7 +359,7 @@ |
||
| 359 | 359 | * $params['name'] string Field name |
| 360 | 360 | * |
| 361 | 361 | * @param array $params An associative array of parameters |
| 362 | - * @param null $obj |
|
| 362 | + * @param Pods $obj |
|
| 363 | 363 | * |
| 364 | 364 | * @return mixed Anything returned by the helper |
| 365 | 365 | * @since 2.0 |
@@ -310,7 +310,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
@@ -1559,7 +1559,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * Return array of valid frontier type shortcode tags |
| 20 | 20 | * |
| 21 | - * @return array |
|
| 21 | + * @return string[] |
|
| 22 | 22 | */ |
| 23 | 23 | function frontier_get_shortcodes() { |
| 24 | 24 | $shortcodes = array( 'each', 'pod_sub_template', 'once', 'pod_once_template', 'before', 'pod_before_template', 'after', 'pod_after_template', 'if', 'pod_if_field' ); |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | * @param array attributes from template |
| 240 | 240 | * @param string template to be processed |
| 241 | 241 | * |
| 242 | - * @return null |
|
| 242 | + * @return string |
|
| 243 | 243 | * @since 2.4 |
| 244 | 244 | */ |
| 245 | 245 | function frontier_do_subtemplate( $atts, $content ) { |
@@ -1352,7 +1352,7 @@ |
||
| 1352 | 1352 | * @param bool $noarray |
| 1353 | 1353 | * @param bool $db_field |
| 1354 | 1354 | * |
| 1355 | - * @return mixed|string |
|
| 1355 | + * @return string |
|
| 1356 | 1356 | */ |
| 1357 | 1357 | public static function clean( $input, $noarray = false, $db_field = false ) { |
| 1358 | 1358 | |
@@ -545,7 +545,7 @@ discard block |
||
| 545 | 545 | * @param array $data Array of data |
| 546 | 546 | * @param string $delimiter Delimiter for export type 'sv' |
| 547 | 547 | * |
| 548 | - * @return bool |
|
| 548 | + * @return false|string |
|
| 549 | 549 | */ |
| 550 | 550 | public function build_sv( $data = null, $delimiter = null ) { |
| 551 | 551 | |
@@ -624,7 +624,7 @@ discard block |
||
| 624 | 624 | /** |
| 625 | 625 | * @param array $data Array of data |
| 626 | 626 | * |
| 627 | - * @return bool |
|
| 627 | + * @return false|string |
|
| 628 | 628 | */ |
| 629 | 629 | public function build_xml( $data = null ) { |
| 630 | 630 | |
@@ -1238,7 +1238,7 @@ discard block |
||
| 1238 | 1238 | * @param array $data Data to export. |
| 1239 | 1239 | * @param bool $single Whether this is a single item export. |
| 1240 | 1240 | * |
| 1241 | - * @return mixed |
|
| 1241 | + * @return string |
|
| 1242 | 1242 | */ |
| 1243 | 1243 | public static function export_data_to_file( $file, $data, $single = false ) { |
| 1244 | 1244 | |
@@ -439,7 +439,7 @@ discard block |
||
| 439 | 439 | * @param mixed $options Object, Array, or String containing Pod or Options to be used |
| 440 | 440 | * @param bool $deprecated Set to true to support old options array from Pods UI plugin |
| 441 | 441 | * |
| 442 | - * @return \PodsUI |
|
| 442 | + * @return false|null |
|
| 443 | 443 | * |
| 444 | 444 | * @license http://www.gnu.org/licenses/gpl-2.0.html |
| 445 | 445 | * @since 2.0 |
@@ -1481,7 +1481,7 @@ discard block |
||
| 1481 | 1481 | } |
| 1482 | 1482 | |
| 1483 | 1483 | /** |
| 1484 | - * @return mixed |
|
| 1484 | + * @return null|boolean |
|
| 1485 | 1485 | */ |
| 1486 | 1486 | public function go() { |
| 1487 | 1487 | |
@@ -1594,7 +1594,7 @@ discard block |
||
| 1594 | 1594 | } |
| 1595 | 1595 | |
| 1596 | 1596 | /** |
| 1597 | - * @return mixed |
|
| 1597 | + * @return null|boolean |
|
| 1598 | 1598 | */ |
| 1599 | 1599 | public function add() { |
| 1600 | 1600 | |
@@ -1641,7 +1641,7 @@ discard block |
||
| 1641 | 1641 | /** |
| 1642 | 1642 | * @param bool $duplicate |
| 1643 | 1643 | * |
| 1644 | - * @return mixed |
|
| 1644 | + * @return null|boolean |
|
| 1645 | 1645 | */ |
| 1646 | 1646 | public function edit( $duplicate = false ) { |
| 1647 | 1647 | |
@@ -1716,7 +1716,7 @@ discard block |
||
| 1716 | 1716 | * @param bool $create |
| 1717 | 1717 | * @param bool $duplicate |
| 1718 | 1718 | * |
| 1719 | - * @return bool|mixed |
|
| 1719 | + * @return null|boolean |
|
| 1720 | 1720 | */ |
| 1721 | 1721 | public function form( $create = false, $duplicate = false ) { |
| 1722 | 1722 | |
@@ -1877,7 +1877,7 @@ discard block |
||
| 1877 | 1877 | } |
| 1878 | 1878 | |
| 1879 | 1879 | /** |
| 1880 | - * @return bool|mixed |
|
| 1880 | + * @return null|boolean |
|
| 1881 | 1881 | * @since 2.3.10 |
| 1882 | 1882 | */ |
| 1883 | 1883 | public function view() { |
@@ -2158,9 +2158,9 @@ discard block |
||
| 2158 | 2158 | } |
| 2159 | 2159 | |
| 2160 | 2160 | /** |
| 2161 | - * @param null $id |
|
| 2161 | + * @param integer $id |
|
| 2162 | 2162 | * |
| 2163 | - * @return bool|mixed |
|
| 2163 | + * @return null|boolean |
|
| 2164 | 2164 | */ |
| 2165 | 2165 | public function delete( $id = null ) { |
| 2166 | 2166 | |
@@ -2718,7 +2718,7 @@ discard block |
||
| 2718 | 2718 | |
| 2719 | 2719 | /** |
| 2720 | 2720 | * @param int $counter |
| 2721 | - * @param null $method |
|
| 2721 | + * @param string $method |
|
| 2722 | 2722 | * |
| 2723 | 2723 | * @return array |
| 2724 | 2724 | */ |
@@ -3688,7 +3688,7 @@ discard block |
||
| 3688 | 3688 | /** |
| 3689 | 3689 | * @param bool $reorder |
| 3690 | 3690 | * |
| 3691 | - * @return bool|mixed |
|
| 3691 | + * @return null|boolean |
|
| 3692 | 3692 | */ |
| 3693 | 3693 | public function table( $reorder = false ) { |
| 3694 | 3694 | |
@@ -4775,7 +4775,7 @@ discard block |
||
| 4775 | 4775 | } |
| 4776 | 4776 | |
| 4777 | 4777 | /** |
| 4778 | - * @param bool|array $exclude |
|
| 4778 | + * @param string[] $exclude |
|
| 4779 | 4779 | * @param bool|array $array |
| 4780 | 4780 | */ |
| 4781 | 4781 | public function hidden_vars( $exclude = false, $array = false ) { |
@@ -1243,8 +1243,8 @@ discard block |
||
| 1243 | 1243 | public $list_level = 0; |
| 1244 | 1244 | |
| 1245 | 1245 | /** |
| 1246 | - * @param $list_str |
|
| 1247 | - * @param $marker_any_re |
|
| 1246 | + * @param string $list_str |
|
| 1247 | + * @param string $marker_any_re |
|
| 1248 | 1248 | * |
| 1249 | 1249 | * @return mixed |
| 1250 | 1250 | */ |
@@ -1371,7 +1371,7 @@ discard block |
||
| 1371 | 1371 | } |
| 1372 | 1372 | |
| 1373 | 1373 | /** |
| 1374 | - * @param $code |
|
| 1374 | + * @param string $code |
|
| 1375 | 1375 | * |
| 1376 | 1376 | * @return string |
| 1377 | 1377 | */ |
@@ -1978,7 +1978,7 @@ discard block |
||
| 1978 | 1978 | public $utf8_strlen = 'mb_strlen'; |
| 1979 | 1979 | |
| 1980 | 1980 | /** |
| 1981 | - * @param $text |
|
| 1981 | + * @param string $text |
|
| 1982 | 1982 | * |
| 1983 | 1983 | * @return mixed |
| 1984 | 1984 | */ |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | /** |
| 130 | 130 | * @param $caps |
| 131 | 131 | * |
| 132 | - * @return array |
|
| 132 | + * @return string[] |
|
| 133 | 133 | */ |
| 134 | 134 | public function get_capabilities( $caps ) { |
| 135 | 135 | |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | * |
| 179 | 179 | * @param array $post_types |
| 180 | 180 | * |
| 181 | - * @return array |
|
| 181 | + * @return string[] |
|
| 182 | 182 | */ |
| 183 | 183 | public function disable_builder_layout( $post_types ) { |
| 184 | 184 | |
@@ -717,7 +717,7 @@ discard block |
||
| 717 | 717 | * |
| 718 | 718 | * @param string $uri The Pod Page URI to check if exists |
| 719 | 719 | * |
| 720 | - * @return array|bool |
|
| 720 | + * @return boolean |
|
| 721 | 721 | */ |
| 722 | 722 | public static function exists( $uri = null ) { |
| 723 | 723 | |