File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments