Skip to content

Commit a86e8d2

Browse files
driesvintsgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent a6df46a commit a86e8d2

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/Concerns/FakesInputOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function fake(array $keys = []): void
3535

3636
static::$terminal = $mock;
3737

38-
self::setOutput(new BufferedConsoleOutput());
38+
self::setOutput(new BufferedConsoleOutput);
3939
}
4040

4141
/**

src/Concerns/Termwind.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ trait Termwind
1111
{
1212
protected function termwind(string $html)
1313
{
14-
renderUsing($output = new BufferedConsoleOutput());
14+
renderUsing($output = new BufferedConsoleOutput);
1515

1616
render($html);
1717

src/Prompt.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function prompt(): mixed
137137
}
138138

139139
if ($key === Key::CTRL_U && self::$revertUsing) {
140-
throw new FormRevertedException();
140+
throw new FormRevertedException;
141141
}
142142

143143
return $this->value();
@@ -187,7 +187,7 @@ public static function setOutput(OutputInterface $output): void
187187
*/
188188
protected static function output(): OutputInterface
189189
{
190-
return self::$output ??= new ConsoleOutput();
190+
return self::$output ??= new ConsoleOutput;
191191
}
192192

193193
/**
@@ -207,7 +207,7 @@ protected static function writeDirectly(string $message): void
207207
*/
208208
public static function terminal(): Terminal
209209
{
210-
return static::$terminal ??= new Terminal();
210+
return static::$terminal ??= new Terminal;
211211
}
212212

213213
/**

src/Terminal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Terminal
2323
*/
2424
public function __construct()
2525
{
26-
$this->terminal = new SymfonyTerminal();
26+
$this->terminal = new SymfonyTerminal;
2727
}
2828

2929
/**

src/Themes/Default/TableRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class TableRenderer extends Renderer
1414
*/
1515
public function __invoke(Table $table): string
1616
{
17-
$tableStyle = (new TableStyle())
17+
$tableStyle = (new TableStyle)
1818
->setHorizontalBorderChars('')
1919
->setVerticalBorderChars('', '')
2020
->setCellHeaderFormat($this->dim('<fg=default>%s</>'))
@@ -26,7 +26,7 @@ public function __invoke(Table $table): string
2626
$tableStyle->setCrossingChars('', '<fg=gray>┌', '', '', '', '┘</>', '', '', '');
2727
}
2828

29-
$buffered = new BufferedConsoleOutput();
29+
$buffered = new BufferedConsoleOutput;
3030

3131
(new SymfonyTable($buffered))
3232
->setHeaders($table->headers)

src/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,6 @@ function progress(string $label, iterable|int $steps, ?Closure $callback = null,
244244
if (! function_exists('\Laravel\Prompts\form')) {
245245
function form(): FormBuilder
246246
{
247-
return new FormBuilder();
247+
return new FormBuilder;
248248
}
249249
}

0 commit comments

Comments
 (0)