Skip to content

Commit 3cabbb5

Browse files
cs
1 parent 11f8d27 commit 3cabbb5

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

src/TailwindCssPreset.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace LaravelFrontendPresets\TailwindCssPreset;
44

5-
use Illuminate\Support\Arr;
6-
use Illuminate\Support\Str;
75
use Illuminate\Container\Container;
86
use Illuminate\Filesystem\Filesystem;
7+
use Illuminate\Support\Arr;
8+
use Illuminate\Support\Str;
99
use Laravel\Ui\Presets\Preset;
1010
use Symfony\Component\Finder\SplFileInfo;
1111

@@ -49,33 +49,33 @@ protected static function updateStyles()
4949
$filesystem->delete(public_path('js/app.js'));
5050
$filesystem->delete(public_path('css/app.css'));
5151

52-
if (!$filesystem->isDirectory($directory = resource_path('css'))) {
52+
if (! $filesystem->isDirectory($directory = resource_path('css'))) {
5353
$filesystem->makeDirectory($directory, 0755, true);
5454
}
5555
});
5656

57-
copy(__DIR__ . '/tailwindcss-stubs/resources/css/app.css', resource_path('css/app.css'));
57+
copy(__DIR__.'/tailwindcss-stubs/resources/css/app.css', resource_path('css/app.css'));
5858
}
5959

6060
protected static function updateBootstrapping()
6161
{
62-
copy(__DIR__ . '/tailwindcss-stubs/tailwind.config.js', base_path('tailwind.config.js'));
62+
copy(__DIR__.'/tailwindcss-stubs/tailwind.config.js', base_path('tailwind.config.js'));
6363

64-
copy(__DIR__ . '/tailwindcss-stubs/webpack.mix.js', base_path('webpack.mix.js'));
64+
copy(__DIR__.'/tailwindcss-stubs/webpack.mix.js', base_path('webpack.mix.js'));
6565

66-
copy(__DIR__ . '/tailwindcss-stubs/resources/js/bootstrap.js', resource_path('js/bootstrap.js'));
66+
copy(__DIR__.'/tailwindcss-stubs/resources/js/bootstrap.js', resource_path('js/bootstrap.js'));
6767
}
6868

6969
protected static function updateWelcomePage()
7070
{
7171
(new Filesystem)->delete(resource_path('views/welcome.blade.php'));
7272

73-
copy(__DIR__ . '/tailwindcss-stubs/resources/views/welcome.blade.php', resource_path('views/welcome.blade.php'));
73+
copy(__DIR__.'/tailwindcss-stubs/resources/views/welcome.blade.php', resource_path('views/welcome.blade.php'));
7474
}
7575

7676
protected static function scaffoldController()
7777
{
78-
if (!is_dir($directory = app_path('Http/Controllers/Auth'))) {
78+
if (! is_dir($directory = app_path('Http/Controllers/Auth'))) {
7979
mkdir($directory, 0755, true);
8080
}
8181

@@ -85,7 +85,7 @@ protected static function scaffoldController()
8585
->each(function (SplFileInfo $file) use ($filesystem) {
8686
$filesystem->copy(
8787
$file->getPathname(),
88-
app_path('Http/Controllers/Auth/' . Str::replaceLast('.stub', '.php', $file->getFilename()))
88+
app_path('Http/Controllers/Auth/'.Str::replaceLast('.stub', '.php', $file->getFilename()))
8989
);
9090
});
9191
}
@@ -101,13 +101,13 @@ protected static function scaffoldAuth()
101101
);
102102

103103
tap(new Filesystem, function ($filesystem) {
104-
$filesystem->copyDirectory(__DIR__ . '/tailwindcss-stubs/resources/views', resource_path('views'));
104+
$filesystem->copyDirectory(__DIR__.'/tailwindcss-stubs/resources/views', resource_path('views'));
105105

106106
collect($filesystem->allFiles(base_path('vendor/laravel/ui/stubs/migrations')))
107107
->each(function (SplFileInfo $file) use ($filesystem) {
108108
$filesystem->copy(
109109
$file->getPathname(),
110-
database_path('migrations/' . $file->getFilename())
110+
database_path('migrations/'.$file->getFilename())
111111
);
112112
});
113113
});
@@ -118,7 +118,7 @@ protected static function compileControllerStub()
118118
return str_replace(
119119
'{{namespace}}',
120120
Container::getInstance()->getNamespace(),
121-
file_get_contents(__DIR__ . '/tailwindcss-stubs/controllers/HomeController.stub')
121+
file_get_contents(__DIR__.'/tailwindcss-stubs/controllers/HomeController.stub')
122122
);
123123
}
124124
}

src/TailwindCssPresetServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Illuminate\Support\ServiceProvider;
66
use Laravel\Ui\UiCommand;
7-
use Laravel\Ui\AuthCommand;
87

98
class TailwindCssPresetServiceProvider extends ServiceProvider
109
{

0 commit comments

Comments
 (0)