| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function run() |
||
| 27 | { |
||
| 28 | return ButtonGroup::widget([ |
||
| 29 | 'encodeLabels' => false, |
||
| 30 | 'buttons' => [ |
||
| 31 | Html::a( |
||
| 32 | '<i class="fa fa-pause" aria-hidden="true"></i>', |
||
| 33 | Url::current(['orientation' => IndexPageUiOptions::ORIENTATION_HORIZONTAL]), |
||
| 34 | ['class' => 'btn btn-default btn-sm ' . |
||
| 35 | $this->getClassActive(IndexPageUiOptions::ORIENTATION_HORIZONTAL) |
||
| 36 | ]), |
||
| 37 | Html::a( |
||
| 38 | '<i class="fa fa-pause fa-rotate-90" aria-hidden="true"></i>', |
||
| 39 | Url::current(['orientation' => IndexPageUiOptions::ORIENTATION_VERTICAL]), |
||
| 40 | ['class' => 'btn btn-default btn-sm ' . |
||
| 41 | $this->getClassActive(IndexPageUiOptions::ORIENTATION_VERTICAL) |
||
| 42 | ]), |
||
| 43 | ], |
||
| 44 | ]); |
||
| 45 | } |
||
| 46 | |||
| 65 |