Skip to content

Commit

Permalink
Add PhpDocs to clean method
Browse files Browse the repository at this point in the history
  • Loading branch information
ddziaduch committed Oct 15, 2018
1 parent 7777d9a commit a7279ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Util/Text.php
Expand Up @@ -84,6 +84,14 @@ public static function clean($str, $options = [])
];

extract($options);
/**
* @var string $before
* @var string $after
* @var string $escape
* @var string $word
* @var string $gap
* @var string $replacement
*/

$callback = function ($matches) use ($replacement) {
if (isset($matches[2]) && isset($matches[3]) && trim($matches[2]) === trim($matches[3])) {
Expand Down

0 comments on commit a7279ae

Please sign in to comment.