File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
/**
10
10
* Trait ManagesAssetBuilding
11
- * @package Native\Electron\Traits
12
11
*/
13
12
trait ManagesAssetBuilding
14
13
{
15
14
protected function detectNpmScripts ()
16
15
{
17
16
$ filePath = base_path ('package.json ' );
18
17
19
- if (!file_exists ($ filePath )) {
18
+ if (! file_exists ($ filePath )) {
20
19
return [];
21
20
}
22
21
@@ -25,7 +24,7 @@ protected function detectNpmScripts()
25
24
return $ packageFile ['scripts ' ] ?? [];
26
25
}
27
26
28
- public function checkAndBuildProjectAssets (?string $ buildCommand ): null | ProcessResult
27
+ public function checkAndBuildProjectAssets (?string $ buildCommand ): ? ProcessResult
29
28
{
30
29
$ scripts = $ this ->detectNpmScripts ();
31
30
@@ -39,14 +38,14 @@ public function checkAndBuildProjectAssets(?string $buildCommand): null|ProcessR
39
38
false
40
39
);
41
40
42
- if (!$ runBuild ) {
41
+ if (! $ runBuild ) {
43
42
return null ;
44
43
}
45
44
46
45
$ buildCommand = $ this ->promptForAssetBuildCommand ($ scripts );
47
46
}
48
47
49
- if (!isset ($ scripts [$ buildCommand ])) {
48
+ if (! isset ($ scripts [$ buildCommand ])) {
50
49
$ this ->error ('Invalid script selected... Continuing... ' );
51
50
52
51
return null ;
You can’t perform that action at this time.
0 commit comments