before_script:
# Check sintax errors
- - '! find . -type f -name "*.php" -exec php -d error_reporting=32767 -l {} \; 2>&1 >&- | grep "^"'
+ - '! find . -path ./vendor -prune -o -type f -name "*.php" -exec php -d error_reporting=32767 -l {} \; 2>&1 >&- | grep "^"'
# Postgersql
- psql -c 'CREATE DATABASE invent;' -U postgres
- psql -c "CREATE USER invent WITH PASSWORD 'Rfhkc0y';" -U postgres
<?php
-#class {CLASS}
+class {CLASS}
if ( isset($modelm))
{
?>
- <?= $form->field($modelm,
+ <?= $form->field( $modelm,
'date',
- [ 'template' => '<div class="row"><div class="col-md-2">{label}</div><div class="col-md-7">{input}</div><div class="col-md-8">{error}</div></div>' ])
+ [ 'template' => '<div class="row"><div class="col-md-2">{label}</div><div class="col-md-7">{input}</div><div class="col-md-8">{error}</div></div>' ] )
->widget(
DatePicker::className(),
[ 'language' => 'ru',
'dateFormat' => 'dd.MM.yyyy',
],
- );
+ ) ;
?>
<?= $form->field($modelm,
ArrayHelper::map(Status::find()->orderBy('name')->all(), 'name', 'name')
),
[ 'class' => 'form-control', ],
- ),
+ ) ,
'value' => function ($data)
{
return showUrlUpdate($data->statusName, $data);