Skip to content

Commit 47ed76f

Browse files
thomasdominicgithub-actions[bot]
thomasdominic
authored andcommitted
Fix styling
1 parent c6ace74 commit 47ed76f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/FlowbiteLaravelServiceProvider.php

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
namespace Flowbite\FlowbiteLaravel;
44

5+
use Flowbite\FlowbiteLaravel\Commands\FlowbiteLaravelCommand;
56
use Flowbite\FlowbiteLaravel\View\Components\Input;
67
use Illuminate\Support\Facades\Blade;
7-
use Illuminate\Support\Facades\DB;
8-
use Illuminate\Support\Str;
98
use Illuminate\View\Compilers\BladeCompiler;
109
use Spatie\LaravelPackageTools\Package;
1110
use Spatie\LaravelPackageTools\PackageServiceProvider;
12-
use Flowbite\FlowbiteLaravel\Commands\FlowbiteLaravelCommand;
1311

1412
class FlowbiteLaravelServiceProvider extends PackageServiceProvider
1513
{
@@ -38,7 +36,7 @@ public function packageBooted()
3836
protected function configureComponents()
3937
{
4038
$this->callAfterResolving(BladeCompiler::class, function () {
41-
$this->registerComponent('input','input.index');
39+
$this->registerComponent('input', 'input.index');
4240
//$this->registerComponent('input.floated');
4341
});
4442
}
@@ -51,8 +49,8 @@ protected function configureComponents()
5149
*/
5250
protected function registerComponent(string $component, ?string $file = null)
5351
{
54-
$prefix = config('flowbite-laravel.prefix','');
55-
if(!empty($prefix)){
52+
$prefix = config('flowbite-laravel.prefix', '');
53+
if (! empty($prefix)) {
5654
$prefix .= "-";
5755
}
5856
Blade::component('flowbite-laravel::components.'.($file ?? $component), $prefix.$component);

tests/TestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Flowbite\FlowbiteLaravel\Tests;
44

5+
use Flowbite\FlowbiteLaravel\FlowbiteLaravelServiceProvider;
56
use Illuminate\Database\Eloquent\Factories\Factory;
67
use Orchestra\Testbench\TestCase as Orchestra;
7-
use Flowbite\FlowbiteLaravel\FlowbiteLaravelServiceProvider;
88

99
class TestCase extends Orchestra
1010
{

0 commit comments

Comments
 (0)