Skip to content

Commit

Permalink
[11.x] consistent multiline constructors (#53566)
Browse files Browse the repository at this point in the history
* consistent multiline constructors

- trailing comma
- closing parenthese on new line

* standardize multiline constructors

- first parameter on new line
- trailing commas
- parenthese on new line
  • Loading branch information
browner12 authored Nov 18, 2024
1 parent 02c95c4 commit c09bca7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Onceable.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Onceable
public function __construct(
public string $hash,
public ?object $object,
public $callable
public $callable,
) {
//
}
Expand Down
23 changes: 12 additions & 11 deletions Testing/Fakes/BatchFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ class BatchFake extends Batch
* @param \Carbon\CarbonImmutable|null $finishedAt
* @return void
*/
public function __construct(string $id,
string $name,
int $totalJobs,
int $pendingJobs,
int $failedJobs,
array $failedJobIds,
array $options,
CarbonImmutable $createdAt,
?CarbonImmutable $cancelledAt = null,
?CarbonImmutable $finishedAt = null)
{
public function __construct(
string $id,
string $name,
int $totalJobs,
int $pendingJobs,
int $failedJobs,
array $failedJobIds,
array $options,
CarbonImmutable $createdAt,
?CarbonImmutable $cancelledAt = null,
?CarbonImmutable $finishedAt = null,
) {
$this->id = $id;
$this->name = $name;
$this->totalJobs = $totalJobs;
Expand Down

0 comments on commit c09bca7

Please sign in to comment.