@@ -10,13 +10,13 @@ |
||
| 10 | 10 | defined('YII_DEBUG') or define('YII_DEBUG', true); |
| 11 | 11 | defined('YII_ENV') or define('YII_ENV', 'test'); |
| 12 | 12 | |
| 13 | -require(__DIR__ . '/../vendor/autoload.php'); |
|
| 14 | -require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php'); |
|
| 13 | +require(__DIR__.'/../vendor/autoload.php'); |
|
| 14 | +require(__DIR__.'/../vendor/yiisoft/yii2/Yii.php'); |
|
| 15 | 15 | |
| 16 | 16 | include '../c3.php'; |
| 17 | 17 | |
| 18 | 18 | define('MY_APP_STARTED', true); |
| 19 | 19 | |
| 20 | -$config = require(__DIR__ . '/../tests/codeception/config/acceptance.php'); |
|
| 20 | +$config = require(__DIR__.'/../tests/codeception/config/acceptance.php'); |
|
| 21 | 21 | |
| 22 | 22 | (new yii\web\Application($config))->run(); |
@@ -3,14 +3,14 @@ |
||
| 3 | 3 | defined('YII_DEBUG') or define('YII_DEBUG', true); |
| 4 | 4 | defined('YII_ENV') or define('YII_ENV', 'dev'); |
| 5 | 5 | |
| 6 | -require(__DIR__ . '/../vendor/autoload.php'); |
|
| 7 | -require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php'); |
|
| 6 | +require(__DIR__.'/../vendor/autoload.php'); |
|
| 7 | +require(__DIR__.'/../vendor/yiisoft/yii2/Yii.php'); |
|
| 8 | 8 | |
| 9 | 9 | $config = yii\helpers\ArrayHelper::merge( |
| 10 | - require(__DIR__ . '/../config/main.php'), |
|
| 11 | - require(__DIR__ . '/../config/main.local.php'), |
|
| 12 | - require(__DIR__ . '/../config/common.php'), |
|
| 13 | - require(__DIR__ . '/../config/common.local.php') |
|
| 10 | + require(__DIR__.'/../config/main.php'), |
|
| 11 | + require(__DIR__.'/../config/main.local.php'), |
|
| 12 | + require(__DIR__.'/../config/common.php'), |
|
| 13 | + require(__DIR__.'/../config/common.local.php') |
|
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | 16 | (new yii\web\Application($config))->run(); |
@@ -53,17 +53,17 @@ |
||
| 53 | 53 | |
| 54 | 54 | $session = \Yii::$app->getSession(); |
| 55 | 55 | $flashes = $session->getAllFlashes(); |
| 56 | - $appendCss = isset($this->options['class']) ? ' ' . $this->options['class'] : ''; |
|
| 56 | + $appendCss = isset($this->options['class']) ? ' '.$this->options['class'] : ''; |
|
| 57 | 57 | |
| 58 | 58 | foreach ($flashes as $type => $data) { |
| 59 | 59 | if (isset($this->alertTypes[$type])) { |
| 60 | 60 | $data = (array) $data; |
| 61 | 61 | foreach ($data as $message) { |
| 62 | 62 | /* initialize css class for each alert box */ |
| 63 | - $this->options['class'] = $this->alertTypes[$type] . $appendCss; |
|
| 63 | + $this->options['class'] = $this->alertTypes[$type].$appendCss; |
|
| 64 | 64 | |
| 65 | 65 | /* assign unique id to each alert box */ |
| 66 | - $this->options['id'] = $this->getId() . '-' . $type; |
|
| 66 | + $this->options['id'] = $this->getId().'-'.$type; |
|
| 67 | 67 | |
| 68 | 68 | echo \yii\bootstrap\Alert::widget([ |
| 69 | 69 | 'body' => $message, |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link http://www.yiiframework.com/ |
|
| 4 | - * @copyright Copyright (c) 2008 Yii Software LLC |
|
| 5 | - * @license http://www.yiiframework.com/license/ |
|
| 6 | - */ |
|
| 3 | + * @link http://www.yiiframework.com/ |
|
| 4 | + * @copyright Copyright (c) 2008 Yii Software LLC |
|
| 5 | + * @license http://www.yiiframework.com/license/ |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | namespace app\widgets; |
| 9 | 9 | |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link http://www.yiiframework.com/ |
|
| 4 | - * @copyright Copyright (c) 2008 Yii Software LLC |
|
| 5 | - * @license http://www.yiiframework.com/license/ |
|
| 6 | - */ |
|
| 3 | + * @link http://www.yiiframework.com/ |
|
| 4 | + * @copyright Copyright (c) 2008 Yii Software LLC |
|
| 5 | + * @license http://www.yiiframework.com/license/ |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | namespace app\assets; |
| 9 | 9 | |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | /* @var $this yii\web\View */ |
| 6 | 6 | /* @var $model app\models\UserModel */ |
| 7 | 7 | |
| 8 | -$this->title = 'Update User: ' . ' ' . $model->username; |
|
| 8 | +$this->title = 'Update User: '.' '.$model->username; |
|
| 9 | 9 | $this->params['breadcrumbs'][] = ['label' => 'Users', 'url' => ['index']]; |
| 10 | 10 | $this->params['breadcrumbs'][] = 'Update'; |
| 11 | 11 | ?> |