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

StatusHelp::statusHelp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 11
ccs 9
cts 9
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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