File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,15 +40,15 @@ public function setSelectionSet(array $selectionSet)
40
40
*/
41
41
protected function constructSelectionSet (): string
42
42
{
43
- $ attributesString = " { \n" ;
43
+ $ attributesString = " { " . PHP_EOL ;
44
44
$ first = true ;
45
45
foreach ($ this ->selectionSet as $ attribute ) {
46
46
47
47
// Append empty line at the beginning if it's not the first item on the list
48
48
if ($ first ) {
49
49
$ first = false ;
50
50
} else {
51
- $ attributesString .= "\n" ;
51
+ $ attributesString .= PHP_EOL ;
52
52
}
53
53
54
54
// If query is included in attributes set as a nested query
@@ -59,7 +59,7 @@ protected function constructSelectionSet(): string
59
59
// Append attribute to returned attributes list
60
60
$ attributesString .= $ attribute ;
61
61
}
62
- $ attributesString .= "\n } " ;
62
+ $ attributesString .= PHP_EOL . " } " ;
63
63
64
64
return $ attributesString ;
65
65
}
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ public function __toString()
211
211
{
212
212
$ queryFormat = static ::QUERY_FORMAT ;
213
213
if (!$ this ->isNested && $ this ->fieldName !== static ::OPERATION_TYPE ) {
214
- $ queryFormat = $ this ->generateSignature () . " { \n " . static ::QUERY_FORMAT . "\n } " ;
214
+ $ queryFormat = $ this ->generateSignature () . " { " . PHP_EOL . static ::QUERY_FORMAT . PHP_EOL . " } " ;
215
215
}
216
216
$ argumentsString = $ this ->constructArguments ();
217
217
$ selectionSetString = $ this ->constructSelectionSet ();
You can’t perform that action at this time.
0 commit comments