Passed
Push — master ( 9c61db...e91b6e )
by Novikov
01:51
created
Utils/RequestRestrictor.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function restrictRequestByUserId($userId)
37 37
     {
38
-       return $this->restrictByKey($userId);
38
+        return $this->restrictByKey($userId);
39 39
     }
40 40
 
41 41
     /**
Please login to merge, or discard this patch.
Storage/Provider/MemcachedProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function get($key)
31 31
     {
32
-       return $this->_memcached->get($key);
32
+        return $this->_memcached->get($key);
33 33
     }
34 34
 
35 35
     /**
Please login to merge, or discard this patch.
Storage/StorageManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Storage/Provider/MySQLProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.