From 561db04d1dcb6a4b839fb81d86cd61093946c7c1 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sat, 17 Jun 2023 11:12:51 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Commands/Traits/StubTrait.php | 4 ++-- src/Generators/FileGenerator.php | 4 ++-- src/Support/Zip.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Commands/Traits/StubTrait.php b/src/Commands/Traits/StubTrait.php index c1fb481..56a0504 100644 --- a/src/Commands/Traits/StubTrait.php +++ b/src/Commands/Traits/StubTrait.php @@ -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) @@ -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) diff --git a/src/Generators/FileGenerator.php b/src/Generators/FileGenerator.php index a1e2377..d62b55b 100644 --- a/src/Generators/FileGenerator.php +++ b/src/Generators/FileGenerator.php @@ -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) diff --git a/src/Support/Zip.php b/src/Support/Zip.php index a24fb1a..7f4a941 100644 --- a/src/Support/Zip.php +++ b/src/Support/Zip.php @@ -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'); }