Passed
Push — master ( 843406...a266d2 )
by Bruno
03:53
created
Modelarium/GeneratedCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     public function filterByType(string $type): GeneratedCollection
10 10
     {
11 11
         return $this->filter(
12
-            function ($i) use ($type) {
12
+            function($i) use ($type) {
13 13
                 return $i->type == $type;
14 14
             }
15 15
         );
Please login to merge, or discard this patch.
Modelarium/Parser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $originalTypeLoader = $this->schema->getConfig()->typeLoader;
161 161
 
162
-        $this->schema->getConfig()->typeLoader = function ($typeName) use ($originalTypeLoader) {
162
+        $this->schema->getConfig()->typeLoader = function($typeName) use ($originalTypeLoader) {
163 163
             $type = $originalTypeLoader($typeName);
164 164
             if ($type instanceof \GraphQL\Type\Definition\CustomScalarType) {
165 165
                 $scalarName = $type->name;
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     {
175 175
         $this->ast = Visitor::visit($this->ast, [
176 176
             // load the scalar type classes
177
-            NodeKind::SCALAR_TYPE_DEFINITION => function ($node) {
177
+            NodeKind::SCALAR_TYPE_DEFINITION => function($node) {
178 178
                 $scalarName = $node->name->value;
179 179
 
180 180
                 // load classes
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
             return [];
238 238
         }
239 239
         return array_map(
240
-            function ($i) use ($basedir) {
240
+            function($i) use ($basedir) {
241 241
                 $name = $i[1];
242 242
                 if (array_key_exists($name, $this->imports)) {
243 243
                     return $this->imports[$name];
Please login to merge, or discard this patch.
Modelarium/Laravel/Targets/PolicyGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,6 +168,6 @@
 block discarded – undo
168 168
 
169 169
     public function getGenerateFilename(string $name): string
170 170
     {
171
-        return $this->getBasePath('app/Policies/'. Str::studly($name) . 'Policy.php');
171
+        return $this->getBasePath('app/Policies/' . Str::studly($name) . 'Policy.php');
172 172
     }
173 173
 }
Please login to merge, or discard this patch.
Modelarium/FormulariumUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
                     throw new Exception("Directive $validator does not have argument $argName");
107 107
                 }
108 108
                 if ($argValidator->type === 'Int') {
109
-                    $argValue = (int)$argValue;
109
+                    $argValue = (int) $argValue;
110 110
                 }
111 111
                 $arguments[$argName] = $argValue;
112 112
             }
Please login to merge, or discard this patch.
Modelarium/Laravel/Console/Commands/ModelariumTypeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         $target = base_path('graphql/data/' . $this->lowerName . '.graphql');
70 70
         $this->writeFile(
71 71
             $target,
72
-            (bool)$this->option('overwrite'),
72
+            (bool) $this->option('overwrite'),
73 73
             $graphql
74 74
         );
75 75
         $this->info('Type generated at ' . $target);
Please login to merge, or discard this patch.
Modelarium/Laravel/ServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@
 block discarded – undo
45 45
 
46 46
         Event::listen(
47 47
             RegisterDirectiveNamespaces::class,
48
-            function (RegisterDirectiveNamespaces $registerDirectiveNamespaces): string {
48
+            function(RegisterDirectiveNamespaces $registerDirectiveNamespaces): string {
49 49
                 return 'Modelarium\\Laravel\\Lighthouse\\Directives';
50 50
             }
51 51
         );
52 52
         Event::listen(
53 53
             RegisterDirectiveNamespaces::class,
54
-            function (RegisterDirectiveNamespaces $registerDirectiveNamespaces): string {
54
+            function(RegisterDirectiveNamespaces $registerDirectiveNamespaces): string {
55 55
                 return 'App\\Datatypes\\Types';
56 56
             }
57 57
         );
Please login to merge, or discard this patch.
Modelarium/Datatypes/Datatype_relationship.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     /**
32 32
      * @var string
33 33
      */
34
-    protected $targetClass= '';
34
+    protected $targetClass = '';
35 35
 
36 36
     /**
37 37
      * If false, $source is "User" (class with HasOne/HasMany posts())
Please login to merge, or discard this patch.
Modelarium/Datatypes/RelationshipFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@  discard block
 block discarded – undo
16 16
     public const RELATIONSHIP = "RELATIONSHIP";
17 17
     public const RELATIONSHIP_ONE_TO_ONE = "11";
18 18
     public const RELATIONSHIP_ONE_TO_MANY = "1N";
19
-    public const RELATIONSHIP_MANY_TO_MANY  = "NN";
19
+    public const RELATIONSHIP_MANY_TO_MANY = "NN";
20 20
     public const MORPH_ONE_TO_ONE = "M11";
21 21
     public const MORPH_ONE_TO_MANY = "M1N";
22
-    public const MORPH_MANY_TO_MANY  = "MNN";
22
+    public const MORPH_MANY_TO_MANY = "MNN";
23 23
 
24 24
     private function __construct()
25 25
     {
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             if (!in_array($matches['mode'], $relationships)) {
52 52
                 throw new ClassNotFoundException('Invalid relationship');
53 53
             }
54
-            return static::factory($matches['source'], $matches['target'], $matches['mode'], (bool)$matches['inverse']);
54
+            return static::factory($matches['source'], $matches['target'], $matches['mode'], (bool) $matches['inverse']);
55 55
         }
56 56
         throw new ClassNotFoundException('Invalid relationship');
57 57
     }
Please login to merge, or discard this patch.
util/MakeAPIDoc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 function datatypes()
10 10
 {
11 11
     $markdown = DatatypeFactory::map(
12
-        function (\ReflectionClass $reflection): array {
12
+        function(\ReflectionClass $reflection): array {
13 13
             $class = $reflection->getName();
14 14
     
15 15
             /**
Please login to merge, or discard this patch.