Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 6 |
| Version | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6.00 | |
0.00% |
0 / 6 |
| init | |
0.00% |
0 / 1 |
6.00 | |
0.00% |
0 / 6 |
|||
| <?php | |
| /** | |
| * @copyright Copyright (c) 2015 Maciej Klemarczyk | |
| * @license MIT License | |
| */ | |
| namespace common\widgets; | |
| /** | |
| * Version widget renders a version and sprint number if DEBUG is enabled. | |
| * | |
| * @author Maciej Klemarczyk <m.klemarczyk@live.com> | |
| */ | |
| class Version extends \yii\bootstrap\Widget | |
| { | |
| public function init() | |
| { | |
| parent::init(); | |
| if(defined('YII_DEBUG')) { | |
| echo 'Version: ' . \Yii::$app->version . ' (52f2bb4) Sprint 3.01'; | |
| } | |
| } | |
| } |