Skip to content

Commit

Permalink
chore: adjusts style
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Sep 8, 2024
1 parent 7494c7d commit 8e1948d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ coverage.xml
.temp/coverage.php
*.swp
*.swo
.phpunit.cache
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "MIT",
"require": {
"php": "^8.2",
"pestphp/pest": "^2.28",
"pestphp/pest": "^2.35.1",
"pestphp/pest-plugin": "^2.1.1",
"ext-curl": "*",
"ext-zip": "*"
Expand Down
8 changes: 4 additions & 4 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function head(): self
/**
* Force the test to use options method
*
* @param array<string, mixed> $payload The payload to send with the OPTIONS request
* @param array<string, mixed> $payload The payload to send with the OPTIONS request
*/
public function options(array $payload = []): self
{
Expand All @@ -117,7 +117,7 @@ public function options(array $payload = []): self
/**
* Force the test to use patch method
*
* @param array<string, mixed> $payload The payload to send with the PATCH request
* @param array<string, mixed> $payload The payload to send with the PATCH request
*/
public function patch(array $payload = []): self
{
Expand All @@ -130,7 +130,7 @@ public function patch(array $payload = []): self
/**
* Force the test to use put method
*
* @param array<string, mixed> $payload The payload to send with the PUT request
* @param array<string, mixed> $payload The payload to send with the PUT request
*/
public function put(array $payload = []): self
{
Expand All @@ -143,7 +143,7 @@ public function put(array $payload = []): self
/**
* Force the test to use post method
*
* @param array<string, mixed> $payload The payload to send with the POST request
* @param array<string, mixed> $payload The payload to send with the POST request
*/
public function post(array $payload): self
{
Expand Down
2 changes: 1 addition & 1 deletion src/K6.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private static function extractTarGz(string $fileName): void
*/
private static function extractZip(string $fileName): void
{
$zip = new ZipArchive();
$zip = new ZipArchive;

if ($zip->open(self::BIN_DIR.$fileName) !== true) {
throw new RuntimeException('Unable to open k6 zip archive.');
Expand Down
4 changes: 2 additions & 2 deletions src/Run.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class Run
/**
* Creates a new run instance.
*
* @param array{vus: int, duration: string, method: string, payload: array<string, mixed>, throw: boolean} $options
* @param array{vus: int, duration: string, method: string, payload: array<string, mixed>, throw: bool} $options
*/
public function __construct(
readonly private Url $url,
Expand Down Expand Up @@ -99,7 +99,7 @@ public function start(): Result
$result = new Result($this->url, $metrics); // @phpstan-ignore-line

if ($this->verbose) {
$detail = new Detail();
$detail = new Detail;

$detail->print($result);
}
Expand Down

0 comments on commit 8e1948d

Please sign in to comment.