mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 01:53:49 +00:00
fix phpstan, cs, and rector rules
This commit is contained in:
@@ -686,20 +686,9 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function setCenters(Collection $centers)
|
||||
public function setCenters(Collection $centers): self
|
||||
{
|
||||
foreach ($centers as $center) {
|
||||
$this->addCenter($center);
|
||||
}
|
||||
|
||||
foreach ($this->centers as $center) {
|
||||
if (false === $centers->contains($center)) {
|
||||
$this->removeCenter($center);
|
||||
}
|
||||
}
|
||||
$this->centers = $centers;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user