Completed
Branch develop (b17094)
by Maarten
07:25
created
Category
src/ServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Directives/BaseDirective.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.