Author: Shivam Mathur (shivammathur)
Date: 2026-04-02T06:33:39+05:30
Commit: Fix indentation in ListBuildsController · php/web-downloads@994d659 · GitHub
Raw diff: https://github.com/php/web-downloads/commit/994d65969f6d66ff44820a6e2d93007f806f4a2f.diff
Fix indentation in ListBuildsController
Changed paths:
M src/Http/Controllers/ListBuildsController.php
Diff:
diff --git a/src/Http/Controllers/ListBuildsController.php b/src/Http/Controllers/ListBuildsController.php
index 3be3732..a7c3e1f 100644
--- a/src/Http/Controllers/ListBuildsController.php
+++ b/src/Http/Controllers/ListBuildsController.php
@@ -36,10 +36,10 @@ private function collectBuilds(string $root): array
{
$entries = [];
- $normalizedRoot = rtrim($root, DIRECTORY_SEPARATOR);
+ $normalizedRoot = rtrim($root, DIRECTORY_SEPARATOR);
- $iterator = new RecursiveIteratorIterator(
- new RecursiveDirectoryIterator($normalizedRoot, FilesystemIterator::SKIP_DOTS),
+ $iterator = new RecursiveIteratorIterator(
+ new RecursiveDirectoryIterator($normalizedRoot, FilesystemIterator::SKIP_DOTS),
RecursiveIteratorIterator::LEAVES_ONLY
);
@@ -48,7 +48,7 @@ private function collectBuilds(string $root): array
continue;
}
- $relativePath = substr($fileInfo->getPathname(), strlen($normalizedRoot) + 1);
+ $relativePath = substr($fileInfo->getPathname(), strlen($normalizedRoot) + 1);
$entries[] = [
'path' => $relativePath,