Skip to content

Commit 9c03745

Browse files
committed
fix PHP_EOL
1 parent c8a6642 commit 9c03745

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FieldTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ public function setSelectionSet(array $selectionSet)
4040
*/
4141
protected function constructSelectionSet(): string
4242
{
43-
$attributesString = " {\n";
43+
$attributesString = " {" . PHP_EOL;
4444
$first = true;
4545
foreach ($this->selectionSet as $attribute) {
4646

4747
// Append empty line at the beginning if it's not the first item on the list
4848
if ($first) {
4949
$first = false;
5050
} else {
51-
$attributesString .= "\n";
51+
$attributesString .= PHP_EOL;
5252
}
5353

5454
// If query is included in attributes set as a nested query
@@ -59,7 +59,7 @@ protected function constructSelectionSet(): string
5959
// Append attribute to returned attributes list
6060
$attributesString .= $attribute;
6161
}
62-
$attributesString .= "\n}";
62+
$attributesString .= PHP_EOL . "}";
6363

6464
return $attributesString;
6565
}

0 commit comments

Comments
 (0)