Skip to content

Commit 0053622

Browse files
cklei-carlygithub-actions[bot]
authored andcommitted
Fix styling
1 parent da954f3 commit 0053622

12 files changed

Lines changed: 26 additions & 16 deletions

File tree

src/Base/Models/Interfaces/HasRecursiveRelationshipsInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Illuminate\Database\Eloquent\Relations\BelongsTo;
77
use Illuminate\Database\Eloquent\Relations\HasMany;
88
use Illuminate\Support\Collection;
9+
use SolutionForest\InspireCms\Support\Models\Concerns\HasRecursiveRelationships;
910
use Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Ancestors;
1011
use Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Bloodline;
1112
use Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Descendants;
@@ -22,7 +23,7 @@
2223
* @property null | TModel $parent
2324
* @property Collection<TModel> $parentAndSelf
2425
*
25-
* @see \SolutionForest\InspireCms\Support\Models\Concerns\HasRecursiveRelationships
26+
* @see HasRecursiveRelationships
2627
*/
2728
interface HasRecursiveRelationshipsInterface
2829
{

src/Helpers/TreeNodeActionHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Filament\Actions\Action;
77
use Filament\Actions\ActionGroup;
88
use Illuminate\Database\Eloquent\Model;
9+
use Livewire\Component;
910

1011
class TreeNodeActionHelper
1112
{
@@ -14,7 +15,7 @@ class TreeNodeActionHelper
1415
* @param Closure(Model|string|int|null):Model|null $resolveRecordUsing
1516
* @return array<Action|ActionGroup>
1617
*/
17-
public static function getNodeActions(array $node, array $livewireActions, ?Closure $resolveRecordUsing = null, string | Model | null $model = null, ?\Livewire\Component $livewire = null, string $idName = 'id', string $actionName = '__visibleActions'): array
18+
public static function getNodeActions(array $node, array $livewireActions, ?Closure $resolveRecordUsing = null, string | Model | null $model = null, ?Component $livewire = null, string $idName = 'id', string $actionName = '__visibleActions'): array
1819
{
1920
$actionNames = $node[$actionName] ?? [];
2021

src/InspireCmsSupportServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function packageRegistered(): void
7575
});
7676
// Media library config END
7777

78-
\SolutionForest\InspireCms\Support\Facades\ResolverRegistry::register($this->app);
78+
Facades\ResolverRegistry::register($this->app);
7979
}
8080

8181
public function packageBooted(): void

src/Macros/BlueprintMarcos.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
namespace SolutionForest\InspireCms\Support\Macros;
44

5+
use Illuminate\Database\Schema\Blueprint;
6+
57
/**
6-
* @see \Illuminate\Database\Schema\Blueprint
8+
* @see Blueprint
79
*/
810
class BlueprintMarcos
911
{

src/MediaLibrary/Concerns/HasFilters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use SolutionForest\InspireCms\Support\MediaLibrary\FilterType;
1111

1212
/**
13-
* @property \Filament\Schemas\Schema $filterForm
13+
* @property Schema $filterForm
1414
*/
1515
trait HasFilters
1616
{

src/MediaLibrary/Concerns/HasSorts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Illuminate\Database\Eloquent\Builder;
1111

1212
/**
13-
* @property \Filament\Schemas\Schema $sortForm
13+
* @property Schema $sortForm
1414
*/
1515
trait HasSorts
1616
{

src/MediaLibrary/Livewire/FolderBrowserComponent.php

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

33
namespace SolutionForest\InspireCms\Support\MediaLibrary\Livewire;
44

5+
use Illuminate\Database\Eloquent\Collection;
56
use Illuminate\Database\Eloquent\Model;
67
use Livewire\Attributes\Lazy;
78
use Livewire\Attributes\Reactive;
@@ -25,7 +26,7 @@ class FolderBrowserComponent extends Component implements HasItemActions
2526

2627
public function boot()
2728
{
28-
if ($this->folders && $this->folders instanceof \Illuminate\Database\Eloquent\Collection) {
29+
if ($this->folders && $this->folders instanceof Collection) {
2930
$this->folders->loadCount('children');
3031
}
3132
}

src/MediaLibrary/Livewire/MediaLibraryComponent.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Filament\Support\Colors\Color;
1010
use Filament\Support\Facades\FilamentIcon;
1111
use Illuminate\Auth\Access\AuthorizationException;
12+
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
1213
use Illuminate\Database\Eloquent\Builder;
1314
use Illuminate\Database\Eloquent\Model;
1415
use Illuminate\Support\Collection;
@@ -38,7 +39,7 @@
3839
use function Filament\authorize;
3940

4041
/**
41-
* @property \Filament\Schemas\Schema $uploadForm
42+
* @property Schema $uploadForm
4243
*/
4344
class MediaLibraryComponent extends Component implements HasItemActions, HasItemBulkActions
4445
{
@@ -527,7 +528,7 @@ protected function mutateSortData(array $data): array
527528
/**
528529
* Get the media assets from the parent.
529530
*
530-
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator<int, Model&MediaAsset>
531+
* @return LengthAwarePaginator<int, Model&MediaAsset>
531532
*/
532533
#[Computed(persist: true, seconds: 120)]
533534
public function assets()
@@ -664,7 +665,7 @@ protected function changeParent($key)
664665
}
665666

666667
/**
667-
* @return \Illuminate\Database\Eloquent\Model & MediaAsset |null
668+
* @return Model & MediaAsset |null
668669
*/
669670
protected function getParentRecord()
670671
{

tests/src/Feature/Livewire/MediaLibraryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Livewire\Livewire;
77
use SolutionForest\InspireCms\Support\Helpers\KeyHelper;
88
use SolutionForest\InspireCms\Support\MediaLibrary\FilterType;
9+
use SolutionForest\InspireCms\Support\Tests\Fixtures\Livewire\MediaLibrary;
910
use SolutionForest\InspireCms\Support\Tests\Models\MediaAsset;
1011
use SolutionForest\InspireCms\Support\Tests\TestCase;
1112

@@ -17,7 +18,7 @@
1718
const FORM_NAMES_FILTER = 'filterForm';
1819

1920
// const LIVEWIRE_MEDIA_LIBRARY = 'inspirecms-support::media-library';
20-
const LIVEWIRE_MEDIA_LIBRARY = \SolutionForest\InspireCms\Support\Tests\Fixtures\Livewire\MediaLibrary::class;
21+
const LIVEWIRE_MEDIA_LIBRARY = MediaLibrary::class;
2122

2223
test('renders media library component', function () {
2324
Livewire::test(LIVEWIRE_MEDIA_LIBRARY)

tests/src/Fixtures/Livewire/MediaLibrary.php

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

33
namespace SolutionForest\InspireCms\Support\Tests\Fixtures\Livewire;
44

5+
use Illuminate\Support\MessageBag;
56
use SolutionForest\InspireCms\Support\MediaLibrary\MediaLibraryComponent;
67

78
class MediaLibrary extends MediaLibraryComponent
@@ -10,15 +11,15 @@ public function mount()
1011
{
1112
parent::mount();
1213

13-
$this->setErrorBag(new \Illuminate\Support\MessageBag);
14+
$this->setErrorBag(new MessageBag);
1415
}
1516

1617
public function getErrorBag()
1718
{
1819
$bag = parent::getErrorBag();
1920

2021
if (is_null($bag)) {
21-
$bag = new \Illuminate\Support\MessageBag;
22+
$bag = new MessageBag;
2223
$this->setErrorBag($bag);
2324
}
2425

0 commit comments

Comments
 (0)