Passed
Push — master ( e39cc4...66bdeb )
by Adrien
03:22
created

StatusHelp   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
c 1
b 0
f 0
dl 0
loc 18
ccs 9
cts 9
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A statusHelp() 0 11 1
1
<?php
2
3
namespace mQueue\View\Helper;
4
5
use mQueue\Model\Status;
6
use Zend_View_Helper_Abstract;
7
8
class StatusHelp extends Zend_View_Helper_Abstract
9
{
10
    /**
11
     * Returns some help text about statuses for end-user
12
     *
13
     * @return string
14
     */
15 1
    public function statusHelp()
16
    {
17 1
        $result = '<ul class="statusHelp">';
18 1
        $result .= '<li>' . $this->view->rating(Status::Need) . ': ' . $this->view->translate('I want to see this movie') . '</li>';
19 1
        $result .= '<li>' . $this->view->rating(Status::Bad) . ': ' . $this->view->translate('Boring movie, I wasted my time') . '</li>';
20 1
        $result .= '<li>' . $this->view->rating(Status::Ok) . ': ' . $this->view->translate('Enjoyable movie (most movies)') . '</li>';
21 1
        $result .= '<li>' . $this->view->rating(Status::Excellent) . ': ' . $this->view->translate('Excellent, I would watch it twice') . '</li>';
22 1
        $result .= '<li>' . $this->view->rating(Status::Favorite) . ': ' . $this->view->translate('Incredibly awesome, the kind of movie you must watch many times regularly') . '</li>';
23 1
        $result .= '</ul>';
24
25 1
        return $result;
26
    }
27
}
28