Skip to content

Commit e62d571

Browse files
committed
🧹 Fixed code-style
1 parent 2006ec6 commit e62d571

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/Processors/Processor.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public function __construct(
5151
readonly protected Config $config,
5252
protected Manager $filesystem = new Manager(),
5353
protected ArrHelper $arr = new ArrHelper(),
54-
protected Translation $translation = new Translation()
55-
) {
56-
}
54+
protected Translation $translation = new Translation(
55+
)
56+
) {}
5757

5858
public function prepare(): self
5959
{
@@ -91,7 +91,7 @@ public function store(): void
9191
$path = $this->config->langPath($filename);
9292

9393
$values
94-
= $this->reset || !File::exists($path)
94+
= $this->reset || ! File::exists($path)
9595
? $values
9696
: $this->arr->merge(
9797
$this->filesystem->load($path),
@@ -121,7 +121,7 @@ protected function collectLocalizations(string $directory): void
121121
$locale_alias = $this->toAlias($locale);
122122

123123
foreach ($this->file_types as $type) {
124-
$main_path = $this->localeFilename($locale_alias, "$directory/locales/$locale/$type.json");
124+
$main_path = $this->localeFilename($locale_alias, "$directory/locales/$locale/$type.json");
125125
$inline_path = $this->localeFilename($locale_alias, "$directory/locales/$locale/$type.json", true);
126126

127127
$values = $this->filesystem->load($main_path);

src/Resources/Translation.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ class Translation implements Arrayable
2929

3030
public function __construct(
3131
readonly protected Arr $arr = new Arr()
32-
) {
33-
}
32+
) {}
3433

3534
public function setSource(string $namespace, string $filename, array $values): self
3635
{
@@ -54,12 +53,12 @@ public function toArray(): array
5453
$result = [];
5554

5655
foreach (array_keys($this->source) as $namespace) {
57-
if (!isset($this->source[$namespace])) {
56+
if (! isset($this->source[$namespace])) {
5857
continue;
5958
}
6059

6160
foreach ($this->source[$namespace] as $filename => $keys) {
62-
if (!isset($this->translations[$namespace])) {
61+
if (! isset($this->translations[$namespace])) {
6362
continue;
6463
}
6564

0 commit comments

Comments
 (0)