Skip to content

Commit

Permalink
Fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher authored and github-actions[bot] committed Sep 23, 2023
1 parent acb01e0 commit 7c56839
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions playground/progress.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use function Laravel\Prompts\progress;

require __DIR__ . '/../vendor/autoload.php';
require __DIR__.'/../vendor/autoload.php';

$states = [
'Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado',
Expand All @@ -14,7 +14,7 @@
callback: function ($item, $progress) {
usleep(250_000);

return $item . ' added.';
return $item.' added.';
},
);

Expand All @@ -28,7 +28,7 @@
$progress->label = 'Arkansas is not a state! Nice try.';
}

return $item . ' added.';
return $item.' added.';
},
);

Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Default/Concerns/DrawsBoxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected function box(
$titleLabel = $titleLength > 0 ? " {$title} " : '';
$topBorder = str_repeat('', $width - $titleLength + ($titleLength > 0 ? 0 : 2));

$this->line("{$this->{$color}('')}{$titleLabel}{$this->{$color}($topBorder . '')}");
$this->line("{$this->{$color}('')}{$titleLabel}{$this->{$color}($topBorder.'')}");

$bodyLines->each(function ($line) use ($width, $color) {
$this->line("{$this->{$color}('')} {$this->pad($line, $width)} {$this->{$color}('')}");
Expand Down
2 changes: 1 addition & 1 deletion src/Themes/Default/ProgressRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __invoke(Progress $progress): string
$this->truncate($progress->label, $progress->terminal()->cols() - 6),
$this->dim($filled),
color: 'red',
info: $progress->progress . '/' . $progress->total,
info: $progress->progress.'/'.$progress->total,
)
->error('Cancelled.'),

Expand Down

0 comments on commit 7c56839

Please sign in to comment.