Skip to content

Commit 3065c86

Browse files
committed
Refactor GuidelineComposer.php
Signed-off-by: Pushpak Chhajed <[email protected]>
1 parent 1e09620 commit 3065c86

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Install/GuidelineComposer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class GuidelineComposer
4848
*
4949
* @var array<int, Packages>
5050
*/
51-
protected array $manuallyIncludedPackages = [
51+
protected array $optInPackages = [
5252
Packages::SAIL,
5353
];
5454

@@ -220,11 +220,10 @@ protected function find(): Collection
220220
*/
221221
protected function shouldExcludePackage(Package $package): bool
222222
{
223-
if (in_array($package->package(), $this->manuallyIncludedPackages, true)) {
223+
if (in_array($package->package(), $this->optInPackages, true)) {
224224
return true;
225225
}
226226

227-
// Check if a higher priority package excludes this one
228227
foreach ($this->packagePriorities as $priorityPackage => $excludedPackages) {
229228
$packageIsInExclusionList = in_array($package->package()->value, $excludedPackages, true);
230229

0 commit comments

Comments
 (0)