Completed
Branch master (2d0ab0)
by Adrien
07:23
created

Rating   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A rating() 0 6 1
1
<?php
2
3
namespace mQueue\View\Helper;
4
5
use Zend_View_Helper_Abstract;
6
7
class Rating extends Zend_View_Helper_Abstract
8
{
9
    /**
10
     * Returns some help text about statuses for end-user
11
     * @param int $rating
12
     * @return string
13
     */
14 2
    public function rating(int $rating)
0 ignored issues
show
Coding Style Best Practice introduced by
Please use __construct() instead of a PHP4-style constructor that is named after the class.
Loading history...
15
    {
16 2
        $result = '<span class="mqueue_status current mqueue_status_' . $rating . '" title="' . \mQueue\Model\Status::$ratings[$rating] . '"><span>' . \mQueue\Model\Status::$ratings[$rating] . '</span></span>';
17
18 2
        return $result;
19
    }
20
}
21