We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | // Check if auth exists |
49 | 49 | $details = null; |
50 | 50 | $process = new Process(['composer', 'config', 'http-basic.backpackforlaravel.com']); |
51 | - $process->run(function ($type, $buffer) use (&$details) { |
|
51 | + $process->run(function($type, $buffer) use (&$details) { |
|
52 | 52 | if ($type !== Process::ERR && $buffer !== '') { |
53 | 53 | $details = json_decode($buffer); |
54 | 54 | } elseif (File::exists('auth.json')) { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | }); |
59 | 59 | |
60 | 60 | // Create an auth.json file |
61 | - if (! $details) { |
|
61 | + if (!$details) { |
|
62 | 62 | $this->info(' Creating auth.json file with your authentication token'); |
63 | 63 | |
64 | 64 | $this->line(' (Find your access token details on https://backpackforlaravel.com/user/tokens)'); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $password = $this->ask('Access token password'); |
67 | 67 | |
68 | 68 | $process = new Process(['composer', 'config', 'http-basic.backpackforlaravel.com', $username, $password]); |
69 | - $process->run(function ($type, $buffer) use ($username, $password) { |
|
69 | + $process->run(function($type, $buffer) use ($username, $password) { |
|
70 | 70 | if ($type === Process::ERR) { |
71 | 71 | // Fallback |
72 | 72 | $authFile = [ |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | if (File::exists('auth.json')) { |
82 | 82 | $currentFile = json_decode(File::get('auth.json'), true); |
83 | - if (! ($currentFile['http-basic']['backpackforlaravel.com'] ?? false)) { |
|
83 | + if (!($currentFile['http-basic']['backpackforlaravel.com'] ?? false)) { |
|
84 | 84 | $authFile = array_merge_recursive($authFile, $currentFile); |
85 | 85 | } |
86 | 86 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | // Check if repositories exists |
95 | 95 | $details = null; |
96 | 96 | $process = new Process(['composer', 'config', 'repositories.backpack/devtools']); |
97 | - $process->run(function ($type, $buffer) use (&$details) { |
|
97 | + $process->run(function($type, $buffer) use (&$details) { |
|
98 | 98 | if ($type !== Process::ERR && $buffer !== '') { |
99 | 99 | $details = json_decode($buffer); |
100 | 100 | } else { |
@@ -104,11 +104,11 @@ discard block |
||
104 | 104 | }); |
105 | 105 | |
106 | 106 | // Create repositories |
107 | - if (! $details) { |
|
107 | + if (!$details) { |
|
108 | 108 | $this->info(' Creating repositories entry in composer.json'); |
109 | 109 | |
110 | 110 | $process = new Process(['composer', 'config', 'repositories.backpack/devtools', 'composer', 'https://repo.backpackforlaravel.com']); |
111 | - $process->run(function ($type, $buffer) { |
|
111 | + $process->run(function($type, $buffer) { |
|
112 | 112 | if ($type === Process::ERR) { |
113 | 113 | // Fallback |
114 | 114 | $composerJson = Str::of(File::get('composer.json')); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | // Require package |
140 | 140 | $process = new Process(['composer', 'require', '--dev', '--with-all-dependencies', 'backpack/devtools']); |
141 | - $process->run(function ($type, $buffer) { |
|
141 | + $process->run(function($type, $buffer) { |
|
142 | 142 | $this->progressBar->advance(); |
143 | 143 | }); |
144 | 144 |