Skip to content

Commit

Permalink
Update Configuration.php
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Oct 5, 2023
1 parent f400d10 commit 62bdacb
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,8 @@ public function libraryTypes(array $types): static
return $this;
}

private ?array $translatedLibraryTypes = null;

public function getLibraryTypes(): ?array
{
if ($this->translatedLibraryTypes === null && $this->libraryTypes && function_exists('__')) {
$this->translatedLibraryTypes = array_map('__', $this->libraryTypes);
}

return $this->translatedLibraryTypes ?? $this->libraryTypes;
}

Expand All @@ -270,14 +264,8 @@ public function tagTypes(array $types): static
return $this;
}

private ?array $translatedTagTypes = null;

public function getTagTypes(): ?array
{
if ($this->translatedTagTypes === null && $this->tagTypes && function_exists('__')) {
$this->translatedTagTypes = array_map('__', $this->tagTypes);
}

return $this->translatedTagTypes ?? $this->tagTypes;
}

Expand Down

0 comments on commit 62bdacb

Please sign in to comment.