Skip to content

Commit

Permalink
Update CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 11, 2018
1 parent 3057801 commit 8918038
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Converter/ConverterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use drupol\phptree\Node\NodeInterface;

/**
* Interface ConverterInterface.
* Interface ConverterInterface
*/
interface ConverterInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Node/KeyValueNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class KeyValueNode extends ValueNode implements KeyValueNodeInterface
* @param mixed|null $key
* @param mixed|null $value
* @param int $capacity
* @param \drupol\phptree\Node\NodeInterface|NULL $parent
* @param \drupol\phptree\Node\NodeInterface|null $parent
*/
public function __construct($key = null, $value = null, int $capacity = 0, NodeInterface $parent = null)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Node/NaryNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class NaryNode extends Node
private $capacity;

/**
* Node constructor.
* NaryNode constructor.
*
* @param int $capacity
* @param \drupol\phptree\Node\NodeInterface|NULL $parent
* @param \drupol\phptree\Node\NodeInterface|null $parent
*/
public function __construct(int $capacity = 0, NodeInterface $parent = null)
{
Expand Down
7 changes: 4 additions & 3 deletions src/Node/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Node implements NodeInterface
/**
* Node constructor.
*
* @param \drupol\phptree\Node\NodeInterface|NULL $parent
* @param \drupol\phptree\Node\NodeInterface|null $parent
*/
public function __construct(NodeInterface $parent = null)
{
Expand Down Expand Up @@ -122,9 +122,10 @@ public function getSibblings(): \Traversable
}

foreach ($parent->children() as $child) {
if ($child !== $this) {
yield $child;
if ($child === $this) {
continue;
}
yield $child;
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/Node/ValueNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class ValueNode extends NaryNode implements ValueNodeInterface
private $value;

/**
* KeyValueNode constructor.
* ValueNode constructor.
*
* @param mixed|null $value
* @param int $capacity
* @param \drupol\phptree\Node\NodeInterface|NULL $parent
* @param \drupol\phptree\Node\NodeInterface|null $parent
*/
public function __construct($value = null, int $capacity = 0, NodeInterface $parent = null)
{
Expand Down

0 comments on commit 8918038

Please sign in to comment.