Skip to content

Commit e11a25a

Browse files
mpociotgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 3492943 commit e11a25a

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

src/Commands/BuildCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use Illuminate\Console\Command;
66
use Illuminate\Support\Facades\Process;
77
use Illuminate\Support\Str;
8-
use Native\Electron\Facades\Updater;
98
use Native\Electron\Concerns\LocatesPhpBinary;
9+
use Native\Electron\Facades\Updater;
1010

1111
class BuildCommand extends Command
1212
{
@@ -18,7 +18,7 @@ public function handle()
1818
{
1919
$this->info('Build NativePHP app…');
2020

21-
Process::path(__DIR__ . '/../../resources/js/')
21+
Process::path(__DIR__.'/../../resources/js/')
2222
->env($this->getEnvironmentVariables())
2323
->run('npm update', function (string $type, string $output) {
2424
echo $output;
@@ -29,7 +29,7 @@ public function handle()
2929
echo $output;
3030
});
3131

32-
Process::path(__DIR__ . '/../../resources/js/')
32+
Process::path(__DIR__.'/../../resources/js/')
3333
->env($this->getEnvironmentVariables())
3434
->forever()
3535
->tty(PHP_OS_FAMILY != 'Windows')

src/Commands/DevelopCommand.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ public function handle()
1818

1919
$this->info('Fetching latest dependencies…');
2020

21-
if (!$this->option('no-dependencies')) {
22-
Process::path(__DIR__ . '/../../resources/js/')
21+
if (! $this->option('no-dependencies')) {
22+
Process::path(__DIR__.'/../../resources/js/')
2323
->env([
2424
'NATIVEPHP_PHP_BINARY_PATH' => base_path($this->phpBinaryPath()),
25-
'NATIVEPHP_CERTIFICATE_FILE_PATH' => base_path($this->binaryPackageDirectory() . 'cacert.pem'),
25+
'NATIVEPHP_CERTIFICATE_FILE_PATH' => base_path($this->binaryPackageDirectory().'cacert.pem'),
2626
])
2727
->forever()
2828
->run('npm install', function (string $type, string $output) {
@@ -38,11 +38,11 @@ public function handle()
3838
$this->patchPlist();
3939
}
4040

41-
Process::path(__DIR__ . '/../../resources/js/')
41+
Process::path(__DIR__.'/../../resources/js/')
4242
->env([
4343
'APP_PATH' => base_path(),
4444
'NATIVEPHP_PHP_BINARY_PATH' => base_path($this->phpBinaryPath()),
45-
'NATIVEPHP_CERTIFICATE_FILE_PATH' => base_path($this->binaryPackageDirectory() . 'cacert.pem'),
45+
'NATIVEPHP_CERTIFICATE_FILE_PATH' => base_path($this->binaryPackageDirectory().'cacert.pem'),
4646
'NATIVE_PHP_SKIP_QUEUE' => $this->option('no-queue') ? true : false,
4747
])
4848
->forever()
@@ -62,15 +62,15 @@ public function handle()
6262
*/
6363
protected function patchPlist()
6464
{
65-
$pList = file_get_contents(__DIR__ . '/../../resources/js/node_modules/electron/dist/Electron.app/Contents/Info.plist');
65+
$pList = file_get_contents(__DIR__.'/../../resources/js/node_modules/electron/dist/Electron.app/Contents/Info.plist');
6666

6767
// Change the CFBundleName to the correct app name
6868
$pattern = '/(<key>CFBundleName<\/key>\s+<string>)(.*?)(<\/string>)/m';
69-
$pList = preg_replace($pattern, '$1' . config('app.name') . '$3', $pList);
69+
$pList = preg_replace($pattern, '$1'.config('app.name').'$3', $pList);
7070

7171
$pattern = '/(<key>CFBundleDisplayName<\/key>\s+<string>)(.*?)(<\/string>)/m';
72-
$pList = preg_replace($pattern, '$1' . config('app.name') . '$3', $pList);
72+
$pList = preg_replace($pattern, '$1'.config('app.name').'$3', $pList);
7373

74-
file_put_contents(__DIR__ . '/../../resources/js/node_modules/electron/dist/Electron.app/Contents/Info.plist', $pList);
74+
file_put_contents(__DIR__.'/../../resources/js/node_modules/electron/dist/Electron.app/Contents/Info.plist', $pList);
7575
}
7676
}

src/Commands/InstallCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function handle()
2626
$this->output->newLine();
2727
}
2828

29-
if (!$this->option('force') && $this->confirm('Would you like to start the NativePHP development server', false)) {
29+
if (! $this->option('force') && $this->confirm('Would you like to start the NativePHP development server', false)) {
3030
$this->call('native:serve');
3131
}
3232

@@ -35,16 +35,16 @@ public function handle()
3535

3636
protected function nativePhpPath()
3737
{
38-
return realpath(__DIR__ . '/../../resources/js');
38+
return realpath(__DIR__.'/../../resources/js');
3939
}
4040

4141
protected function installNpmDependencies()
4242
{
4343
$this->info('Fetching latest dependencies…');
44-
Process::path(__DIR__ . '/../../resources/js/')
44+
Process::path(__DIR__.'/../../resources/js/')
4545
->env([
4646
'NATIVEPHP_PHP_BINARY_PATH' => base_path($this->phpBinaryPath()),
47-
'NATIVEPHP_CERTIFICATE_FILE_PATH' => base_path($this->binaryPackageDirectory() . 'cacert.pem'),
47+
'NATIVEPHP_CERTIFICATE_FILE_PATH' => base_path($this->binaryPackageDirectory().'cacert.pem'),
4848
])
4949
->forever()
5050
->tty(PHP_OS_FAMILY != 'Windows')

src/Concerns/LocatesPhpBinary.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
trait LocatesPhpBinary
66
{
77
/**
8-
*
98
* @return string The path to the binary package directory
109
*/
1110
protected function binaryPackageDirectory(): string
@@ -15,10 +14,11 @@ protected function binaryPackageDirectory(): string
1514

1615
/**
1716
* Calculate the path to the PHP binary based on the OS
17+
*
1818
* @return string The path to the PHP binary (not including the filename)
1919
*/
2020
public function phpBinaryPath(): string
2121
{
22-
return $this->binaryPackageDirectory() . 'bin/' . (PHP_OS_FAMILY === 'Windows' ? 'win' : 'mac');
22+
return $this->binaryPackageDirectory().'bin/'.(PHP_OS_FAMILY === 'Windows' ? 'win' : 'mac');
2323
}
2424
}

0 commit comments

Comments
 (0)