@@ -31,7 +31,7 @@ |
||
| 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 | { |
@@ -68,7 +68,7 @@ |
||
| 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 | |
@@ -40,7 +40,7 @@ |
||
| 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 | /** |