Completed
Push — master ( 3c8880...e2c218 )
by Dmitry
06:42 queued 02:46
created

PrepareBulkAction::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
ccs 0
cts 5
cp 0
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * HiPanel core package
5
 *
6
 * @link      https://hipanel.com/
7
 * @package   hipanel-core
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2014-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hipanel\actions;
13
14
use Yii;
15
16
/**
17
 * Class PrepareBulkAction.
18
 */
19
class PrepareBulkAction extends PrepareAjaxViewAction
20
{
21
    /** {@inheritdoc} */
22
    public function run($id = null)
23
    {
24
        $this->setId(Yii::$app->request->get('selection', []));
25
26
        return parent::run();
27
    }
28
}
29