Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
CaCO3 committed Oct 29, 2023
1 parent 223671d commit e868147
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -841,12 +841,12 @@ private function recursiveDelete(string $folder): void {
}

foreach ($files as $file) {
if (unlink($file) === false){
if (unlink($file) === false) {
throw new \Exception('Could not unlink ' . $file);
}
}
foreach ($directories as $dir) {
if (rmdir($dir) === false){
if (rmdir($dir) === false) {
throw new \Exception('Could not rmdir ' . $dir);
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -803,12 +803,12 @@ private function recursiveDelete(string $folder): void {
}

foreach ($files as $file) {
if (unlink($file) === false){
if (unlink($file) === false) {
throw new \Exception('Could not unlink ' . $file);
}
}
foreach ($directories as $dir) {
if (rmdir($dir) === false){
if (rmdir($dir) === false) {
throw new \Exception('Could not rmdir ' . $dir);
}
}
Expand Down

0 comments on commit e868147

Please sign in to comment.