diff --git a/framework/yii/bootstrap/Carousel.php b/framework/yii/bootstrap/Carousel.php index b7e378a..8344929 100644 --- a/framework/yii/bootstrap/Carousel.php +++ b/framework/yii/bootstrap/Carousel.php @@ -29,8 +29,8 @@ use yii\helpers\Html; * 'caption' => '
This is the caption text
', * 'options' => [...], * ], - * ) - * )); + * ] + * ]); * ``` * * @see http://twitter.github.io/bootstrap/javascript.html#carousel diff --git a/framework/yii/bootstrap/Nav.php b/framework/yii/bootstrap/Nav.php index 7d07a86..298f9b8 100644 --- a/framework/yii/bootstrap/Nav.php +++ b/framework/yii/bootstrap/Nav.php @@ -24,7 +24,7 @@ use yii\helpers\Html; * 'label' => 'Home', * 'url' => ['site/index'], * 'linkOptions' => [...], - * ), + * ], * [ * 'label' => 'Dropdown', * 'items' => [ diff --git a/framework/yii/data/ArrayDataProvider.php b/framework/yii/data/ArrayDataProvider.php index e3f1b34..2b694c7 100644 --- a/framework/yii/data/ArrayDataProvider.php +++ b/framework/yii/data/ArrayDataProvider.php @@ -33,7 +33,7 @@ use yii\helpers\ArrayHelper; * 'allModels' => $query->from('tbl_post')->all(), * 'sort' => [ * 'attributes' => ['id', 'username', 'email'], - * ), + * ], * 'pagination' => [ * 'pageSize' => 10, * ], diff --git a/framework/yii/log/Logger.php b/framework/yii/log/Logger.php index ad0ab8d..4e0e547 100644 --- a/framework/yii/log/Logger.php +++ b/framework/yii/log/Logger.php @@ -39,7 +39,7 @@ use yii\base\InvalidConfigException; * 'class' => 'yii\log\FileTarget', * 'levels' => ['trace', 'info'], * 'categories' => ['yii\*'], - * ), + * ], * 'email' => [ * 'class' => 'yii\log\EmailTarget', * 'levels' => ['error', 'warning'], diff --git a/framework/yii/web/AccessControl.php b/framework/yii/web/AccessControl.php index f9b82df..d11f59c 100644 --- a/framework/yii/web/AccessControl.php +++ b/framework/yii/web/AccessControl.php @@ -42,9 +42,9 @@ use yii\base\ActionFilter; * 'roles' => ['@'], * ], * // everything else is denied - * ), - * ), - * ); + * ], + * ], + * ]; * } * ~~~ * diff --git a/framework/yii/widgets/Menu.php b/framework/yii/widgets/Menu.php index db4a5d4..7ea7717 100644 --- a/framework/yii/widgets/Menu.php +++ b/framework/yii/widgets/Menu.php @@ -33,13 +33,13 @@ use yii\helpers\Html; * // not just as 'controller' even if default action is used. * ['label' => 'Home', 'url' => ['site/index']], * // 'Products' menu item will be selected as long as the route is 'product/index' - * ['label' => 'Products', 'url' => ['product/index'), 'items' => [ + * ['label' => 'Products', 'url' => ['product/index'], 'items' => [ * ['label' => 'New Arrivals', 'url' => ['product/index', 'tag' => 'new']], * ['label' => 'Most Popular', 'url' => ['product/index', 'tag' => 'popular']], * ]], * ['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest], - * ), - * )); + * ], + * ]); * ~~~ * * @author Qiang Xue