mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 05:18:40 +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
|
class Tree extends Graph
|
||||||
{
|
{
|
||||||
private $nodes = [];
|
protected $nodes = [];
|
||||||
|
|
||||||
public function getMaxDepth() : int
|
public function getMaxDepth() : int
|
||||||
{
|
{
|
||||||
$depth = [0];
|
$depth = [0];
|
||||||
|
|
||||||
foreach($nodes as $node) {
|
foreach($this->nodes as $node) {
|
||||||
$depth[] = $node->getMaxDepth();
|
$depth[] = $node->getMaxDepth();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -49,7 +49,7 @@ class Tree extends Graph
|
||||||
{
|
{
|
||||||
$depth = [0];
|
$depth = [0];
|
||||||
|
|
||||||
foreach($nodes as $node) {
|
foreach($this->nodes as $node) {
|
||||||
$depth[] = $node->getMinDepth();
|
$depth[] = $node->getMinDepth();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user