diff --git a/src/PhpstanArgBuilder.php b/src/PhpstanArgBuilder.php index 63b0b0d..a33ad49 100644 --- a/src/PhpstanArgBuilder.php +++ b/src/PhpstanArgBuilder.php @@ -48,8 +48,7 @@ public function quiet(bool $quiet): PhpstanArgBuilder return $this; } - - + public function buildCliCommand(): array { $cmd = []; @@ -66,7 +65,7 @@ public function buildCliCommand(): array } $cmd[] = sprintf('--%s=%s', $option, $val); } - + return $cmd; } -} \ No newline at end of file +} diff --git a/src/PhpstanOptions.php b/src/PhpstanOptions.php deleted file mode 100644 index 1728c42..0000000 --- a/src/PhpstanOptions.php +++ /dev/null @@ -1,45 +0,0 @@ -options['memory-limit'] = $limit; - return $this; - } - - public function level(string $level): self - { - $this->options['level'] = $level; - return $this; - } - - public function noProgress(bool $progress): self - { - $this->options['no-progress'] = $progress; - return $this; - } - - public function debug(string $debug): self - { - $this->options['debug'] = $debug; - return $this; - } - - public function buildCliCommand(): array - { - $cmd = []; - foreach($this->options as $option => $val) { - $cmd[] = sprintf('--%s=%s', $option, $val); - // $cmd .= sprintf('--%s=%s ', $option, $val); - } - - return $cmd; - } -} \ No newline at end of file