Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
PSR-12 suggests this indentation
  • Loading branch information
szepeviktor committed Jan 2, 2023
1 parent 9a6d5e9 commit 6fbd57f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/WeakMap.php
Expand Up @@ -161,8 +161,13 @@ public function __serialize(): void {

private function housekeeping(bool $force = false) : void
{
if ($force || (++$this->housekeepingCounter >= self::HOUSEKEEPING_EVERY &&
$this->housekeepingCounter * self::HOUSEKEEPING_THRESHOLD >= count($this->weakRefs))) {
if (
$force
|| (
++$this->housekeepingCounter >= self::HOUSEKEEPING_EVERY
&& $this->housekeepingCounter * self::HOUSEKEEPING_THRESHOLD >= count($this->weakRefs)
)
) {
foreach ($this->weakRefs as $id => $weakRef) {
if ($weakRef->get() === null) {
unset(
Expand Down

0 comments on commit 6fbd57f

Please sign in to comment.