Skip to content

Commit

Permalink
Fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored and github-actions[bot] committed Jul 26, 2024
1 parent 99783fe commit 0528137
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/BladeIconsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private function registerFactory(): void
$config = $app->make('config')->get('blade-icons', []);

$factory = new Factory(
new Filesystem(),
new Filesystem,
$app->make(IconsManifest::class),
$app->make(FilesystemFactory::class),
$config,
Expand Down Expand Up @@ -71,7 +71,7 @@ private function registerManifest(): void
{
$this->app->singleton(IconsManifest::class, function (Application $app) {
return new IconsManifest(
new Filesystem(),
new Filesystem,
$this->manifestPath(),
$app->make(FilesystemFactory::class),
);
Expand Down
2 changes: 1 addition & 1 deletion src/Generation/IconGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class IconGenerator

public function __construct(array $sets)
{
$this->filesystem = new Filesystem();
$this->filesystem = new Filesystem;
$this->sets = $sets;
}

Expand Down
4 changes: 2 additions & 2 deletions tests/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function icons_are_cached()
public function default_icon_set_is_optional()
{
$factory = new Factory(
new Filesystem(),
new Filesystem,
$this->app->make(IconsManifest::class),
null,
['class' => 'icon icon-default'],
Expand All @@ -144,7 +144,7 @@ public function default_icon_set_is_optional()
public function icon_not_found_without_default_set_throws_proper_exception()
{
$factory = new Factory(
new Filesystem(),
new Filesystem,
$this->app->make(IconsManifest::class),
null,
['class' => 'icon icon-default'],
Expand Down
2 changes: 1 addition & 1 deletion tests/IconGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class IconGeneratorTest extends TestCase

private function clearResultsDirectory(): void
{
$fs = new Filesystem();
$fs = new Filesystem;

if ($fs->isDirectory(static::RESULT_DIR)) {
$fs->deleteDirectory(static::RESULT_DIR);
Expand Down
8 changes: 4 additions & 4 deletions tests/IconsManifestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private function expectedManifest(): string
/** @test */
public function it_can_write_the_manifest_file()
{
$manifest = new IconsManifest(new Filesystem(), $this->manifestPath);
$manifest = new IconsManifest(new Filesystem, $this->manifestPath);
$manifest->write($this->prepareSets()->all());

$this->assertTrue(file_exists($this->manifestPath));
Expand All @@ -56,7 +56,7 @@ public function it_can_write_the_manifest_file()
/** @test */
public function it_can_delete_the_manifest_file()
{
$manifest = new IconsManifest(new Filesystem(), $this->manifestPath);
$manifest = new IconsManifest(new Filesystem, $this->manifestPath);
$manifest->write([]);

$this->assertTrue(file_exists($this->manifestPath));
Expand All @@ -67,7 +67,7 @@ public function it_can_delete_the_manifest_file()
/** @test */
public function it_throws_an_exceptiion_when_the_manifest_path_is_not_present_or_writable()
{
$manifest = new IconsManifest(new Filesystem(), '/foo/bar.php');
$manifest = new IconsManifest(new Filesystem, '/foo/bar.php');

try {
$manifest->write([]);
Expand All @@ -83,7 +83,7 @@ public function it_throws_an_exceptiion_when_the_manifest_path_is_not_present_or
/** @test */
public function it_can_get_the_manifest()
{
$manifest = new IconsManifest(new Filesystem(), $this->manifestPath);
$manifest = new IconsManifest(new Filesystem, $this->manifestPath);

$this->assertSame([], $manifest->getManifest([]));
}
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract class TestCase extends OrchestraTestCase
protected function prepareSets(array $config = [], array $setOptions = []): Factory
{
$factory = new Factory(
new Filesystem(),
new Filesystem,
$this->app->make(IconsManifest::class),
$this->app->make(FilesystemFactory::class),
$config,
Expand Down

0 comments on commit 0528137

Please sign in to comment.