mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-16 03:58:39 +00:00
Fixing draft typos
This commit is contained in:
parent
fedf08f31c
commit
b7dc0392cc
|
|
@ -32,13 +32,13 @@ use phpOMS\Validation\Base\IbanEnum;
|
|||
*/
|
||||
class Tree extends Graph
|
||||
{
|
||||
private $nodes = [];
|
||||
protected $nodes = [];
|
||||
|
||||
public function getMaxDepth() : int
|
||||
{
|
||||
$depth = [0];
|
||||
|
||||
foreach($nodes as $node) {
|
||||
foreach($this->nodes as $node) {
|
||||
$depth[] = $node->getMaxDepth();
|
||||
}
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ class Tree extends Graph
|
|||
{
|
||||
$depth = [0];
|
||||
|
||||
foreach($nodes as $node) {
|
||||
foreach($this->nodes as $node) {
|
||||
$depth[] = $node->getMinDepth();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user