diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 70d8e7b..056063f 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -14,7 +14,7 @@ jobs: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v1.6.0 + uses: dependabot/fetch-metadata@v2.1.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/src/BusinessNameGenerator.php b/src/BusinessNameGenerator.php index fe79e53..ab19d07 100644 --- a/src/BusinessNameGenerator.php +++ b/src/BusinessNameGenerator.php @@ -49,6 +49,7 @@ public function generateMultiple(string $adjectivesCategory = 'default', string private function adjectivesList(string $adjectivesCategory): array { + return match (strtolower($adjectivesCategory)) { 'funny' => (new Adjectives())->funny(), 'playful' => (new Adjectives())->playful(), @@ -56,10 +57,12 @@ private function adjectivesList(string $adjectivesCategory): array 'all' => (new Adjectives())->all(), default => $this->adjectives, }; + } private function nounsList(string $nounsCategory): array { + return match (strtolower($nounsCategory)) { 'funny' => (new Nouns())->funny(), 'playful' => (new Nouns())->playful(), @@ -67,5 +70,6 @@ private function nounsList(string $nounsCategory): array 'all' => (new Nouns())->all(), default => $this->nouns, }; + } }