Skip to content

Commit

Permalink
PHP CS Fixer - ordered_types (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Oct 14, 2023
1 parent f8fa504 commit 7b2f8c5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/Asset/AbstractAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class AbstractAsset
public const TYPE_COLLECTION = 'collection';

protected string $alias;
protected string|array|\Closure $source;
protected array|\Closure|string $source;
protected array $dependencies = [];
protected array $options = [];
protected Manager $eManager;
Expand All @@ -44,7 +44,7 @@ abstract public function load(): array;
public function __construct(
Manager $manager,
string $alias,
array|string|\Closure $source,
array|\Closure|string $source,
array|string $dependencies,
Data $options,
) {
Expand All @@ -71,7 +71,7 @@ public function getDependencies(): array
return $this->dependencies;
}

public function getSource(): array|string|\Closure
public function getSource(): array|\Closure|string
{
return $this->source;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

final class Callback extends AbstractAsset
{
protected string|array|\Closure $source;
protected array|\Closure|string $source;

public function load(): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getManager(): Manager
*/
public function create(
string $alias,
\Closure|array|string $source,
array|\Closure|string $source,
array|string $dependencies = [],
array $options = [],
): AbstractAsset {
Expand Down
4 changes: 2 additions & 2 deletions src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getPath(): Path
*/
public function add(
string $alias,
\Closure|array|string|null $source = null,
null|array|\Closure|string $source = null,
array|string $dependencies = [],
array $options = [],
): self {
Expand Down Expand Up @@ -93,7 +93,7 @@ public function remove(string $alias): self
*/
public function register(
string $alias,
\Closure|array|string $source,
array|\Closure|string $source,
array|string $dependencies = [],
array $options = [],
): self {
Expand Down

0 comments on commit 7b2f8c5

Please sign in to comment.