File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Appwrite \SDK \Language ;
6
6
7
- class GraphQL extends Language {
8
-
7
+ class GraphQL extends Language
8
+ {
9
9
/**
10
10
* @return string
11
11
*/
@@ -86,13 +86,13 @@ public function getParamDefault(array $param): string
86
86
$ default = $ param ['default ' ] ?? '' ;
87
87
$ required = $ param ['required ' ] ?? '' ;
88
88
89
- if ($ required ) {
89
+ if ($ required ) {
90
90
return '' ;
91
91
}
92
92
93
93
$ output = '' ;
94
94
95
- if (empty ($ default ) && $ default !== 0 && $ default !== false ) {
95
+ if (empty ($ default ) && $ default !== 0 && $ default !== false ) {
96
96
switch ($ type ) {
97
97
case self ::TYPE_OBJECT :
98
98
$ output .= '{} ' ;
@@ -111,8 +111,7 @@ public function getParamDefault(array $param): string
111
111
$ output .= '"" ' ;
112
112
break ;
113
113
}
114
- }
115
- else {
114
+ } else {
116
115
switch ($ type ) {
117
116
case self ::TYPE_OBJECT :
118
117
case self ::TYPE_NUMBER :
@@ -124,7 +123,7 @@ public function getParamDefault(array $param): string
124
123
$ output .= ($ default ) ? 'true ' : 'false ' ;
125
124
break ;
126
125
case self ::TYPE_STRING :
127
- $ output .= '" ' . $ default .'" ' ;
126
+ $ output .= '" ' . $ default . '" ' ;
128
127
break ;
129
128
}
130
129
}
@@ -143,7 +142,7 @@ public function getParamExample(array $param): string
143
142
144
143
$ output = '' ;
145
144
146
- if (empty ($ example ) && $ example !== 0 && $ example !== false ) {
145
+ if (empty ($ example ) && $ example !== 0 && $ example !== false ) {
147
146
switch ($ type ) {
148
147
case self ::TYPE_FILE :
149
148
$ output .= 'null ' ;
@@ -165,8 +164,7 @@ public function getParamExample(array $param): string
165
164
$ output .= '[] ' ;
166
165
break ;
167
166
}
168
- }
169
- else {
167
+ } else {
170
168
switch ($ type ) {
171
169
case self ::TYPE_FILE :
172
170
case self ::TYPE_NUMBER :
@@ -205,4 +203,3 @@ public function getFiles(): array
205
203
];
206
204
}
207
205
}
208
-
You can’t perform that action at this time.
0 commit comments