Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Mar 13, 2023
1 parent 6b2abaa commit 45ba57f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/ThemeInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function handle()
$path = $pluginDirectory;
}

if (!$path || !file_exists($path)) {
if (! $path || ! file_exists($path)) {
$this->error('Failed to unzip, couldn\'t find the theme path');

return Command::FAILURE;
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function pack(string $sourcePath, ?string $filename = null, ?string $targ
$basename = File::name($zipFilepath);
$zipCount = count(File::glob("{$targetPath}/{$basename}*.zip"));

$zipFilename = $basename.($zipCount).'.zip';
$zipFilename = $basename.$zipCount.'.zip';
$zipFilepath = "{$targetPath}/{$zipFilename}";
}

Expand Down

0 comments on commit 45ba57f

Please sign in to comment.