Passed
Pull Request — master (#18)
by Indra
09:07 queued 02:38
created
DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
                             ->cannotBeEmpty()
73 73
                             ->defaultNull()
74 74
                             ->validate()
75
-                            ->ifTrue(function ($v) {
75
+                            ->ifTrue(function($v) {
76 76
                                 if (!class_exists($v)) {
77 77
                                     return true;
78 78
                                 }
Please login to merge, or discard this patch.
DependencyInjection/IndragunawanApiRateLimitExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@
 block discarded – undo
65 65
         }
66 66
 
67 67
         if ('rate-limit-asc' === $config['throttle']['sort']) {
68
-            uasort($config['throttle']['roles'], function (array $a, array $b) {
68
+            uasort($config['throttle']['roles'], function(array $a, array $b) {
69 69
                 return ($a['limit'] / $a['period']) <=> ($b['limit'] / $b['period']);
70 70
             });
71 71
         } elseif ('rate-limit-desc' === $config['throttle']['sort']) {
72
-            uasort($config['throttle']['roles'], function (array $a, array $b) {
72
+            uasort($config['throttle']['roles'], function(array $a, array $b) {
73 73
                 return ($b['limit'] / $b['period']) <=> ($a['limit'] / $a['period']);
74 74
             });
75 75
         }
Please login to merge, or discard this patch.
Service/RateLimitHandler.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
      * @throws \Psr\Cache\InvalidArgumentException
124 124
      * @throws \ReflectionException
125 125
      */
126
-     public function handle(Request $request)
126
+        public function handle(Request $request)
127 127
     {
128 128
         $annotationReader = new AnnotationReader();
129 129
         /** @var ApiRateLimit $annotation */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
             if ((
138 138
                     !\in_array($request->getMethod(), array_map('strtoupper', $annotation->methods), true)
139 139
                     &&
140
-                    !\in_array($request->attributes->get('_api_item_operation_name'),array_map('strtolower', $annotation->methods),true)
140
+                    !\in_array($request->attributes->get('_api_item_operation_name'), array_map('strtolower', $annotation->methods), true)
141 141
                 )
142 142
                 && !empty($annotation->methods)
143 143
             ) {
Please login to merge, or discard this patch.