Skip to content

Commit

Permalink
fix psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
svfcode committed Dec 19, 2024
1 parent 1b19961 commit e54414f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cleantalk/Antispam/EmailEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function modifyContent($content)
$shortcode_pattern = '/\[apbct_encode_data\](.*?)\[\/apbct_encode_data\]/s';
$shortcode_replacements = [];
$shortcode_counter = 0;
$content = preg_replace_callback($shortcode_pattern, function($matches) use (&$shortcode_replacements, &$shortcode_counter) {
$content = preg_replace_callback($shortcode_pattern, function ($matches) use (&$shortcode_replacements, &$shortcode_counter) {
$placeholder = '%%APBCT_SHORTCODE_' . ($shortcode_counter++) . '%%';
$shortcode_replacements[$placeholder] = $matches[0];
return $placeholder;
Expand Down

0 comments on commit e54414f

Please sign in to comment.