@@ -73,7 +73,7 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -106,7 +106,7 @@ |
||
| 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 | |