Commit b21fd298 by Alexander Makarov

Fixed minor coding style issues

parent 2926a5e1
...@@ -111,9 +111,9 @@ class QueryBuilder extends \yii\db\QueryBuilder ...@@ -111,9 +111,9 @@ class QueryBuilder extends \yii\db\QueryBuilder
$value = (int)$value - 1; $value = (int)$value - 1;
} }
try { try {
// it's possible sqlite_sequence does not exist
$db->createCommand("UPDATE sqlite_sequence SET seq='$value' WHERE name='{$table->name}'")->execute(); $db->createCommand("UPDATE sqlite_sequence SET seq='$value' WHERE name='{$table->name}'")->execute();
} catch (Exception $e) { } catch (Exception $e) {
// it's possible that sqlite_sequence does not exist
} }
} elseif ($table === null) { } elseif ($table === null) {
throw new InvalidParamException("Table not found: $tableName"); throw new InvalidParamException("Table not found: $tableName");
......
...@@ -422,7 +422,7 @@ class BaseConsole ...@@ -422,7 +422,7 @@ class BaseConsole
$styleA = ArrayHelper::merge($styleA, $style); $styleA = ArrayHelper::merge($styleA, $style);
} }
$styleString[] = []; $styleString = [];
foreach ($styleA as $name => $content) { foreach ($styleA as $name => $content) {
if ($name === 'text-decoration') { if ($name === 'text-decoration') {
$content = implode(' ', $content); $content = implode(' ', $content);
......
...@@ -616,6 +616,8 @@ class ActiveField extends Component ...@@ -616,6 +616,8 @@ class ActiveField extends Component
return []; return [];
} }
$options = [];
$enableClientValidation = $this->enableClientValidation || $this->enableClientValidation === null && $this->form->enableClientValidation; $enableClientValidation = $this->enableClientValidation || $this->enableClientValidation === null && $this->form->enableClientValidation;
if ($enableClientValidation) { if ($enableClientValidation) {
$validators = []; $validators = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment