Skip to content

Commit cd60403

Browse files
CodeWithDennisgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 2817b2e commit cd60403

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/SelectTree.php

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

148148
// Check if the treeModel is not set; if yes, return an empty collection.
149-
if (!$this->treeModel) {
149+
if (! $this->treeModel) {
150150
return collect();
151151
}
152152

@@ -155,7 +155,7 @@ private function buildTree(int $parent = null): array|Collection
155155
->where($this->treeParentKey, $parent);
156156

157157
// If we're not at the root level and a modification callback is provided, apply it.
158-
if (!$parent && $this->modifyQueryUsing) {
158+
if (! $parent && $this->modifyQueryUsing) {
159159
$defaultQuery = $this->evaluate($this->modifyQueryUsing, ['query' => $defaultQuery]);
160160
}
161161

@@ -176,5 +176,4 @@ private function buildTree(int $parent = null): array|Collection
176176
];
177177
});
178178
}
179-
180179
}

0 commit comments

Comments
 (0)