| Conditions | 5 |
| Paths | 5 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 79 | public function BetterValue() |
||
| 80 | { |
||
| 81 | if(strtolower($this->Value) === 'true') { |
||
| 82 | return true; |
||
| 83 | } |
||
| 84 | if(strtolower($this->Value) === 'false') { |
||
| 85 | return false; |
||
| 86 | } |
||
| 87 | if(floatval($this->Value)) { |
||
| 88 | return floatval($this->Value); |
||
| 89 | } |
||
| 90 | if(intval($this->Value)) { |
||
| 91 | return intval($this->Value); |
||
| 92 | } |
||
| 93 | |||
| 94 | return trim($this->Value); |
||
| 95 | } |
||
| 101 |