Completed
Pull Request — master (#11)
by
unknown
12:23
created
Service/RateLimitHandler.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -152,8 +152,8 @@
 block discarded – undo
152 152
         if (null !== $annotation) {
153 153
             $this->enabled = $annotation->enabled;
154 154
         } else {
155
-	    $annotation = new ApiRateLimit();
156
-	}
155
+        $annotation = new ApiRateLimit();
156
+    }
157 157
 
158 158
         list($key, $limit, $period) = $this->getThrottle($request, $annotation);
159 159
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
     public static function generateCacheKey(string $ip, string $username = null, string $userRole = null): string
128 128
     {
129 129
         if (!empty($username) && !empty($userRole)) {
130
-            return sprintf('_api_rate_limit_metadata$%s', sha1($userRole . $username));
130
+            return sprintf('_api_rate_limit_metadata$%s', sha1($userRole.$username));
131 131
         }
132 132
 
133 133
         return sprintf('_api_rate_limit_metadata$%s', sha1($ip));
Please login to merge, or discard this patch.