generated from hans-thomas/package-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from hans-thomas/analysis-neDo9w
Apply fixes from StyleCI
- Loading branch information
Showing
6 changed files
with
157 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
<?php | ||
|
||
namespace Hans\Lyra\Events; | ||
namespace Hans\Lyra\Events; | ||
|
||
use Hans\Lyra\Models\Invoice; | ||
use Illuminate\Broadcasting\InteractsWithSockets; | ||
use Illuminate\Foundation\Events\Dispatchable; | ||
use Illuminate\Queue\SerializesModels; | ||
use Hans\Lyra\Models\Invoice; | ||
use Illuminate\Broadcasting\InteractsWithSockets; | ||
use Illuminate\Foundation\Events\Dispatchable; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class TokenReceived { | ||
use Dispatchable, InteractsWithSockets, SerializesModels; | ||
class TokenReceived | ||
{ | ||
use Dispatchable; | ||
use InteractsWithSockets; | ||
use SerializesModels; | ||
|
||
/** | ||
* Create a new event instance. | ||
*/ | ||
public function __construct( | ||
public Invoice $invoice, | ||
public string $token | ||
) { | ||
} | ||
} | ||
/** | ||
* Create a new event instance. | ||
*/ | ||
public function __construct( | ||
public Invoice $invoice, | ||
public string $token | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
<?php | ||
|
||
namespace Hans\Lyra\Events; | ||
namespace Hans\Lyra\Events; | ||
|
||
use Hans\Lyra\Models\Invoice; | ||
use Illuminate\Broadcasting\InteractsWithSockets; | ||
use Illuminate\Foundation\Events\Dispatchable; | ||
use Illuminate\Queue\SerializesModels; | ||
use Hans\Lyra\Models\Invoice; | ||
use Illuminate\Broadcasting\InteractsWithSockets; | ||
use Illuminate\Foundation\Events\Dispatchable; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class TransactionIdReceived { | ||
use Dispatchable, InteractsWithSockets, SerializesModels; | ||
class TransactionIdReceived | ||
{ | ||
use Dispatchable; | ||
use InteractsWithSockets; | ||
use SerializesModels; | ||
|
||
/** | ||
* Create a new event instance. | ||
*/ | ||
public function __construct( | ||
public Invoice $invoice, | ||
public string $transId | ||
) { | ||
} | ||
} | ||
/** | ||
* Create a new event instance. | ||
*/ | ||
public function __construct( | ||
public Invoice $invoice, | ||
public string $transId | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
<?php | ||
|
||
namespace Hans\Lyra\Listeners; | ||
namespace Hans\Lyra\Listeners; | ||
|
||
use Hans\Lyra\Events\TransactionIdReceived; | ||
use Hans\Lyra\Events\TransactionIdReceived; | ||
|
||
class CheckTransIdIsUnique { | ||
/** | ||
* Create the event listener. | ||
*/ | ||
public function __construct() { | ||
// ... | ||
} | ||
class CheckTransIdIsUnique | ||
{ | ||
/** | ||
* Create the event listener. | ||
*/ | ||
public function __construct() | ||
{ | ||
// ... | ||
} | ||
|
||
/** | ||
* Handle the event. | ||
*/ | ||
public function handle( TransactionIdReceived $event ): void { | ||
// Access the order using $event->order... | ||
} | ||
} | ||
/** | ||
* Handle the event. | ||
*/ | ||
public function handle(TransactionIdReceived $event): void | ||
{ | ||
// Access the order using $event->order... | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
<?php | ||
|
||
namespace Hans\Lyra\Listeners; | ||
namespace Hans\Lyra\Listeners; | ||
|
||
use Hans\Lyra\Events\TokenReceived; | ||
use Hans\Lyra\Events\TokenReceived; | ||
|
||
class StoreTokenOnDB { | ||
/** | ||
* Create the event listener. | ||
*/ | ||
public function __construct() { | ||
// ... | ||
} | ||
class StoreTokenOnDB | ||
{ | ||
/** | ||
* Create the event listener. | ||
*/ | ||
public function __construct() | ||
{ | ||
// ... | ||
} | ||
|
||
/** | ||
* Handle the event. | ||
*/ | ||
public function handle( TokenReceived $event ): void { | ||
// Access the order using $event->order... | ||
} | ||
} | ||
/** | ||
* Handle the event. | ||
*/ | ||
public function handle(TokenReceived $event): void | ||
{ | ||
// Access the order using $event->order... | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
<?php | ||
|
||
namespace Hans\Lyra\Listeners; | ||
namespace Hans\Lyra\Listeners; | ||
|
||
use Hans\Lyra\Events\TransactionIdReceived; | ||
use Hans\Lyra\Events\TransactionIdReceived; | ||
|
||
class StoreTransIdOnDB { | ||
/** | ||
* Create the event listener. | ||
*/ | ||
public function __construct() { | ||
// ... | ||
} | ||
class StoreTransIdOnDB | ||
{ | ||
/** | ||
* Create the event listener. | ||
*/ | ||
public function __construct() | ||
{ | ||
// ... | ||
} | ||
|
||
/** | ||
* Handle the event. | ||
*/ | ||
public function handle( TransactionIdReceived $event ): void { | ||
// Access the order using $event->order... | ||
} | ||
} | ||
/** | ||
* Handle the event. | ||
*/ | ||
public function handle(TransactionIdReceived $event): void | ||
{ | ||
// Access the order using $event->order... | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters