Skip to content

Commit

Permalink
Merge pull request #3 from mazentouati/analysis-8bmaxl
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
sunchayn authored Feb 3, 2019
2 parents 4eeab98 + 9ccca0d commit d1061b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public function testPattern($replacement = '@GOT_YOU')
$pattern = '(' . $this->_pattern . ').*\n';
$count = 0;

$file->replaceContent(function($content) use ($pattern, $replacement, &$count) {
$file->replaceContent(function ($content) use ($pattern, $replacement, &$count) {
$newContent = preg_replace('/' . $pattern . '/mu', $replacement . "\n", $content, -1, $count);
return iconv(mb_detect_encoding($newContent), 'UTF-16', $newContent);
});
Expand Down

0 comments on commit d1061b5

Please sign in to comment.