Explorar el Código

apply StyleCI recommendation

El RIDO hace 4 años
padre
commit
f987e96d4b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      lib/Persistence/TrafficLimiter.php

+ 3 - 1
lib/Persistence/TrafficLimiter.php

@@ -210,7 +210,9 @@ class TrafficLimiter extends AbstractPersistence
         if (!self::$_store->setValue((string) $tl, 'traffic_limiter', $hash)) {
         if (!self::$_store->setValue((string) $tl, 'traffic_limiter', $hash)) {
             error_log('failed to store the traffic limiter, it probably contains outdated information');
             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::_(
         throw new Exception(I18n::_(
             'Please wait %d seconds between each post.',
             'Please wait %d seconds between each post.',
             self::$_limit
             self::$_limit