Skip to content

Commit

Permalink
style: use elseif instead of else if
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Nov 4, 2023
1 parent 284800b commit 3099d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TorrentFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ private static function sortFileTreeRecursive(array &$fileTree, $sortByString =
foreach ($fileTree as $key => &$item) {
if (is_array($item)) {
$fileTree[$key] = self::sortFileTreeRecursive($item, $sortByString, $sortByFolder);
} else if ($sortByFolder) {
} elseif ($sortByFolder) {
$isoFile[$key] = $item;
unset($fileTree[$key]);
}
Expand Down

0 comments on commit 3099d9e

Please sign in to comment.