From f987e96d4b1edc336009062a7e31549886f540ef Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 20 Feb 2022 12:25:55 +0100 Subject: [PATCH] apply StyleCI recommendation --- lib/Persistence/TrafficLimiter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Persistence/TrafficLimiter.php b/lib/Persistence/TrafficLimiter.php index fab33c41..d0b82be9 100644 --- a/lib/Persistence/TrafficLimiter.php +++ b/lib/Persistence/TrafficLimiter.php @@ -210,7 +210,9 @@ class TrafficLimiter extends AbstractPersistence if (!self::$_store->setValue((string) $tl, 'traffic_limiter', $hash)) { error_log('failed to store the traffic limiter, it probably contains outdated information'); } - if ($result) return true; + if ($result) { + return true; + } throw new Exception(I18n::_( 'Please wait %d seconds between each post.', self::$_limit