@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | { |
| 10 | 10 | const CONFIG_PATH = __DIR__ . '/../config/lighthouse-utils.php'; |
| 11 | 11 | const MIGRATION_PATH = __DIR__ . '/../database/migrations/create_graphql_schema_table.php.stub'; |
| 12 | - const DIRECTIVE_PATH = __DIR__.'/Directives'; |
|
| 12 | + const DIRECTIVE_PATH = __DIR__ . '/Directives'; |
|
| 13 | 13 | const DIRECTIVE_NAMESPACE = 'DeInternetJongens\\LighthouseUtils\\Directives'; |
| 14 | 14 | |
| 15 | 15 | |
@@ -30,10 +30,10 @@ discard block |
||
| 30 | 30 | self::CONFIG_PATH => config_path('lighthouse-utils.php'), |
| 31 | 31 | ], 'config'); |
| 32 | 32 | |
| 33 | - if (! class_exists('CreatePermissionTables')) { |
|
| 33 | + if (!class_exists('CreatePermissionTables')) { |
|
| 34 | 34 | $timestamp = date('Y_m_d_His', time()); |
| 35 | 35 | $this->publishes([ |
| 36 | - self::MIGRATION_PATH => $this->app->databasePath()."/migrations/{$timestamp}_create_graphql_schema_table.php", |
|
| 36 | + self::MIGRATION_PATH => $this->app->databasePath() . "/migrations/{$timestamp}_create_graphql_schema_table.php", |
|
| 37 | 37 | ], 'migrations'); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | // Merging config doesn't seem to work on arrays, this is our work-around. |
| 52 | 52 | config()->set('lighthouse.directives', array_merge(config('lighthouse.directives', []), [$this->directiveAppPath])); |
| 53 | 53 | |
| 54 | - $this->app->bind('lighthouse-utils', function () { |
|
| 54 | + $this->app->bind('lighthouse-utils', function() { |
|
| 55 | 55 | return new LighthouseUtils(); |
| 56 | 56 | }); |
| 57 | 57 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $argument = $this->injectFilter( |
| 18 | 18 | $argument, |
| 19 | 19 | [ |
| 20 | - 'resolve' => function (Builder $builder, string $key, array $arguments): Builder { |
|
| 20 | + 'resolve' => function(Builder $builder, string $key, array $arguments): Builder { |
|
| 21 | 21 | $value = $arguments[$key]; |
| 22 | 22 | |
| 23 | 23 | $field = \preg_replace(sprintf('/%s$/', $this->getSuffix()), '', $key); |