Skip to content

Commit a39565c

Browse files
Meldironbyawitz
authored andcommitted
chore: formatting
1 parent 009c3f4 commit a39565c

File tree

8 files changed

+215
-68
lines changed

8 files changed

+215
-68
lines changed

composer.lock

Lines changed: 205 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Http/Http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public function start()
325325
->set(clone $dependency->setName('response')->setCallback(fn () => $response));
326326

327327
// More base injection for GraphQL only
328-
if($request->getUri() === '/v1/graphql') {
328+
if ($request->getUri() === '/v1/graphql') {
329329
$context->set(clone $dependency->setName('http')->setCallback(fn () => $this))
330330
->set(clone $dependency->setName('context')->setCallback(fn () => $context));
331331
}

src/Http/Validator/AllOf.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(protected array $validators, protected string $type
2929
*/
3030
public function getDescription(): string
3131
{
32-
if(!(\is_null($this->failedRule))) {
32+
if (!(\is_null($this->failedRule))) {
3333
$description = $this->failedRule->getDescription();
3434
} else {
3535
$description = $this->validators[0]->getDescription();
@@ -51,7 +51,7 @@ public function isValid(mixed $value): bool
5151
foreach ($this->validators as $rule) {
5252
$valid = $rule->isValid($value);
5353

54-
if(!$valid) {
54+
if (!$valid) {
5555
$this->failedRule = $rule;
5656
return false;
5757
}

src/Http/Validator/AnyOf.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getValidators(): array
4141
*/
4242
public function getDescription(): string
4343
{
44-
if(!(\is_null($this->failedRule))) {
44+
if (!(\is_null($this->failedRule))) {
4545
$description = $this->failedRule->getDescription();
4646
} else {
4747
$description = $this->validators[0]->getDescription();
@@ -65,7 +65,7 @@ public function isValid(mixed $value): bool
6565

6666
$this->failedRule = $rule;
6767

68-
if($valid) {
68+
if ($valid) {
6969
return true;
7070
}
7171
}

src/Http/Validator/ArrayList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getDescription(): string
4646
{
4747
$msg = 'Value must a valid array';
4848

49-
if($this->length > 0) {
49+
if ($this->length > 0) {
5050
$msg .= ' no longer than ' . $this->length . ' items';
5151
}
5252

src/Http/Validator/NoneOf.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getDescription(): string
3131
{
3232
$description = '';
3333

34-
if(!(\is_null($this->failedRule))) {
34+
if (!(\is_null($this->failedRule))) {
3535
$description = $this->failedRule->getDescription();
3636
} else {
3737
$description = $this->validators[0]->getDescription();
@@ -53,7 +53,7 @@ public function isValid(mixed $value): bool
5353
foreach ($this->validators as $rule) {
5454
$valid = $rule->isValid($value);
5555

56-
if($valid) {
56+
if ($valid) {
5757
$this->failedRule = $rule;
5858
return false;
5959
}

tests/ResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testCanSetStatus()
3737

3838
try {
3939
$this->response->setStatusCode(0); // Unknown status code
40-
} catch(\Exception $e) {
40+
} catch (\Exception $e) {
4141
$this->assertInstanceOf('\Exception', $e);
4242

4343
return;

tests/e2e/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function call(string $method, string $path = '', array $headers = [], arr
6161
$responseType = '';
6262
$responseBody = '';
6363

64-
if($method == self::METHOD_HEAD) {
64+
if ($method == self::METHOD_HEAD) {
6565
curl_setopt($ch, CURLOPT_NOBODY, true);
6666
}
6767

0 commit comments

Comments
 (0)