Browse Source

fixed Coding Standard errors

tags/2.0.6
freezy 9 years ago committed by Carsten Brandt
parent
commit
6fd96d4bf9
  1. 4
      ActiveField.php
  2. 2
      Html.php

4
ActiveField.php

@ -254,7 +254,7 @@ class ActiveField extends \yii\widgets\ActiveField
'labelOptions' => ['class' => 'checkbox-inline'],
];
}
} elseif (!isset($options['item'])) {
} elseif (!isset($options['item'])) {
$options['item'] = function ($index, $label, $name, $checked, $value) {
return '<div class="checkbox">' . Html::checkbox($name, $checked, ['label' => $label, 'value' => $value]) . '</div>';
};
@ -280,7 +280,7 @@ class ActiveField extends \yii\widgets\ActiveField
'labelOptions' => ['class' => 'radio-inline'],
];
}
} elseif (!isset($options['item'])) {
} elseif (!isset($options['item'])) {
$options['item'] = function ($index, $label, $name, $checked, $value) {
return '<div class="radio">' . Html::radio($name, $checked, ['label' => $label, 'value' => $value]) . '</div>';
};

2
Html.php

@ -19,4 +19,4 @@ namespace yii\bootstrap;
*/
class Html extends BaseHtml
{
}
}

Loading…
Cancel
Save