Passed
Branch master (39b233)
by Amine
03:03
created
Factory/MutexFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     /**
32 32
      * Constructor class.
33 33
      *
34
-     * @param StorageFactory $storageFactory
34
+     * @param StorageFactoryInterface $storageFactory
35 35
      */
36 36
     public function __construct(StorageFactoryInterface $storageFactory)
37 37
     {
Please login to merge, or discard this patch.
MutexAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         $mutex        = $this->mutex;
69 69
 
70 70
         while ($attemptTotal > 0 && !$acquired = $mutex->acquire($generatedKey, $ttl)) {
71
-            $attemptTotal --;
71
+            $attemptTotal--;
72 72
             sleep($this->wait);
73 73
         }
74 74
 
Please login to merge, or discard this patch.
Adapter/MemcachedMutex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         $acquired = $this->memcached->add($key, true, $ttl);
42 42
 
43
-        return ($acquired === true) ? $key: null;
43
+        return ($acquired === true) ? $key : null;
44 44
     }
45 45
 
46 46
     /**
Please login to merge, or discard this patch.