diff --git a/src/Install/GuidelineComposer.php b/src/Install/GuidelineComposer.php index 6e07313..af68359 100644 --- a/src/Install/GuidelineComposer.php +++ b/src/Install/GuidelineComposer.php @@ -84,6 +84,14 @@ public function guidelines(): Collection protected function find(): Collection { $guidelines = collect(); + + $userGuidelines = $this->guidelineFilesInDir(base_path($this->userGuidelineDir)); + + foreach ($userGuidelines as $guideline) { + $guidelineKey = '.ai/'.$guideline->getBasename('.blade.php'); + $guidelines->put($guidelineKey, $this->guideline($guideline->getPathname())); + } + $guidelines->put('foundation', $this->guideline('foundation')); $guidelines->put('boost', $this->guideline('boost/core')); @@ -130,13 +138,6 @@ protected function find(): Collection $guidelines->put('tests', $this->guideline('enforce-tests')); } - $userGuidelines = $this->guidelineFilesInDir(base_path($this->userGuidelineDir)); - - foreach ($userGuidelines as $guideline) { - $guidelineKey = '.ai/'.$guideline->getBasename('.blade.php'); - $guidelines->put($guidelineKey, $this->guideline($guideline->getPathname())); - } - return $guidelines ->whereNotNull() ->where(fn ($guideline) => ! empty(trim($guideline)));