1 | <?php |
||
2 | |||
3 | use hipanel\modules\server\models\Config; |
||
4 | use hipanel\modules\server\models\Osimage; |
||
5 | use hipanel\server\order\yii\widgets\ServerOrder; |
||
0 ignored issues
–
show
|
|||
6 | use yii\web\View; |
||
7 | |||
8 | /** @var Config[] $configs */ |
||
9 | /** @var Osimage[] $osimages */ |
||
10 | |||
11 | $this->title = Yii::t('hipanel:server:panel', 'Dedicated servers'); |
||
12 | $this->params['breadcrumbs'][] = $this->title; |
||
13 | |||
14 | ?> |
||
15 | <!-- Test switcher --> |
||
16 | <?php $this->registerJs(" |
||
17 | var radios = document.querySelectorAll('.location-switcher-input'), x = radios.length; |
||
18 | while (x--) { |
||
19 | radios[x].addEventListener('click', (evt) => { |
||
20 | hipanel_server_order_app.setLocation(evt.target.value); |
||
21 | }) |
||
22 | } |
||
23 | ", View::POS_LOAD) ?> |
||
24 | <div class="use-bootstrap"> |
||
25 | <div class="container"> |
||
26 | <div class="row"> |
||
27 | <div class="col-12 mt-5 location-switcher"> |
||
28 | <div class="form-check"> |
||
29 | <input class="form-check-input location-switcher-input" type="radio" name="locationRadios" |
||
30 | id="locationRadios1" value="nl" checked> |
||
31 | <label class="form-check-label" for="locationRadios1">Netherlands</label> |
||
32 | </div> |
||
33 | <div class="form-check"> |
||
34 | <input class="form-check-input location-switcher-input" type="radio" name="locationRadios" |
||
35 | id="locationRadios2" value="us"> |
||
36 | <label class="form-check-label" for="locationRadios2">USA</label> |
||
37 | </div> |
||
38 | </div> |
||
39 | </div> |
||
40 | </div> |
||
41 | </div> |
||
42 | |||
43 | <?= ServerOrder::widget(compact('configs', 'osimages')) ?> |
||
44 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths