Skip to content

Commit 5173b83

Browse files
committed
Apply fixes from StyleCI
1 parent 958fb1c commit 5173b83

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/NodeContext.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public function __construct(
2929
public readonly string $operation,
3030
public readonly int $targetPositionValue,
3131
public readonly int $depthLevelDelta,
32-
) {}
32+
) {
33+
}
3334

3435
/**
3536
* Creates context for append-to operation (last child).
@@ -125,15 +126,13 @@ public static function forPrependTo(ActiveRecord $targetNode, string $leftAttrib
125126
public function getTargetDepth(string $depthAttribute): int
126127
{
127128
/** @var int $depth */
128-
$depth = $this->targetNode->getAttribute($depthAttribute);
129-
130-
return $depth;
129+
return $this->targetNode->getAttribute($depthAttribute);
131130
}
132131

133132
/**
134133
* Returns the tree attribute value of the target node.
135134
*
136-
* @param string|false $treeAttribute Name of the tree attribute or `false` if disabled.
135+
* @param false|string $treeAttribute Name of the tree attribute or `false` if disabled.
137136
*
138137
* @return mixed Tree attribute value or `null` if tree attribute is disabled.
139138
*/

0 commit comments

Comments
 (0)