@@ -56,7 +56,7 @@ |
||
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 |
@@ -41,7 +41,7 @@ |
||
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); |
@@ -80,7 +80,7 @@ |
||
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); |
@@ -10,7 +10,6 @@ |
||
10 | 10 | namespace Railt\SDL; |
11 | 11 | |
12 | 12 | use Railt\Io\Exception\ExternalFileException; |
13 | -use Railt\Io\File; |
|
14 | 13 | use Railt\Io\Readable; |
15 | 14 | use Railt\Reflection\Contracts\Definition; |
16 | 15 | use Railt\Reflection\Contracts\Document as DocumentInterface; |