mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Improve order
This commit is contained in:
parent
b91cc93a34
commit
914b9c7ec6
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user