Skip to content

Commit 5305c19

Browse files
PeteBishwhipgithub-actions[bot]
authored andcommitted
Fix styling
1 parent ba6628b commit 5305c19

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Traits/ManagesAssetBuilding.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88

99
/**
1010
* Trait ManagesAssetBuilding
11-
* @package Native\Electron\Traits
1211
*/
1312
trait ManagesAssetBuilding
1413
{
1514
protected function detectNpmScripts()
1615
{
1716
$filePath = base_path('package.json');
1817

19-
if (!file_exists($filePath)) {
18+
if (! file_exists($filePath)) {
2019
return [];
2120
}
2221

@@ -25,7 +24,7 @@ protected function detectNpmScripts()
2524
return $packageFile['scripts'] ?? [];
2625
}
2726

28-
public function checkAndBuildProjectAssets(?string $buildCommand): null|ProcessResult
27+
public function checkAndBuildProjectAssets(?string $buildCommand): ?ProcessResult
2928
{
3029
$scripts = $this->detectNpmScripts();
3130

@@ -39,14 +38,14 @@ public function checkAndBuildProjectAssets(?string $buildCommand): null|ProcessR
3938
false
4039
);
4140

42-
if (!$runBuild) {
41+
if (! $runBuild) {
4342
return null;
4443
}
4544

4645
$buildCommand = $this->promptForAssetBuildCommand($scripts);
4746
}
4847

49-
if (!isset($scripts[$buildCommand])) {
48+
if (! isset($scripts[$buildCommand])) {
5049
$this->error('Invalid script selected... Continuing...');
5150

5251
return null;

0 commit comments

Comments
 (0)