Skip to content

Commit

Permalink
Use a single-line array assignment and add var type
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny committed Jul 29, 2024
1 parent 66fa631 commit 00131fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Classes/ExecutorPoolClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ class ExecutorPoolClass
{
/**
* These paths for all pools of executors.
*
* @var array
*/
private array $paths = [];

public function __construct()
{
$this->paths = [
base_path('executors'),
];
$this->paths = [base_path('executors')];
}

/**
Expand All @@ -30,7 +30,6 @@ public function getPaths(): array
* Add a new path to executors pools.
*
* @param string $path
*
* @return void
*/
public function addPath(string $path): void
Expand Down

0 comments on commit 00131fe

Please sign in to comment.