Skip to content

Commit

Permalink
Merge pull request #247 from dryabov/patch-90
Browse files Browse the repository at this point in the history
Add missed phpDoc for JEDCheckerHelper::resolveAliases method
  • Loading branch information
dryabov committed Jan 8, 2024
2 parents 2d3d564 + 31f689f commit 7977705
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions administrator/components/com_jedchecker/libraries/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,14 @@ protected static function cleanLines($content)
return str_repeat("\n", substr_count($content, "\n"));
}

/**
* Resolve all aliases in the PHP file
*
* @param string $content
*
* @return string
* @since 2.4.4
*/
public static function resolveAliases($content)
{
if (preg_match_all('/\buse\s+([\\\\\w]+)(?:\s+as\s+(\w+))?\s*;/i', $content, $matches, PREG_SET_ORDER)) {
Expand Down

0 comments on commit 7977705

Please sign in to comment.