Skip to content

Commit 2fa76cc

Browse files
Merge [ Feat ] Patched Prompt (#1)
This is a temporary solution to laravel/prompts#154 having been closed. That PR was a 'compatibility' PR to enable easy integration of the AsyncPrompt, PatchedPrompt will act as a 'shim' until I'm able to convince Taylor to approve my PR. The whole point of this shim is to extract the looping mechanisms into separate functions that can be overridden in implementing classes, enabling the easy use of a ReactPHP event loop. Also includes a bunch of code styling.
2 parents 12e171f + 73c7eaa commit 2fa76cc

File tree

10 files changed

+536
-38
lines changed

10 files changed

+536
-38
lines changed

playground/tabbedscrollableselect.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[
1111
'id' => 0,
1212
'tab' => 'Jess Archer',
13-
'body' => <<<BODY
13+
'body' => <<<'BODY'
1414
Subject: Application for Software Developer Position - The Code to Success!
1515
1616
Dear Hiring Manager,
@@ -31,7 +31,7 @@
3131
[
3232
'id' => 1,
3333
'tab' => 'Joe Dixon',
34-
'body' => <<<BODY
34+
'body' => <<<'BODY'
3535
Subject: Innovative Applicant Alert: Ready to Engineer Success at [Company Name]!
3636
3737
Dear Hiring Manager,
@@ -52,7 +52,7 @@
5252
[
5353
'id' => 2,
5454
'tab' => 'Tim MacDonald',
55-
'body' => <<<BODY
55+
'body' => <<<'BODY'
5656
Subject: Ready to Commit: My Application for Software Developer at [Company Name]
5757
5858
Dear Hiring Team,
@@ -73,7 +73,7 @@
7373
[
7474
'id' => 3,
7575
'tab' => 'Mohammed Said',
76-
'body' => <<<BODY
76+
'body' => <<<'BODY'
7777
Subject: Coding My Way Into Your Team: Software Developer Application at [Company Name]
7878
7979
Dear Hiring Manager,
@@ -94,7 +94,7 @@
9494
[
9595
'id' => 4,
9696
'tab' => 'Nuno Maduro',
97-
'body' => <<<BODY
97+
'body' => <<<'BODY'
9898
Subject: Debugging Opportunities: Application for Software Developer at [Company Name]
9999
100100
Dear Hiring Team,

src/Key.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44

55
use Laravel\Prompts\Key as PromptsKey;
66

7-
class Key extends PromptsKey
8-
{
9-
}
7+
class Key extends PromptsKey {}

0 commit comments

Comments
 (0)