Skip to content

Commit 44f104a

Browse files
committed
code improve
1 parent 3e89f3e commit 44f104a

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/Builder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ private static function disArrayArguments($array)
120120
return $str;
121121
}
122122

123-
private static function arrayAssociative($array) {
123+
private static function arrayAssociative($array)
124+
{
124125
if (array_keys($array) !== range(0, count($array) - 1)) {
125126
return true;
126127
} else {

src/Mutation.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
class Mutation extends Builder
66
{
77
private $name = '';
8-
const TYPE = 'mutation';
98
private $select = [];
109
private $arguments = [];
1110

11+
const TYPE = 'mutation';
12+
1213
public function __construct($name)
1314
{
1415
$this->name = $name;

src/Query.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
class Query extends Builder
66
{
77
private $name = '';
8-
const TYPE = 'query';
98
private $select = [];
109
private $arguments = [];
1110

11+
const TYPE = 'query';
12+
1213
public function __construct($name)
1314
{
1415
$this->name = $name;

0 commit comments

Comments
 (0)