From 65f203268dc8d14df4787872d5a20ae90b8031d3 Mon Sep 17 00:00:00 2001 From: n Date: Sun, 11 Feb 2024 21:50:03 +0100 Subject: [PATCH] PHP-CS-Fixer fixes --- clickat.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/clickat.php b/clickat.php index 4a26088..63a009b 100644 --- a/clickat.php +++ b/clickat.php @@ -16,10 +16,12 @@ function hook_clickat_render_linklist($data) '/\ @([\w\d]+)@([\w\d_\-\.]+)/' => ' @\1', '/\ @([\w\d]+)/' => ' @\1' ); - foreach ($data['links'] as &$value) - if (strpos($value['description'],' @') !== false) - foreach($patterns as $nic => $link) + foreach ($data['links'] as &$value) { + if (strpos($value['description'],' @') !== false) { + foreach($patterns as $nic => $link) { $value['description'] = preg_replace($nic, $link, $value['description']); + } + } + } return $data; } -