Skip to content

Commit 492dc72

Browse files
committed
Lint
1 parent 1745f32 commit 492dc72

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/SDK/Language/GraphQL.php

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
use Appwrite\SDK\Language;
66

7-
class GraphQL extends Language {
8-
7+
class GraphQL extends Language
8+
{
99
/**
1010
* @return string
1111
*/
@@ -86,13 +86,13 @@ public function getParamDefault(array $param): string
8686
$default = $param['default'] ?? '';
8787
$required = $param['required'] ?? '';
8888

89-
if($required) {
89+
if ($required) {
9090
return '';
9191
}
9292

9393
$output = '';
9494

95-
if(empty($default) && $default !== 0 && $default !== false) {
95+
if (empty($default) && $default !== 0 && $default !== false) {
9696
switch ($type) {
9797
case self::TYPE_OBJECT:
9898
$output .= '{}';
@@ -111,8 +111,7 @@ public function getParamDefault(array $param): string
111111
$output .= '""';
112112
break;
113113
}
114-
}
115-
else {
114+
} else {
116115
switch ($type) {
117116
case self::TYPE_OBJECT:
118117
case self::TYPE_NUMBER:
@@ -124,7 +123,7 @@ public function getParamDefault(array $param): string
124123
$output .= ($default) ? 'true' : 'false';
125124
break;
126125
case self::TYPE_STRING:
127-
$output .= '"'.$default .'"';
126+
$output .= '"' . $default . '"';
128127
break;
129128
}
130129
}
@@ -143,7 +142,7 @@ public function getParamExample(array $param): string
143142

144143
$output = '';
145144

146-
if(empty($example) && $example !== 0 && $example !== false) {
145+
if (empty($example) && $example !== 0 && $example !== false) {
147146
switch ($type) {
148147
case self::TYPE_FILE:
149148
$output .= 'null';
@@ -165,8 +164,7 @@ public function getParamExample(array $param): string
165164
$output .= '[]';
166165
break;
167166
}
168-
}
169-
else {
167+
} else {
170168
switch ($type) {
171169
case self::TYPE_FILE:
172170
case self::TYPE_NUMBER:
@@ -205,4 +203,3 @@ public function getFiles(): array
205203
];
206204
}
207205
}
208-

0 commit comments

Comments
 (0)