Skip to content

Commit

Permalink
feat: Updated src/Snps/Utils.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Mar 12, 2024
1 parent ad09040 commit 02b08d6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Snps/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@
class Parallelizer
{
private bool $_parallelize;
private int $_processes;

public function __construct(bool $parallelize = false, int $processes = null)
private ?int $_processes;
public function __construct(bool $parallelize = false, ?int $processes = null): void
{
$this->_parallelize = $parallelize;
$this->_processes = $processes ?? os_cpu_count();
Expand Down Expand Up @@ -78,7 +77,7 @@ function os_cpu_count(): int

class Utils
{
public static function gzip_file($src, $dest)
public static function gzip_file(string $src, string $dest): string
{
/**
* Gzip a file.
Expand Down

0 comments on commit 02b08d6

Please sign in to comment.