Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
asciito authored and github-actions[bot] committed Oct 3, 2023
1 parent 18e784e commit 19fcc41
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
13 changes: 6 additions & 7 deletions src/Package/Concerns/HasCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,12 @@ public function getDefaultCommandFiles(): Collection

return $this->getFilesFrom($this->getBasePath('console/commands'))
->map(fn (string $path): string => Str::of($path)
->basename('.php')
->prepend(
'\\',
$this->getNamespace(),
'\\Console\\Commands\\',
)
,
->basename('.php')
->prepend(
'\\',
$this->getNamespace(),
'\\Console\\Commands\\',
),
);

}
Expand Down
10 changes: 5 additions & 5 deletions tests/Feature/Command/PackageuUnregisterCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Asciito\LaravelPackage\Tests\Feature\Command;

use Asciito\LaravelPackage\Package\Package;

use Symfony\Component\Console\Exception\CommandNotFoundException;

use function Pest\Laravel\artisan;

trait PackageUnregisterCommandTest
Expand Down Expand Up @@ -47,10 +47,10 @@ protected function configurePackage(Package $package): void
artisan('package:test-two')
->assertFailed();
})->toThrow(CommandNotFoundException::class)
->and(function () {
artisan('package:test-three')
->assertFailed();
})->toThrow(CommandNotFoundException::class);
->and(function () {
artisan('package:test-three')
->assertFailed();
})->toThrow(CommandNotFoundException::class);

artisan('package:test-four')
->expectsOutput('Package test four')
Expand Down

0 comments on commit 19fcc41

Please sign in to comment.