From 181e8f5835eb9c2d9f6ad0138a7f5a876203ae1e Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 18 Jul 2023 00:17:00 +0000 Subject: [PATCH] Fix code styling --- src/Factory.php | 4 ++-- src/IconsManifest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Factory.php b/src/Factory.php index 3f6421f..0d87653 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -177,7 +177,7 @@ private function contents(string $set, string $name): string throw SvgNotFound::missing($set, $name); } - private function getSvgFromPath(string $name, string $path, ?string $disk = null): string + private function getSvgFromPath(string $name, string $path, string $disk = null): string { $contents = trim($this->filesystem($disk)->get(sprintf( '%s/%s.svg', @@ -250,7 +250,7 @@ private function buildClass(string $set, string $class): string /** * @return \Illuminate\Contracts\Filesystem\Filesystem|Filesystem */ - private function filesystem(?string $disk = null) + private function filesystem(string $disk = null) { return $this->disks && $disk ? $this->disks->disk($disk) : $this->filesystem; } diff --git a/src/IconsManifest.php b/src/IconsManifest.php index d2cc919..f93a6bc 100644 --- a/src/IconsManifest.php +++ b/src/IconsManifest.php @@ -65,7 +65,7 @@ private function build(array $sets): array /** * @return \Illuminate\Contracts\Filesystem\Filesystem|Filesystem */ - private function filesystem(?string $disk = null) + private function filesystem(string $disk = null) { return $this->disks && $disk ? $this->disks->disk($disk) : $this->filesystem; }