Skip to content

Commit e38f8cf

Browse files
committed
Apply "combine_consecutive_unsets" CS rule
1 parent 984f2ec commit e38f8cf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
'array_syntax' => ['syntax' => 'short'],
1818
'blank_line_before_statement' => true,
1919
'combine_consecutive_issets' => true,
20+
'combine_consecutive_unsets' => true,
2021
'is_null' => false,
2122
'list_syntax' => ['syntax' => 'short'],
2223
'modernize_types_casting' => true,

src/Sortable/SortableListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ public function postFlush(EventArgs $args)
488488
}
489489

490490
// Clear relocations
491-
unset($this->relocations[$hash]);
492-
unset($this->maxPositions[$hash]); // unset only if relocations has been processed
491+
// unset only if relocations has been processed
492+
unset($this->relocations[$hash], $this->maxPositions[$hash]);
493493
}
494494
}
495495

0 commit comments

Comments
 (0)