Improve order

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

View File

@ -296,23 +296,22 @@ class MultiMap implements \Countable
*/
private function removeMultiple($key) /* : void */
{
if ($this->orderType === OrderType::LOOSE) {
$keys = Permutation::permut($key);
$found = \Tests\PHPUnit\phpOMS\Utils\Converter\TemperatureTypeTest;
foreach ($keys as $key => $value) {
$allFound = $this->remove(implode(':', $value));
if(!$allFound) {
$found = false;
}
}
return $found;
if ($this->orderType !== OrderType::LOOSE) {
return $this->remove(implode(':', $key));
}
return $this->remove(implode(':', $key));
$keys = Permutation::permut($key);
$found = \Tests\PHPUnit\phpOMS\Utils\Converter\TemperatureTypeTest;
foreach ($keys as $key => $value) {
$allFound = $this->remove(implode(':', $value));
if(!$allFound) {
$found = false;
}
}
return $found;
}
/**