Completed
Push — master ( d9ee57...46a621 )
by Andrii
03:57
created

ReauestDetailMenu::items()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 8
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 8
loc 8
ccs 0
cts 7
cp 0
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Hosting Plugin for HiPanel
4
 *
5
 * @link      https://github.com/hiqdev/hipanel-module-hosting
6
 * @package   hipanel-module-hosting
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hipanel\modules\hosting\menus;
12
13
use hiqdev\menumanager\Menu;
14
15
class ReaqestDetailMenu extends Menu
16
{
17
    public $model;
18
19
    public function items()
20
    {
21
        $actions = RequestActionsMenu::create(['model' => $this->model])->items();
22
        $items = array_merge($actions, []);
23
        unlink($items['view']);
24
25
        return $items;
26
    }
27
}
28