Skip to content

Commit 4004aba

Browse files
committed
- Some PHP CS Fixer's fixes & workarounds.
1 parent 0ea5ad9 commit 4004aba

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/Event.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -701,9 +701,11 @@ public function user($user)
701701
* By default, the lock is acquired through file system locks. Alternatively, you can pass a symfony lock store
702702
* that will be responsible for the locking.
703703
*
704-
* @param PersistingStoreInterface|object $store
705-
* @param int|null $ttl
704+
* @param PersistingStoreInterface|object|null $store A symfony lock store
705+
* @param int|null $ttl Time To Live of the lock in seconds
706+
*
706707
* @return $this
708+
*
707709
* @throws CrunzException
708710
*/
709711
public function preventOverlapping(?object $store = null, ?int $ttl = 30)
@@ -1019,11 +1021,11 @@ public function refreshLock(): void
10191021
}
10201022

10211023
// If the lock has remaining lifetime (i.e. the method returns a float and not NULL), that means the LockStore does support TTL [ 'MemcachedStore', 'MongoDbStore' , 'PdoStore', 'DoctrineDbalStore', 'RedisStore' ]
1022-
// @see https://symfony.com/doc/6.4/components/lock.html#available-stores
1024+
// @see https://symfony.com/doc/6.4/components/lock.html#available-stores for detailed information
10231025
$remainingLifetime = $this->lock->getRemainingLifetime();
10241026
if (null !== $remainingLifetime) {
10251027
return;
1026-
};
1028+
}
10271029

10281030
$lock = $this->createLockObject();
10291031
$remainingLifetime = $lock->getRemainingLifetime();
@@ -1103,7 +1105,8 @@ public function everySixHours(): self
11031105
/**
11041106
* Get the symfony lock object for the task.
11051107
*
1106-
* @param int|null $ttl
1108+
* @param int|null $ttl Time To Live of the lock in seconds
1109+
*
11071110
* @return Lock
11081111
*/
11091112
protected function createLockObject(?int $ttl = 30)

0 commit comments

Comments
 (0)