diff --git a/framework/db/BaseActiveRecord.php b/framework/db/BaseActiveRecord.php index 10021e362cc..761bc2cb994 100644 --- a/framework/db/BaseActiveRecord.php +++ b/framework/db/BaseActiveRecord.php @@ -1783,7 +1783,7 @@ private function isValueDifferent($newValue, $oldValue) { if (is_array($newValue) && is_array($oldValue)) { // Only sort associative arrays - $sorter = function(&$array) { + $sorter = function (&$array) { if (ArrayHelper::isAssociative($array)) { ksort($array); } diff --git a/framework/db/mssql/Schema.php b/framework/db/mssql/Schema.php index 35908437f48..1b1fb267e51 100644 --- a/framework/db/mssql/Schema.php +++ b/framework/db/mssql/Schema.php @@ -823,5 +823,4 @@ public function createColumnSchemaBuilder($type, $length = null) { return Yii::createObject(ColumnSchemaBuilder::className(), [$type, $length, $this->db]); } - }