Skip to content

Commit 32a1119

Browse files
taylorotwellgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent 7815c53 commit 32a1119

9 files changed

Lines changed: 14 additions & 11 deletions

File tree

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function with(mixed ...$data): void
134134
*
135135
* @param class-string<Form> $class
136136
*
137-
* @throws \InvalidArgumentException
137+
* @throws InvalidArgumentException
138138
*/
139139
function form(string $class, string $propertyName = 'form'): void
140140
{

src/ComponentFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function requirePath(string $path): void
8787
/**
8888
* Set the latest created component class.
8989
*
90-
* @param class-string<\Livewire\Volt\Component> $componentClass
90+
* @param class-string<Component> $componentClass
9191
*/
9292
public function setLatestCreatedComponentClass(string $componentClass): void
9393
{

src/Console/InstallCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Livewire\Volt\Console;
44

5+
use App\Providers\VoltServiceProvider;
56
use Illuminate\Console\Command;
67
use Illuminate\Support\Facades\File;
78
use Illuminate\Support\ServiceProvider;
@@ -45,7 +46,7 @@ public function handle(): void
4546
protected function registerVoltServiceProvider(): void
4647
{
4748
if (method_exists(ServiceProvider::class, 'addProviderToBootstrapFile') &&
48-
ServiceProvider::addProviderToBootstrapFile(\App\Providers\VoltServiceProvider::class)) { // @phpstan-ignore-line
49+
ServiceProvider::addProviderToBootstrapFile(VoltServiceProvider::class)) { // @phpstan-ignore-line
4950
return;
5051
}
5152

src/MountedDirectories.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class MountedDirectories
1010
/**
1111
* The mounted directory paths.
1212
*
13-
* @var array<int, \Livewire\Volt\MountedDirectory>
13+
* @var array<int, MountedDirectory>
1414
*/
1515
protected array $paths = [];
1616

@@ -43,7 +43,7 @@ public function isWithinMountedDirectory(string $path): bool
4343
/**
4444
* Get the mounted directory paths.
4545
*
46-
* @return array<int, \Livewire\Volt\MountedDirectory>
46+
* @return array<int, MountedDirectory>
4747
*/
4848
public function paths(): array
4949
{

src/Precompilers/ExtractFragments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function directive(string $name, array $arguments): string
101101
/**
102102
* Ensure that Folio pages using fragments have the "@volt" directive.
103103
*
104-
* @throws \Livewire\Volt\Exceptions\VoltDirectiveMissingException
104+
* @throws VoltDirectiveMissingException
105105
*/
106106
protected function ensurePagesUsingFragmentsUseDirective(string $template): void
107107
{

src/Support/Reflection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function toMethodSignatureFromClosure(string $name, Closure $closu
6464
/**
6565
* Get the method signature of combined closures as a string.
6666
*
67-
* @param array<int, \Closure> $closures
67+
* @param array<int, Closure> $closures
6868
*/
6969
public static function toSingleMethodSignatureFromClosures(string $name, array $closures): string
7070
{
@@ -104,7 +104,7 @@ public static function toSingleMethodSignatureFromClosures(string $name, array $
104104
/**
105105
* Get the reflection parameters of the given closure keyed by their name.
106106
*
107-
* @return \Illuminate\Support\Collection<string, \ReflectionParameter>
107+
* @return Collection<string, ReflectionParameter>
108108
*/
109109
protected static function getParametersFromClosure(?Closure $closure): Collection
110110
{

src/VoltManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function ensureViewsAreCached(): void
110110
/**
111111
* Get the mounted directory paths.
112112
*
113-
* @return array<int, \Livewire\Volt\MountedDirectory>
113+
* @return array<int, MountedDirectory>
114114
*/
115115
public function paths(): array
116116
{

tests/Feature/FunctionalComponentTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use Illuminate\Support\Facades\File;
55
use Illuminate\Support\Facades\View;
66
use Illuminate\View\FileViewFinder;
7+
use Livewire\Component;
78
use Livewire\Exceptions\ComponentNotFoundException;
89
use Livewire\Exceptions\MethodNotFoundException;
910
use Livewire\Exceptions\MissingRulesException;
@@ -362,7 +363,7 @@ function resetResolvedComponentNames(): void
362363
});
363364

364365
it('throws exception when "method" is not found', function () {
365-
LiveWire::component('vanilla-component', new class extends \Livewire\Component
366+
Livewire::component('vanilla-component', new class extends Component
366367
{
367368
public function render()
368369
{

tests/Pest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
use Livewire\Volt\CompileContext;
1616
use Livewire\Volt\FragmentAlias;
1717
use Livewire\Volt\VoltManager;
18+
use Tests\TestCase;
1819

19-
uses(Tests\TestCase::class)
20+
uses(TestCase::class)
2021
->beforeEach(function () {
2122
Artisan::call('view:clear');
2223
(fn () => VoltManager::$viewsAreCached = false)->bindTo(null, VoltManager::class)();

0 commit comments

Comments
 (0)