| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function getRatingText() |
||
| 49 | { |
||
| 50 | $ratingText = [ |
||
| 51 | 0 => 'No Rating', |
||
| 52 | 1 => 'Very Bad', |
||
| 53 | 2 => 'Very Bad', |
||
| 54 | 3 => 'Very Good', |
||
| 55 | 4 => 'Bad', |
||
| 56 | 5 => 'Moderate', |
||
| 57 | 6 => 'Not Bad', |
||
| 58 | 8 => 'Good', |
||
| 59 | 7 => 'Very Good', |
||
| 60 | 9 => 'Very Good', |
||
| 61 | 10 => 'Awesome', |
||
| 62 | ]; |
||
| 63 | $rating = (int)floor($this->getCodeRating()); |
||
| 64 | |||
| 65 | return $ratingText[$rating]; |
||
| 66 | } |
||
| 67 | |||
| 98 |