Skip to content

Commit 3058bbc

Browse files
PeteBishwhipgithub-actions[bot]
authored andcommitted
Fix styling
1 parent dafcbd6 commit 3058bbc

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/Commands/DebugCommand.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@
88
use Illuminate\Support\Collection;
99
use Illuminate\Support\Facades\File;
1010
use Illuminate\Support\Facades\Process;
11+
1112
use function Laravel\Prompts\error;
12-
use function Laravel\Prompts\intro;
1313
use function Laravel\Prompts\info;
14+
use function Laravel\Prompts\intro;
1415
use function Laravel\Prompts\note;
1516
use function Laravel\Prompts\outro;
1617
use function Laravel\Prompts\select;
1718

1819
class DebugCommand extends Command implements PromptsForMissingInput
1920
{
2021
protected $signature = 'native:debug {output}';
22+
2123
protected $description = 'Generate debug information required for opening an issue.';
2224

2325
private Collection $debugInfo;
@@ -56,7 +58,7 @@ private function processEnvironment(): static
5658
'Laravel' => [
5759
'Version' => app()->version(),
5860
'ConfigCached' => file_exists($this->laravel->getCachedConfigPath()),
59-
'DebugEnabled' => $this->laravel->hasDebugModeEnabled()
61+
'DebugEnabled' => $this->laravel->hasDebugModeEnabled(),
6062
],
6163
'Node' => [
6264
'Version' => trim(Process::run('node -v')->output()),
@@ -132,17 +134,17 @@ private function processErrorLog(): void
132134

133135
// Check if string starts with date format Y-m-d H:i:s in square brackets
134136
if (preg_match('/^\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\]/', $line)) {
135-
if (!empty($currentLine)) {
137+
if (! empty($currentLine)) {
136138
$errors[] = $currentLine;
137139
$currentLine = '';
138140
$errorCount++;
139141
}
140142
}
141143

142-
$currentLine .= $line . PHP_EOL;
144+
$currentLine .= $line.PHP_EOL;
143145
}
144146

145-
if (!empty($currentLine)) {
147+
if (! empty($currentLine)) {
146148
$errors[] = $currentLine;
147149
}
148150

@@ -156,14 +158,14 @@ protected function promptForMissingArgumentsUsing(): array
156158
'Where would you like to output the debug information?',
157159
['File', 'Console'],
158160
'File'
159-
)
161+
),
160162
];
161163
}
162164

163165
private function outputToFile(): void
164166
{
165167
File::put(base_path('nativephp_debug.json'), json_encode($this->debugInfo->toArray(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
166-
note('Debug information saved to ' . base_path('nativephp_debug.json'));
168+
note('Debug information saved to '.base_path('nativephp_debug.json'));
167169
}
168170

169171
private function outputToConsole(): void

0 commit comments

Comments
 (0)