CronController::beforeAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
class CronController extends CController
3
{
4
    public $contentClass;
5
6
    protected function beforeAction($action)
7
    {
8
        return (Yii::app()->request->getParam('p', '') === Yii::app()->params['cronPassword']);
9
    }
10
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
11