RequisiteSerieWidget::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 7
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 7
loc 7
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Finance plugin for HiPanel
4
 *
5
 * @link      https://github.com/hiqdev/hipanel-module-finance
6
 * @package   hipanel-module-finance
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2020, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hipanel\modules\finance\widgets;
12
13
use yii\base\Widget;
14
15 View Code Duplication
class RequisiteSerieWidget extends Widget
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
16
{
17
    public $model;
18
19
    public $requisiteId;
20
21
    /**
22
     * @var array options for [[Pjax]] widget
23
     */
24
    public $pjaxOptions = [];
25
26
    /**
27
     * @var array options for [[Progress]] widget
28
     */
29
    public $progressOptions = [];
30
31
    /**
32
     * @var array|string url to send the form
33
     */
34
    public $actionUrl = '@requisite/set-serie';
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function run()
40
    {
41
        return $this->render('requisite-serie', [
42
            'model' => $this->model,
43
            'actionUrl' => $this->actionUrl,
44
        ]);
45
    }
46
}
47