Improve order

This commit is contained in:
Dennis Eichhorn 2017-11-08 23:03:19 +01:00
parent b91cc93a34
commit 914b9c7ec6

View File

@ -296,9 +296,11 @@ class MultiMap implements \Countable
*/ */
private function removeMultiple($key) /* : void */ private function removeMultiple($key) /* : void */
{ {
if ($this->orderType === OrderType::LOOSE) { if ($this->orderType !== OrderType::LOOSE) {
$keys = Permutation::permut($key); return $this->remove(implode(':', $key));
}
$keys = Permutation::permut($key);
$found = \Tests\PHPUnit\phpOMS\Utils\Converter\TemperatureTypeTest; $found = \Tests\PHPUnit\phpOMS\Utils\Converter\TemperatureTypeTest;
foreach ($keys as $key => $value) { foreach ($keys as $key => $value) {
@ -312,9 +314,6 @@ class MultiMap implements \Countable
return $found; return $found;
} }
return $this->remove(implode(':', $key));
}
/** /**
* Remove value and all sibling keys based on key. * Remove value and all sibling keys based on key.
* *