Skip to content

Commit 16be2fb

Browse files
Copilotthorsten
andcommitted
Fix linting errors: remove trailing whitespace
Co-authored-by: thorsten <45284+thorsten@users.noreply.github.com>
1 parent 99a80f3 commit 16be2fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

phpmyfaq/src/phpMyFAQ/Category/Order.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,21 +130,21 @@ public function getCategoryTree(array $categories, int $parentId = 0, array &$vi
130130
foreach ($categories as $category) {
131131
$categoryId = (int)$category['category_id'];
132132
$categoryParentId = (int)$category['parent_id'];
133-
133+
134134
// Skip if category is its own parent or creates a cycle
135135
if ($categoryId === $categoryParentId) {
136136
continue;
137137
}
138-
138+
139139
if ($categoryParentId === $parentId) {
140140
// Check if this category has already been visited to prevent cycles
141141
if (isset($visited[$categoryId])) {
142142
continue;
143143
}
144-
144+
145145
// Add current category to visited list
146146
$visited[$categoryId] = true;
147-
147+
148148
$childCategories = $this->getCategoryTree($categories, $categoryId, $visited);
149149
$result[$categoryId] = $childCategories;
150150
}

0 commit comments

Comments
 (0)