@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function setItem($key, $value = null) |
46 | 46 | { |
47 | - $value = $value ? : new \DateTime('+ 10 minutes'); |
|
47 | + $value = $value ?: new \DateTime('+ 10 minutes'); |
|
48 | 48 | $this->provider->set($key, $value->getTimestamp()); |
49 | 49 | } |
50 | 50 |
@@ -52,7 +52,7 @@ |
||
52 | 52 | 'INSERT INTO nv_request_limit_items (item_key, expires_at) VALUES (:item_key, :expires_at);' |
53 | 53 | ); |
54 | 54 | $statement->bindValue('item_key', $key); |
55 | - $statement->bindValue('expires_at', date('Y-m-d H:i:s',$expiresAt)); |
|
55 | + $statement->bindValue('expires_at', date('Y-m-d H:i:s', $expiresAt)); |
|
56 | 56 | $statement->execute(); |
57 | 57 | $connection->close(); |
58 | 58 | } |
@@ -17,6 +17,6 @@ |
||
17 | 17 | |
18 | 18 | public function registerContainerConfiguration(LoaderInterface $loader) |
19 | 19 | { |
20 | - $loader->load(__DIR__.'/config.yml'); |
|
20 | + $loader->load(__DIR__ . '/config.yml'); |
|
21 | 21 | } |
22 | 22 | } |