Skip to content

Commit

Permalink
docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
nextgenthemes committed Feb 25, 2024
1 parent 3cf0787 commit 38aa621
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion php/functions-shortcode-args.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,14 @@ function special_iframe_src_mods( string $src, string $provider, string $url, bo
return $src;
}

// phpcs:ignore Generic.Metrics.CyclomaticComplexity.MaxExceeded
/**
* Generate the URL with autoplay parameter based on the provider.
*
* @param string $src The source URL of the iframe.
* @param string $provider The provider of the iframe.
* @param bool $autoplay The autoplay flag.
* @return string The modified URL with autoplay parameter.
*/
function iframesrc_urlarg_autoplay( string $src, string $provider, bool $autoplay ): string {

switch ( $provider ) {
Expand Down

0 comments on commit 38aa621

Please sign in to comment.