@@ -31,7 +31,7 @@ public function __construct(Resolver $resolver, Faker $faker)
31
31
32
32
public function handle ()
33
33
{
34
- if (!$ this ->confirmToProceed ()) {
34
+ if (! $ this ->confirmToProceed ()) {
35
35
return true ;
36
36
}
37
37
@@ -68,7 +68,7 @@ protected function addRepositoryToRootComposer()
68
68
69
69
if (array_key_exists ('repositories ' , $ composer )) {
70
70
$ composer ['repositories ' ] = collect ($ composer ['repositories ' ])->filter (function ($ repository ) {
71
- if (!array_key_exists ('url ' , $ repository )) {
71
+ if (! array_key_exists ('url ' , $ repository )) {
72
72
return true ;
73
73
}
74
74
@@ -88,23 +88,21 @@ protected function addRepositoryToRootComposer()
88
88
if ($ this ->option ('git ' )) {
89
89
$ composer ['repositories ' ][] = [
90
90
'type ' => 'vcs ' ,
91
- 'url ' =>
$ this ->
option (
'path ' ) ?:
'[email protected] :BinarCode/laravel-restify.git '
91
+ 'url ' =>
$ this ->
option (
'path ' ) ?:
'[email protected] :BinarCode/laravel-restify.git ' ,
92
92
];
93
93
} else {
94
94
$ composer ['repositories ' ][] = [
95
95
'type ' => 'path ' ,
96
- 'url ' => $ this ->option ('path ' ) ?: '../../binarcode/laravel-restify '
96
+ 'url ' => $ this ->option ('path ' ) ?: '../../binarcode/laravel-restify ' ,
97
97
];
98
98
}
99
99
100
-
101
100
file_put_contents (
102
101
base_path ('composer.json ' ),
103
102
json_encode ($ composer , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES )
104
103
);
105
104
}
106
105
107
-
108
106
protected function composerUpdate ()
109
107
{
110
108
$ this ->executeCommand ('composer update binaryk/laravel-restify ' , getcwd ());
0 commit comments