Completed
Pull Request — master (#18)
by Tom
09:43
created
src/Cache/Factory/DesarrollaCacheFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             throw new InvalidConfigException('Cache driver is not defined in configuration.');
74 74
         }
75 75
 
76
-        $driverCreateMethod = 'create' . ucfirst($driver) . 'Driver';
76
+        $driverCreateMethod = 'create'.ucfirst($driver).'Driver';
77 77
 
78 78
         if (method_exists($this, $driverCreateMethod)) {
79 79
             $driver = $this->{$driverCreateMethod}();
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             return $driver;
86 86
         }
87 87
 
88
-        throw new DriverNotFoundException('Cannot find the driver ' . $driver . ' for Desarrolla');
88
+        throw new DriverNotFoundException('Cannot find the driver '.$driver.' for Desarrolla');
89 89
     }
90 90
 
91 91
     /**
Please login to merge, or discard this patch.
src/Throttle/Throttler/MovingWindowThrottler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         $startTime = (int) ceil($this->timeProvider->now()) - $this->timeLimit;
107 107
 
108 108
         // Clear all entries older than the window front-edge
109
-        $relevantTimestamps = array_filter(array_keys($this->hitCountMapping), function ($key) use ($startTime) {
109
+        $relevantTimestamps = array_filter(array_keys($this->hitCountMapping), function($key) use ($startTime) {
110 110
             return $startTime <= $key;
111 111
         });
112 112
 
Please login to merge, or discard this patch.