Passed
Push — master ( a7212f...b9d836 )
by Kirill
01:47
created
src/SDL/TypeLoader/TypeLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     {
57 57
         $extension = $this->filterExtension($extension);
58 58
 
59
-        $filter = function (string $haystack) use ($extension): bool {
59
+        $filter = function(string $haystack) use ($extension): bool {
60 60
             return $haystack !== $extension;
61 61
         };
62 62
 
Please login to merge, or discard this patch.
src/SDL/TypeLoader/DirectoryLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     public function load(string $type, Definition $from = null): ?Readable
42 42
     {
43 43
         foreach ($this->fileExtensions as $extension) {
44
-            $pathName = $this->directory . '/' . $type . '.' . $extension;
44
+            $pathName = $this->directory.'/'.$type.'.'.$extension;
45 45
 
46 46
             if (\is_file($pathName)) {
47 47
                 return File::fromPathname($pathName);
Please login to merge, or discard this patch.
src/SDL/Compiler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      */
81 81
     private function typeLoader(): \Closure
82 82
     {
83
-        return function (string $type, Definition $from = null): ?DocumentInterface {
83
+        return function(string $type, Definition $from = null): ?DocumentInterface {
84 84
             foreach ($this->loaders as $loader) {
85 85
                 if ($file = $loader->load($type, $from)) {
86 86
                     return $this->compile($file);
Please login to merge, or discard this patch.
src/SDL/Builder/Definition/SchemaBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $schema = $this->bind(new SchemaDefinition($this->document, $this->findName()));
32 32
 
33 33
         foreach ($this->ast as $child) {
34
-            $this->async(function () use ($child, $schema): void {
34
+            $this->async(function() use ($child, $schema): void {
35 35
                 $this->buildField($child, $schema);
36 36
             });
37 37
         }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
         $result = $this->load($name, $definition, $type->getOffset());
109 109
 
110
-        if (! Type::of($result::getType())->is(Type::OBJECT)) {
110
+        if (!Type::of($result::getType())->is(Type::OBJECT)) {
111 111
             $error = 'Schema %s field type should be an %s, but %s given';
112 112
             $error = \sprintf($error, $field, Type::OBJECT, $result);
113 113
 
Please login to merge, or discard this patch.