Skip to content

Commit 6fafadb

Browse files
committed
Update code syntax.
1 parent 9aedb95 commit 6fafadb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Node/NaryNode.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ public function __construct(int $capacity = 0, NodeInterface $parent = null)
2626
{
2727
parent::__construct($parent);
2828

29-
if ($capacity < 0) {
30-
$capacity = 0;
31-
}
32-
33-
$this->capacity = $capacity;
29+
$this->capacity = $capacity < 0 ?
30+
0:
31+
$capacity;
3432
}
3533

3634
/**

0 commit comments

Comments
 (0)