Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
arukompas authored and github-actions[bot] committed Sep 9, 2022
1 parent 81e6f3c commit e7a83d3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/LogFolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function cleanPath(): string
{
$folder = $this->path;

if (str_contains($folder, $storageLogsFolder = DIRECTORY_SEPARATOR . 'storage' . DIRECTORY_SEPARATOR . 'logs')) {
if (str_contains($folder, $storageLogsFolder = DIRECTORY_SEPARATOR.'storage'.DIRECTORY_SEPARATOR.'logs')) {
// If we have /something/storage/logs, then we can remove it to make the string cleaner.
// storage/logs is implied on Laravel environments.
$folder = str_replace($storageLogsFolder, '', $folder);
Expand All @@ -42,7 +42,9 @@ public function pathParts(): array
{
$folder = $this->cleanPath();

if (empty($folder)) return [];
if (empty($folder)) {
return [];
}

return explode(DIRECTORY_SEPARATOR, $folder);
}
Expand All @@ -51,7 +53,9 @@ public function pathFormatted(): string
{
$folder = $this->cleanPath();

if (empty($folder)) return $folder;
if (empty($folder)) {
return $folder;
}

return str_replace(DIRECTORY_SEPARATOR, ' '.DIRECTORY_SEPARATOR.' ', $folder);
}
Expand Down

0 comments on commit e7a83d3

Please sign in to comment.