Skip to content

Commit efe7362

Browse files
CodeWithDennisgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 05e87fa commit efe7362

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SelectTree.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private function buildTree(int $parent = null): array|Collection
100100
}
101101

102102
// If the key is not set, return an empty array.
103-
if (!isset($key)) {
103+
if (! isset($key)) {
104104
return [];
105105
}
106106

@@ -109,7 +109,7 @@ private function buildTree(int $parent = null): array|Collection
109109
->where($key, $parent);
110110

111111
// If we're not at the root level and a modification callback is provided, apply it to the query.
112-
if (!$parent && $this->modifyQueryUsing) {
112+
if (! $parent && $this->modifyQueryUsing) {
113113
$defaultQuery = $this->evaluate($this->modifyQueryUsing, ['query' => $defaultQuery]);
114114
}
115115

@@ -131,7 +131,7 @@ private function buildTree(int $parent = null): array|Collection
131131
});
132132
}
133133

134-
public function relationship(string $relationship, string $titleAttribute, ?Closure $modifyQueryUsing = null): self
134+
public function relationship(string $relationship, string $titleAttribute, Closure $modifyQueryUsing = null): self
135135
{
136136
$this->relationship = $relationship;
137137
$this->titleAttribute = $titleAttribute;

0 commit comments

Comments
 (0)