File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,12 +47,15 @@ class ServerConfig
4747 *
4848 * @throws InvariantViolation
4949 */
50- public static function create (array $ config = []): self
50+ public static function create (
51+ array $ config = []): self
5152 {
5253 $ instance = new static ();
5354 foreach ($ config as $ key => $ value ) {
54- switch ($ key ) {
55+ switch ($ key ) {
5556 case 'schema ' :
57+
58+
5659 $ instance ->setSchema ($ value );
5760 break ;
5861 case 'rootValue ' :
@@ -62,13 +65,16 @@ public static function create(array $config = []): self
6265 $ instance ->setContext ($ value );
6366 break ;
6467 case 'fieldResolver ' :
65- $ instance ->setFieldResolver ($ value );
68+ $ instance ->setFieldResolver ($ value
69+ );
6670 break ;
6771 case 'validationRules ' :
6872 $ instance ->setValidationRules ($ value );
6973 break ;
7074 case 'queryBatching ' :
71- $ instance ->setQueryBatching ($ value );
75+
76+ $ instance ->setQueryBatching (
77+ $ value );
7278 break ;
7379 case 'debugFlag ' :
7480 $ instance ->setDebugFlag ($ value );
You can’t perform that action at this time.
0 commit comments