Skip to content

Commit

Permalink
minor format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noumo committed May 16, 2015
1 parent 8aa207d commit e4a6e54
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion behaviors/SortableController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function move($id, $direction, $condition = [])
if($direction === 'up'){
$eq = '>';
$orderDir = 'ASC';
} else{
} else {
$eq = '<';
$orderDir = 'DESC';
}
Expand Down
3 changes: 2 additions & 1 deletion controllers/InstallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace yii\easyii\controllers;

use Yii;
use yii\easyii\helpers\Data;
use yii\web\ServerErrorHttpException;

use yii\easyii\helpers\WebConsole;
Expand Down Expand Up @@ -185,7 +186,7 @@ private function insertSettings($installForm)

private function installModules()
{
$language = substr(Yii::$app->language, 0, 2);
$language = Data::getLocale();

foreach(glob(Yii::getAlias('@easyii'). DIRECTORY_SEPARATOR .'modules/*') as $module)
{
Expand Down
2 changes: 1 addition & 1 deletion controllers/ModulesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public function actionDelete($id)
{
if(($model = Module::findOne($id))){
$model->delete();
} else{
} else {
$this->error = Yii::t('easyii', 'Not found');
}
return $this->formatResponse(Yii::t('easyii', 'Module deleted'));
Expand Down
2 changes: 1 addition & 1 deletion controllers/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function actionDelete($id)
{
if(($model = Setting::findOne($id))){
$model->delete();
} else{
} else {
$this->error = Yii::t('easyii', 'Not found');
}
return $this->formatResponse(Yii::t('easyii', 'Setting deleted'));
Expand Down

0 comments on commit e4a6e54

Please sign in to comment.