Completed
Pull Request — 2.x (#3885)
by Ramon van
04:13
created
components/Pages.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * Disable this Post Type from appearing in the Builder layouts list
135 135
      *
136 136
      * @param array $post_types
137
-     * @return array
137
+     * @return string[]
138 138
      */
139 139
     public function disable_builder_layout ( $post_types ) {
140 140
         $post_types[] = $this->object_type;
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
      *
622 622
      * @param string $uri The Pod Page URI to check if exists
623 623
      *
624
-     * @return array|bool
624
+     * @return boolean
625 625
      */
626 626
     public static function exists ( $uri = null ) {
627 627
         if ( null === $uri ) {
Please login to merge, or discard this patch.
components/Templates/class-pods_templates.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -289,6 +289,8 @@  discard block
 block discarded – undo
289 289
 	/**
290 290
 	 * create and register an instance ID
291 291
 	 *
292
+	 * @param string $id
293
+	 * @param string $process
292 294
 	 */
293 295
 	public function element_instance_id( $id, $process ) {
294 296
 
@@ -456,6 +458,11 @@  discard block
 block discarded – undo
456 458
 	 * Get the current URL
457 459
 	 *
458 460
 	 */
461
+
462
+	/**
463
+	 * @param string $src
464
+	 * @param string $path
465
+	 */
459 466
 	static function get_url( $src = null, $path = null ) {
460 467
 
461 468
 		if ( !empty( $path ) ) {
@@ -469,6 +476,10 @@  discard block
 block discarded – undo
469 476
 	 * Get the current URL
470 477
 	 *
471 478
 	 */
479
+
480
+	/**
481
+	 * @param string $src
482
+	 */
472 483
 	static function get_path( $src = null ) {
473 484
 
474 485
 		return plugin_dir_path( $src );
Please login to merge, or discard this patch.
Templates/includes/auto-template/Pods_Templates_Auto_Template_Settings.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
 	 *
225 225
 	 * @param bool	$load_in_admin Optional. Whether to load in admin. Default is false.
226 226
 	 *
227
-	 * @return Pods_PFAT_Frontend
227
+	 * @return Pods_Templates_Auto_Template_Front_End|null
228 228
 	 *
229 229
 	 * @since 2.5.5
230 230
 	 */
Please login to merge, or discard this patch.
components/Templates/includes/functions-view_template.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@
 block discarded – undo
219 219
  * @param array attributes from template
220 220
  * @param string template to be processed
221 221
  *
222
- * @return null
222
+ * @return string
223 223
  * @since 2.4
224 224
  */
225 225
 function frontier_do_subtemplate( $atts, $content ) {
Please login to merge, or discard this patch.
deprecated/classes/Pods.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * Constructor - Pods Deprecated functionality (pre 2.0)
21 21
      *
22
-     * @param object $obj The Pods object
22
+     * @param Pods $obj The Pods object
23 23
      * @license http://www.gnu.org/licenses/gpl-2.0.html
24 24
      * @since 2.0
25 25
      */
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
     /**
604 604
      * Run a helper within a Pod Page or WP Template
605 605
      *
606
-     * @param string $helper The helper name
606
+     * @param string $helper_name The helper name
607 607
      *
608 608
      * @return mixed Anything returned by the helper
609 609
      * @since 1.2.0
Please login to merge, or discard this patch.
deprecated/classes/PodsAPI.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     /**
22 22
      * Constructor - PodsAPI Deprecated functionality (pre 2.0)
23 23
      *
24
-     * @param object $obj The PodsAPI object
24
+     * @param PodsAPI $obj The PodsAPI object
25 25
      *
26 26
      * @license http://www.gnu.org/licenses/gpl-2.0.html
27 27
      * @since 2.0
Please login to merge, or discard this patch.
deprecated/deprecated.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
  * @param string $message
359 359
  * @param bool $error Whether or not it is an error message
360 360
  *
361
- * @return bool
361
+ * @return boolean|null
362 362
  *
363 363
  * @since 1.12
364 364
  * @deprcated 2.3
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
  *
375 375
  * @param string $message
376 376
  *
377
- * @return bool
377
+ * @return boolean|null
378 378
  *
379 379
  * @since 1.12
380 380
  * @deprcated 2.3
Please login to merge, or discard this patch.
includes/data.php 1 patch
Doc Comments   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
  *
848 848
  * @param mixed $value The value to be set
849 849
  * @param mixed $var The variable name, or URI segment position / query var name (if $type is 'url')
850
- * @param string|array|object $type (optional) Super globals, url/url-relative, constants, globals, user data, Pod field values
850
+ * @param string $type (optional) Super globals, url/url-relative, constants, globals, user data, Pod field values
851 851
  *
852 852
  * @return mixed Updated URL (if $type is 'url'), $value (if $type is 'constant'), Item ID (if $type is 'pods'), $type, or false if not set
853 853
  * @since 2.3.10
@@ -1210,7 +1210,7 @@  discard block
 block discarded – undo
1210 1210
 /**
1211 1211
  * Create a slug from an input string
1212 1212
  *
1213
- * @param $orig
1213
+ * @param string $orig
1214 1214
  *
1215 1215
  * @return string Sanitized slug
1216 1216
  *
@@ -1905,7 +1905,6 @@  discard block
 block discarded – undo
1905 1905
  *
1906 1906
  * @param array|object $list List of items
1907 1907
  * @param array $args Array of index, parent, children, id, and prefix keys to use
1908
- * @param string $children_key Key to recurse children into
1909 1908
  *
1910 1909
  * @return array|object
1911 1910
  * @since 2.3
@@ -1939,9 +1938,7 @@  discard block
 block discarded – undo
1939 1938
 /**
1940 1939
  * Recurse list of hierarchical data
1941 1940
  *
1942
- * @param array|object $list List of items
1943 1941
  * @param array $args Array of children and prefix keys to use
1944
- * @param string $children_key Key to recurse children into
1945 1942
  *
1946 1943
  * @see pods_hierarchical_select
1947 1944
  * @return array
Please login to merge, or discard this patch.
includes/general.php 1 patch
Doc Comments   +3 added lines, -4 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
Please login to merge, or discard this patch.