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 Aug 15, 2023
1 parent 563f3b4 commit cee78c1
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/Concerns/Termwind.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Laravel\Prompts\Concerns;

use Laravel\Prompts\Output\BufferedConsoleOutput;

use function Termwind\render;
use function Termwind\renderUsing;

Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/ConfirmPromptTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

use function Laravel\Prompts\confirm;
use Laravel\Prompts\ConfirmPrompt;
use Laravel\Prompts\Key;
use Laravel\Prompts\Prompt;

use function Laravel\Prompts\confirm;

it('confirms', function () {
Prompt::fake([Key::ENTER]);

Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/MultiselectPromptTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

use Laravel\Prompts\Key;
use function Laravel\Prompts\multiselect;
use Laravel\Prompts\MultiSelectPrompt;
use Laravel\Prompts\Prompt;

use function Laravel\Prompts\multiselect;

it('accepts an array of labels', function () {
Prompt::fake([Key::DOWN, Key::SPACE, Key::DOWN, Key::SPACE, Key::ENTER]);

Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/NoteTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use function Laravel\Prompts\note;
use Laravel\Prompts\Prompt;

use function Laravel\Prompts\note;

it('renders a note', function () {
Prompt::fake();

Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/PasswordPromptTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

use Laravel\Prompts\Key;
use function Laravel\Prompts\password;
use Laravel\Prompts\PasswordPrompt;
use Laravel\Prompts\Prompt;

use function Laravel\Prompts\password;

it('returns the input', function () {
Prompt::fake(['p', 'a', 's', 's', Key::ENTER]);

Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/SearchPromptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

use Laravel\Prompts\Key;
use Laravel\Prompts\Prompt;
use function Laravel\Prompts\search;
use Laravel\Prompts\SearchPrompt;

use function Laravel\Prompts\search;

it('accepts a callback', function () {
Prompt::fake(['u', 'e', Key::DOWN, Key::ENTER]);

Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/SelectPromptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

use Laravel\Prompts\Key;
use Laravel\Prompts\Prompt;
use function Laravel\Prompts\select;
use Laravel\Prompts\SelectPrompt;

use function Laravel\Prompts\select;

it('accepts an array of labels', function () {
Prompt::fake([Key::DOWN, Key::ENTER]);

Expand Down
1 change: 1 addition & 0 deletions tests/Feature/SpinnerTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use Laravel\Prompts\Prompt;

use function Laravel\Prompts\spin;

it('renders a spinner while executing a callback and then returns the value', function () {
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/SuggestPromptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

use Laravel\Prompts\Key;
use Laravel\Prompts\Prompt;
use function Laravel\Prompts\suggest;
use Laravel\Prompts\SuggestPrompt;

use function Laravel\Prompts\suggest;

it('accepts any input', function () {
Prompt::fake(['B', 'l', 'a', 'c', 'k', Key::ENTER]);

Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/TextPromptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

use Laravel\Prompts\Key;
use Laravel\Prompts\Prompt;
use function Laravel\Prompts\text;
use Laravel\Prompts\TextPrompt;

use function Laravel\Prompts\text;

it('returns the input', function () {
Prompt::fake(['J', 'e', 's', 's', Key::ENTER]);

Expand Down

0 comments on commit cee78c1

Please sign in to comment.