@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Translation; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Translation; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Translation\Loaders; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Translation\Loaders; |
5 | 5 |
@@ -81,14 +81,14 @@ discard block |
||
81 | 81 | public function setFolders(array $folders) { |
82 | 82 | foreach($folders as $folder) { |
83 | 83 | if(!is_dir($folder)) { |
84 | - throw new InvalidFolderException("Folder $folder does not exist."); |
|
84 | + throw new InvalidFolderException("folder $folder does not exist."); |
|
85 | 85 | } |
86 | 86 | $this->folders[] = $folder; |
87 | 87 | } |
88 | 88 | } |
89 | 89 | |
90 | 90 | protected function addResource(string $filename, string $domain): void { |
91 | - if(!isset($this->resources[$domain]) OR !in_array($filename, $this->resources[$domain])) { |
|
91 | + if(!isset($this->resources[$domain]) or !in_array($filename, $this->resources[$domain])) { |
|
92 | 92 | $this->resources[$domain][] = $filename; |
93 | 93 | } |
94 | 94 | } |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | $lang = []; |
120 | 120 | $filename = "$name.$this->lang.$extension"; |
121 | 121 | $filename = str_replace($defaultFilename, $filename, $file->getPathname()); |
122 | - if($this->lang != $defaultLang AND is_file($filename)) { |
|
122 | + if($this->lang != $defaultLang and is_file($filename)) { |
|
123 | 123 | $lang = $this->parseFile($filename); |
124 | 124 | $this->addResource($filename, $name); |
125 | 125 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Translation\Loaders; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Translation\Loaders; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Translation\Loaders; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Translation\Loaders; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Nexendrie\Translation\Loaders; |
5 | 5 |