Passed
Push — master ( a706ce...2ac5d1 )
by Alexander
02:39
created

controllers/DefaultController.php (1 issue)

1
<?php
2
3
namespace hauntd\vote\controllers;
4
5
use hauntd\vote\actions\VoteAction;
6
use Yii;
7
use yii\web\Controller;
8
9
/**
10
 * @author Alexander Kononenko <[email protected]>
11
 * @package hauntd\vote\controllers
12
 */
13
class DefaultController extends Controller
14
{
15
    /**
16
     * @var string
17
     */
18
    public $defaultAction = 'vote';
19
20
    /**
21
     * @return array
22
     */
23
    public function actions()
24
    {
25
        return [
26
            'vote' => [
27
                'class' => VoteAction::className(),
0 ignored issues
show
Deprecated Code introduced by
The function yii\base\BaseObject::className() has been deprecated: since 2.0.14. On PHP >=5.5, use `::class` instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

27
                'class' => /** @scrutinizer ignore-deprecated */ VoteAction::className(),

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
28
            ]
29
        ];
30
    }
31
}
32