File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,14 +48,12 @@ class ServerConfig
4848 * @throws InvariantViolation
4949 */
5050 public static function create (
51- array $ config = []): self
52- {
51+ array $ config = []
52+ ): self {
5353 $ instance = new static ();
5454 foreach ($ config as $ key => $ value ) {
55- switch ($ key ) {
55+ switch ($ key ) {
5656 case 'schema ' :
57-
58-
5957 $ instance ->setSchema ($ value );
6058 break ;
6159 case 'rootValue ' :
@@ -65,16 +63,17 @@ public static function create(
6563 $ instance ->setContext ($ value );
6664 break ;
6765 case 'fieldResolver ' :
68- $ instance ->setFieldResolver ($ value
66+ $ instance ->setFieldResolver (
67+ $ value
6968 );
7069 break ;
7170 case 'validationRules ' :
7271 $ instance ->setValidationRules ($ value );
7372 break ;
7473 case 'queryBatching ' :
75-
7674 $ instance ->setQueryBatching (
77- $ value );
75+ $ value
76+ );
7877 break ;
7978 case 'debugFlag ' :
8079 $ instance ->setDebugFlag ($ value );
You can’t perform that action at this time.
0 commit comments