Skip to content

Commit 941238c

Browse files
authored
Merge pull request #846 from murtukov/fix-cs
Fix CS
2 parents 3af1a4a + 60bdb7c commit 941238c

28 files changed

+84
-83
lines changed

tests/Config/Parser/fixtures/annotations/Enum/Race.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
* @GQL\Description("The list of races!")
1515
*/
1616
#[GQL\Enum]
17-
#[GQL\Description("The list of races!")]
17+
#[GQL\Description('The list of races!')]
1818
class Race
1919
{
2020
public const HUMAIN = 1;
2121

22-
#[GQL\Description("The Chiss race")]
22+
#[GQL\Description('The Chiss race')]
2323
public const CHISS = '2';
2424

25-
#[GQL\Deprecated("The Zabraks have been wiped out")]
25+
#[GQL\Deprecated('The Zabraks have been wiped out')]
2626
public const ZABRAK = '3';
2727
public const TWILEK = Constants::TWILEK;
2828

tests/Config/Parser/fixtures/annotations/Input/Planet.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@
1212
* @GQL\Description("Planet Input type description")
1313
*/
1414
#[GQL\Input]
15-
#[GQL\Description("Planet Input type description")]
15+
#[GQL\Description('Planet Input type description')]
1616
class Planet
1717
{
1818
/**
1919
* @GQL\Field(resolve="...")
2020
*/
21-
#[GQL\Field(resolve: "...")]
21+
#[GQL\Field(resolve: '...')]
2222
protected string $skipField;
2323

2424
/**
2525
* @GQL\Field(type="String!")
2626
*/
27-
#[GQL\Field(type: "String!")]
27+
#[GQL\Field(type: 'String!')]
2828
protected string $name;
2929

3030
/**
3131
* @GQL\Field(type="Int!")
3232
*/
33-
#[GQL\Field(type: "Int!")]
33+
#[GQL\Field(type: 'Int!')]
3434
protected string $population;
3535

3636
/**

tests/Config/Parser/fixtures/annotations/Invalid/InvalidAccess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ class InvalidAccess
1515
/**
1616
* @GQL\Access("access")
1717
*/
18-
#[GQL\Access("access")]
18+
#[GQL\Access('access')]
1919
protected string $field;
2020
}

tests/Config/Parser/fixtures/annotations/Invalid/InvalidArgumentGuessing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class InvalidArgumentGuessing
1717
*
1818
* @param mixed $test
1919
*/
20-
#[GQL\Field(name: "guessFailed")]
20+
#[GQL\Field(name: 'guessFailed')]
2121
public function guessFail($test): int
2222
{
2323
return 12;

tests/Config/Parser/fixtures/annotations/Invalid/InvalidProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class InvalidProvider
1515
/**
1616
* @GQL\Query(type="Int", targetType="RootMutation2")
1717
*/
18-
#[GQL\Query(type: "Int", targetType: "RootMutation2")]
18+
#[GQL\Query(type: 'Int', targetType: 'RootMutation2')]
1919
public function noQueryOnMutation(): array
2020
{
2121
return [];
@@ -24,7 +24,7 @@ public function noQueryOnMutation(): array
2424
/**
2525
* @GQL\Mutation(type="Int", targetType="RootQuery2")
2626
*/
27-
#[GQL\Mutation(type: "Int", targetType: "RootQuery2")]
27+
#[GQL\Mutation(type: 'Int', targetType: 'RootQuery2')]
2828
public function noMutationOnQuery(): array
2929
{
3030
return [];

tests/Config/Parser/fixtures/annotations/Invalid/InvalidReturnTypeGuessing.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class InvalidReturnTypeGuessing
1616
* @GQL\Field(name="guessFailed")
1717
* @phpstan-ignore-next-line
1818
*/
19-
#[GQL\Field(name: "guessFailed")]
19+
#[GQL\Field(name: 'guessFailed')]
20+
2021
// @phpstan-ignore-next-line
2122
public function guessFail(int $test)
2223
{

tests/Config/Parser/fixtures/annotations/Invalid/InvalidUnion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* @GQL\Union(types={"Hero", "Droid", "Sith"})
1111
*/
12-
#[GQL\Union(types: ["Hero", "Droid", "Sith"])]
12+
#[GQL\Union(types: ['Hero', 'Droid', 'Sith'])]
1313
class InvalidUnion
1414
{
1515
}

tests/Config/Parser/fixtures/annotations/Relay/EnemiesConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* @GQL\Relay\Connection(node="Character")
1212
*/
13-
#[GQL\Relay\Connection(node: "Character")]
13+
#[GQL\Relay\Connection(node: 'Character')]
1414
class EnemiesConnection extends Connection
1515
{
1616
}

tests/Config/Parser/fixtures/annotations/Relay/FriendsConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* @GQL\Relay\Connection(edge="FriendsConnectionEdge")
1212
*/
13-
#[GQL\Relay\Connection(edge: "FriendsConnectionEdge")]
13+
#[GQL\Relay\Connection(edge: 'FriendsConnectionEdge')]
1414
class FriendsConnection extends Connection
1515
{
1616
}

tests/Config/Parser/fixtures/annotations/Relay/FriendsConnectionEdge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* @GQL\Relay\Edge(node="Character")
1212
*/
13-
#[GQL\Relay\Edge(node: "Character")]
13+
#[GQL\Relay\Edge(node: 'Character')]
1414
class FriendsConnectionEdge extends Edge
1515
{
1616
}

0 commit comments

Comments
 (0)