File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public function handle(): void
34
34
$ name = $ this ->argument ('name ' );
35
35
if (theme_system ()->isExists ($ name )) {
36
36
$ this ->error ("The theme ' $ name' is exists. " );
37
+
37
38
return ;
38
39
}
39
40
Original file line number Diff line number Diff line change @@ -63,18 +63,18 @@ public function isInstalled(): bool
63
63
*/
64
64
public function handle (): void
65
65
{
66
- if (!$ this ->isInstalled ()) {
67
- if (!file_exists (base_path ('webpack.mix.js ' ))) {
66
+ if (! $ this ->isInstalled ()) {
67
+ if (! file_exists (base_path ('webpack.mix.js ' ))) {
68
68
File::put (base_path ('webpack.mix.js ' ), '' );
69
69
}
70
70
71
- if (file_exists (base_path ('webpack.mix.js ' )) && !file_exists (base_path (Webpack::defaultWebpackPath ()))) {
71
+ if (file_exists (base_path ('webpack.mix.js ' )) && ! file_exists (base_path (Webpack::defaultWebpackPath ()))) {
72
72
$ this ->info ('Copying "webpack.mix.js" to ' . base_path (Webpack::defaultWebpackPath ()));
73
73
File::copy (base_path ('webpack.mix.js ' ), base_path (Webpack::defaultWebpackPath ()));
74
74
}
75
- }
76
- else {
75
+ } else {
77
76
$ this ->error ('Theme system already initialized. ' );
77
+
78
78
return ;
79
79
}
80
80
@@ -83,7 +83,7 @@ public function handle(): void
83
83
$ this ->info ('Created main "webpack.mix.js". ' );
84
84
85
85
foreach (theme_system ()->findThemes () as $ theme ) {
86
- if (!File::exists ("$ theme ->directory /webpack.mix.js " )) {
86
+ if (! File::exists ("$ theme ->directory /webpack.mix.js " )) {
87
87
File::put ("$ theme ->directory /webpack.mix.js " , Webpack::generateTheme ());
88
88
$ this ->info ("Created webpack config for theme: $ theme ->name " );
89
89
}
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ public static function signature(): string
41
41
{
42
42
$ package = ThemeSystem::PackageName;
43
43
$ version = ThemeSystem::Version;
44
+
44
45
return "// $ package ( $ version) " ;
45
46
}
46
47
You can’t perform that action at this time.
0 commit comments