| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 103 | public function getTitle() |
||
| 104 | { |
||
| 105 | if (is_null($this->title)) { |
||
| 106 | return Str::studly($this->getAlias()); |
||
| 107 | } |
||
| 108 | |||
| 109 | if (is_callable($this->title)) { |
||
| 110 | return call_user_func($this->title, $this->getValue()); |
||
| 111 | } |
||
| 112 | |||
| 113 | return strtr($this->title, [':value' => $this->getValue()]); |
||
|
|
|||
| 114 | } |
||
| 156 |