Skip to content

Commit 1e43f20

Browse files
committed
Merge branch '3.x' of github.com:BinarCode/laravel-restify into 3.x
2 parents 84af134 + 8169c85 commit 1e43f20

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Commands/DevCommand.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(Resolver $resolver, Faker $faker)
3131

3232
public function handle()
3333
{
34-
if (!$this->confirmToProceed()) {
34+
if (! $this->confirmToProceed()) {
3535
return true;
3636
}
3737

@@ -68,7 +68,7 @@ protected function addRepositoryToRootComposer()
6868

6969
if (array_key_exists('repositories', $composer)) {
7070
$composer['repositories'] = collect($composer['repositories'])->filter(function ($repository) {
71-
if (!array_key_exists('url', $repository)) {
71+
if (! array_key_exists('url', $repository)) {
7272
return true;
7373
}
7474

@@ -88,23 +88,21 @@ protected function addRepositoryToRootComposer()
8888
if ($this->option('git')) {
8989
$composer['repositories'][] = [
9090
'type' => 'vcs',
91-
'url' => $this->option('path') ?: '[email protected]:BinarCode/laravel-restify.git'
91+
'url' => $this->option('path') ?: '[email protected]:BinarCode/laravel-restify.git',
9292
];
9393
} else {
9494
$composer['repositories'][] = [
9595
'type' => 'path',
96-
'url' => $this->option('path') ?: '../../binarcode/laravel-restify'
96+
'url' => $this->option('path') ?: '../../binarcode/laravel-restify',
9797
];
9898
}
9999

100-
101100
file_put_contents(
102101
base_path('composer.json'),
103102
json_encode($composer, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)
104103
);
105104
}
106105

107-
108106
protected function composerUpdate()
109107
{
110108
$this->executeCommand('composer update binaryk/laravel-restify', getcwd());

0 commit comments

Comments
 (0)