File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,15 @@ final class ConfigBuilder
2222{
2323 private Config $ config ;
2424
25+ private function __construct (private readonly RuleSet $ ruleSet )
26+ {
27+ $ this ->config = new Config ($ ruleSet ->name ());
28+ $ this ->config
29+ ->setRiskyAllowed ($ ruleSet ->allowRisky ())
30+ ->setUsingCache ($ ruleSet ->useCache ())
31+ ;
32+ }
33+
2534 public static function createFromRuleSet (RuleSet $ ruleSet ): self
2635 {
2736 return new self ($ ruleSet );
@@ -67,15 +76,6 @@ public function getConfig(): ConfigInterface
6776 return $ this ->config ->setRules ($ this ->ruleSet ->rules ());
6877 }
6978
70- private function __construct (private readonly RuleSet $ ruleSet )
71- {
72- $ this ->config = new Config ($ ruleSet ->name ());
73- $ this ->config
74- ->setRiskyAllowed ($ ruleSet ->allowRisky ())
75- ->setUsingCache ($ ruleSet ->useCache ())
76- ;
77- }
78-
7979 private function getFinder (): Finder
8080 {
8181 return $ this ->config ->getFinder ();
You can’t perform that action at this time.
0 commit comments