mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
fix tests
This commit is contained in:
parent
fdcf1645f2
commit
5a1ea1ee49
|
|
@ -216,7 +216,7 @@ final class ReadMapper extends DataMapperAbstract
|
|||
/** @var null|Builder ...$options */
|
||||
return $this->executeGetAll(...$options);
|
||||
case MapperType::GET_RANDOM:
|
||||
return $this->executeGetRaw();
|
||||
return $this->executeRandom();
|
||||
case MapperType::COUNT_MODELS:
|
||||
return $this->executeCount();
|
||||
case MapperType::SUM_MODELS:
|
||||
|
|
|
|||
|
|
@ -253,15 +253,15 @@ class BinarySearchTree
|
|||
if ($node->parent->left !== null
|
||||
&& $node->parent->left->root?->compare($node->data) === 0
|
||||
) {
|
||||
$node->parent->left = $temp?->tree;
|
||||
$node->parent->left = $temp->tree;
|
||||
} elseif ($node->parent->right !== null
|
||||
&& $node->parent->right->root?->compare($node->data) === 0
|
||||
) {
|
||||
$node->parent->right = $temp?->tree;
|
||||
$node->parent->right = $temp->tree;
|
||||
}
|
||||
}
|
||||
|
||||
$temp->parent = $node?->parent;
|
||||
$temp->parent = $node->parent;
|
||||
|
||||
$node = null;
|
||||
|
||||
|
|
@ -278,15 +278,15 @@ class BinarySearchTree
|
|||
if ($node->parent->left !== null
|
||||
&& $node->parent->left->root?->compare($node->data) === 0
|
||||
) {
|
||||
$node->parent->left = $temp?->tree;
|
||||
$node->parent->left = $temp->tree;
|
||||
} elseif ($node->parent->right !== null
|
||||
&& $node->parent->right->root?->compare($node->data) === 0
|
||||
) {
|
||||
$node->parent->right = $temp?->tree;
|
||||
$node->parent->right = $temp->tree;
|
||||
}
|
||||
}
|
||||
|
||||
$temp->parent = $node?->parent;
|
||||
$temp->parent = $node->parent;
|
||||
|
||||
$node = null;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user