Skip to content

Commit 54d236b

Browse files
committed
Fix Linting changes
Signed-off-by: Pushpak Chhajed <[email protected]>
1 parent 3fda59b commit 54d236b

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/Install/GuidelineComposer.php

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,16 @@ class GuidelineComposer
3737
*
3838
* @var array<int, Packages>
3939
* */
40-
protected array $mustBeDirect;
40+
protected array $mustBeDirect = [
41+
Packages::MCP,
42+
];
4143

4244
public function __construct(protected Roster $roster, protected Herd $herd)
4345
{
4446
$this->packagePriorities = [
4547
Packages::PEST->value => [Packages::PHPUNIT->value],
4648
];
4749

48-
$this->mustBeDirect = [
49-
Packages::MCP,
50-
];
51-
5250
$this->config = new GuidelineConfig;
5351
$this->guidelineAssist = new GuidelineAssist($roster);
5452
}
@@ -197,12 +195,7 @@ protected function shouldExcludePackage(Package $package): bool
197195
}
198196
}
199197
}
200-
201-
if ($package->indirect() && in_array($package->package(), $this->mustBeDirect, true)) {
202-
return true;
203-
}
204-
205-
return false;
198+
return $package->indirect() && in_array($package->package(), $this->mustBeDirect, true);
206199
}
207200

208201
/**

0 commit comments

Comments
 (0)