Skip to content

Commit

Permalink
Reset keys
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjmead committed Sep 29, 2024
1 parent e45d7ac commit 16f06d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/Domain/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,13 @@ public static function get_all_slugs(string $directory): Collection
*/
public static function get_all_sites(string $directory): Collection
{
return collect(File::directories($directory))->filter(function ($site_directory) {
return File::isFile($site_directory . '/wp-config.php');
})->map(function ($site_directory) {
return new self(dirname($site_directory), basename($site_directory));
});
return collect(File::directories($directory))
->filter(function ($site_directory) {
return File::isFile($site_directory . '/wp-config.php');
})
->map(function ($site_directory) {
return new self(dirname($site_directory), basename($site_directory));
})
->values();
}
}
Binary file modified builds/wpsites
Binary file not shown.

0 comments on commit 16f06d1

Please sign in to comment.