Conditions | 3 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
22 | public function run() |
||
23 | { |
||
24 | return ButtonGroup::widget([ |
||
25 | 'encodeLabels' => false, |
||
26 | 'buttons' => [ |
||
27 | Html::a( |
||
28 | '<i class="fa fa-pause" aria-hidden="true"></i>', |
||
29 | ['set-orientation', 'orientation' => OrientationStorage::ORIENTATION_HORIZONTAL, 'route' => Yii::$app->controller->getRoute()], |
||
30 | ['class' => 'btn btn-default btn-sm ' . ($this->isOrientation(OrientationStorage::ORIENTATION_HORIZONTAL) ? 'active' : '')]), |
||
31 | Html::a( |
||
32 | '<i class="fa fa-pause fa-rotate-90" aria-hidden="true"></i>', |
||
33 | ['set-orientation', 'orientation' => OrientationStorage::ORIENTATION_VERTICAL, 'route' => Yii::$app->controller->getRoute()], |
||
34 | ['class' => 'btn btn-default btn-sm ' . ($this->isOrientation(OrientationStorage::ORIENTATION_VERTICAL) ? 'active' : '')]), |
||
35 | ], |
||
36 | ]); |
||
37 | } |
||
38 | |||
48 |