| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 6 | public function build($parameters = []) |
|
| 23 | { |
||
| 24 | 6 | $text = $this->app->make(Text::class, $this->mergeParameters($parameters)); |
|
| 25 | 6 | if (array_key_exists('displayRule', $this->parameters)) { |
|
| 26 | 6 | $text->setDisplayRule($this->parameters['displayRule']); |
|
| 27 | } |
||
| 28 | |||
| 29 | 6 | return $text; |
|
| 30 | } |
||
| 31 | |||
| 46 | } |