Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
68 | public function createComponent(string $name, $compile = true): ReactComponent { |
||
69 | $compo = new ReactComponent($name, $this); |
||
70 | $this->components[\strtolower($name)] = $name; |
||
71 | if ($compile) { |
||
72 | $this->operations[] = function () use ($compo) { |
||
73 | return $compo->parse(); |
||
74 | }; |
||
75 | } |
||
76 | return $compo; |
||
77 | } |
||
97 |