Skip to content

Commit fb6a8d1

Browse files
author
Robert Kummer
committed
reduced whitespace changes
1 parent b2d265b commit fb6a8d1

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/InertiaJsPreset.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,26 @@ protected static function updateComposerArray(array $packages)
4343

4444
protected static function updateBootstrapping()
4545
{
46-
copy(__DIR__ . '/inertiajs-stubs/webpack.mix.js', base_path('webpack.mix.js'));
46+
copy(__DIR__.'/inertiajs-stubs/webpack.mix.js', base_path('webpack.mix.js'));
4747

48-
copy(__DIR__ . '/inertiajs-stubs/resources/js/app.js', resource_path('js/app.js'));
48+
copy(__DIR__.'/inertiajs-stubs/resources/js/app.js', resource_path('js/app.js'));
4949

50-
copy(__DIR__ . '/inertiajs-stubs/resources/sass/app.scss', resource_path('sass/app.scss'));
51-
copy(__DIR__ . '/inertiajs-stubs/resources/sass/_nprogress.scss', resource_path('sass/_nprogress.scss'));
50+
copy(__DIR__.'/inertiajs-stubs/resources/sass/app.scss', resource_path('sass/app.scss'));
51+
copy(__DIR__.'/inertiajs-stubs/resources/sass/_nprogress.scss', resource_path('sass/_nprogress.scss'));
5252
}
5353

5454
protected static function updateWelcomePage()
5555
{
5656
(new Filesystem)->delete(resource_path('views/welcome.blade.php'));
5757

58-
copy(__DIR__ . '/inertiajs-stubs/resources/views/app.blade.php', resource_path('views/app.blade.php'));
58+
copy(__DIR__.'/inertiajs-stubs/resources/views/app.blade.php', resource_path('views/app.blade.php'));
5959
}
6060

6161
protected static function updateGitignore()
6262
{
6363
file_put_contents(
6464
base_path('.gitignore'),
65-
file_get_contents(__DIR__ . '/inertiajs-stubs/gitignore'),
65+
file_get_contents(__DIR__.'/inertiajs-stubs/gitignore'),
6666
FILE_APPEND
6767
);
6868
}
@@ -72,20 +72,20 @@ protected static function scaffoldComponents()
7272
tap(new Filesystem, function (Filesystem $fs) {
7373
$fs->deleteDirectory(resource_path('js/components'));
7474

75-
$fs->copyDirectory(__DIR__ . '/inertiajs-stubs/resources/js/Shared', resource_path('js/Shared'));
75+
$fs->copyDirectory(__DIR__.'/inertiajs-stubs/resources/js/Shared', resource_path('js/Shared'));
7676

77-
$fs->copyDirectory(__DIR__ . '/inertiajs-stubs/resources/js/Pages', resource_path('js/Pages'));
77+
$fs->copyDirectory(__DIR__.'/inertiajs-stubs/resources/js/Pages', resource_path('js/Pages'));
7878
});
7979
}
8080

8181
protected static function scaffoldRoutes()
8282
{
83-
copy(__DIR__ . '/inertiajs-stubs/routes/web.php', base_path('routes/web.php'));
83+
copy(__DIR__.'/inertiajs-stubs/routes/web.php', base_path('routes/web.php'));
8484
}
8585

8686
protected static function updateComposer($dev = true)
8787
{
88-
if (!file_exists(base_path('composer.json'))) {
88+
if (! file_exists(base_path('composer.json'))) {
8989
return;
9090
}
9191

@@ -101,14 +101,14 @@ protected static function updateComposer($dev = true)
101101

102102
file_put_contents(
103103
base_path('composer.json'),
104-
json_encode($packages, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT) . PHP_EOL
104+
json_encode($packages, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT).PHP_EOL
105105
);
106106
}
107107

108108
public static function publishInertiaServiceProvider()
109109
{
110110
copy(
111-
__DIR__ . '/inertiajs-stubs/providers/InertiaJsServiceProvider.stub',
111+
__DIR__.'/inertiajs-stubs/providers/InertiaJsServiceProvider.stub',
112112
app_path('Providers/InertiaJsServiceProvider.php')
113113
);
114114
}
@@ -119,7 +119,7 @@ public static function registerInertiaServiceProvider()
119119

120120
$appConfig = file_get_contents(config_path('app.php'));
121121

122-
if (Str::contains($appConfig, $namespace . '\\Providers\\InertiaJsServiceProvider::class')) {
122+
if (Str::contains($appConfig, $namespace.'\\Providers\\InertiaJsServiceProvider::class')) {
123123
return;
124124
}
125125

@@ -132,8 +132,8 @@ public static function registerInertiaServiceProvider()
132132
$eol = array_keys($lineEndingCount, max($lineEndingCount))[0];
133133

134134
file_put_contents(config_path('app.php'), str_replace(
135-
"{$namespace}\\Providers\\RouteServiceProvider::class," . $eol,
136-
"{$namespace}\\Providers\\RouteServiceProvider::class," . $eol . " {$namespace}\Providers\InertiaJsServiceProvider::class," . $eol,
135+
"{$namespace}\\Providers\\RouteServiceProvider::class,".$eol,
136+
"{$namespace}\\Providers\\RouteServiceProvider::class,".$eol." {$namespace}\Providers\InertiaJsServiceProvider::class,".$eol,
137137
$appConfig
138138
));
139139

0 commit comments

Comments
 (0)