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 Jun 17, 2023
1 parent 58097ac commit 561db04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Commands/Traits/StubTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function getClass()
/**
* Get the contents of the specified stub file by given stub fskey.
*
* @param $stub
* @param $stub
* @return string
*/
protected function getStubContents($stubPath)
Expand Down Expand Up @@ -176,7 +176,7 @@ public function getReplacedContent(string $content, array $keys = [])
/**
* Get array replacement for the specified stub.
*
* @param $stub
* @param $stub
* @return array
*/
protected function getReplacement($stubPath)
Expand Down
4 changes: 2 additions & 2 deletions src/Generators/FileGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class FileGenerator extends Generator
/**
* The constructor.
*
* @param $path
* @param $contents
* @param $path
* @param $contents
* @param null $filesystem
*/
public function __construct($path, $contents, $filesystem = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function unpack(string $sourcePath, ?string $targetPath = null): ?string
// Make sure the unzip destination directory exists
$targetPath = $targetPath ?? storage_path('app/extensions/.tmp');
if (empty($targetPath)) {
\info("targetPath cannot be empty");
\info('targetPath cannot be empty');
throw new \RuntimeException('targetPath cannot be empty');
}

Expand Down

0 comments on commit 561db04

Please sign in to comment.