mirror of
https://github.com/danog/amp.git
synced 2025-01-22 13:21:16 +01:00
Fix code style
This commit is contained in:
parent
02eb0340f1
commit
b354b04779
@ -22,7 +22,7 @@ try {
|
||||
private $fail;
|
||||
|
||||
public function __construct() {
|
||||
$this->promise = new class (function (callable $resolve, callable $fail) {
|
||||
$this->promise = new class(function (callable $resolve, callable $fail) {
|
||||
$this->resolve = $resolve;
|
||||
$this->fail = $fail;
|
||||
}) implements Promise {
|
||||
|
@ -26,7 +26,7 @@ try {
|
||||
private $fail;
|
||||
|
||||
public function __construct() {
|
||||
$this->iterator = new class (function (callable $emit, callable $complete, callable $fail) {
|
||||
$this->iterator = new class(function (callable $emit, callable $complete, callable $fail) {
|
||||
$this->emit = $emit;
|
||||
$this->complete = $complete;
|
||||
$this->fail = $fail;
|
||||
|
Loading…
x
Reference in New Issue
Block a user