Skip to content

Commit e91fea9

Browse files
committed
fix static analysis issues
1 parent a34d960 commit e91fea9

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ parameters:
1818

1919

2020
excludePaths:
21-
- ./src/Laravel/NativeServiceProvider.php
21+
- ./src/NativeServiceProvider.php

src/Builder/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ public function buildPath(string $path = ''): string
4545

4646
public function sourcePath(string $path = ''): string
4747
{
48-
return base_path($path);
48+
return Path::join($this->sourcePath, $path);
4949
}
5050
}

src/Builder/Traits/CopiesBundleToBuildDirectory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public function copyBundleToBuildDirectory(): bool
2121
{
2222
$filesystem = new Filesystem;
2323

24-
$this->line('Copying secure app bundle to build directory...');
25-
$this->line('From: '.realpath(dirname($this->sourcePath(self::$bundlePath))));
26-
$this->line('To: '.realpath(dirname($this->buildPath(self::$bundlePath))));
24+
echo 'Copying secure app bundle to build directory...'.PHP_EOL;
25+
echo 'From: '.realpath(dirname($this->sourcePath(self::$bundlePath))).PHP_EOL;
26+
echo 'To: '.realpath(dirname($this->buildPath(self::$bundlePath))).PHP_EOL;
2727

2828
// Clean and create build directory
2929
$filesystem->remove($this->buildPath());

src/Drivers/Electron/Commands/BundleCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function handle(): int
9090
return static::SUCCESS;
9191
}
9292

93-
$this->preProcess();
93+
$this->builder->preProcess();
9494

9595
$this->setAppNameAndVersion();
9696
intro('Copying App to build directory...');
@@ -373,7 +373,7 @@ private function handleApiErrors(Response $result): void
373373

374374
protected function cleanUp(): void
375375
{
376-
$this->postProcess();
376+
$this->builder->postProcess();
377377

378378
if ($this->option('without-cleanup')) {
379379
return;

0 commit comments

Comments
 (0)