@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | // NOTE: Make sure this file is not accessible when deployed to production |
| 4 | -if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) { |
|
| 4 | +if (!in_array(@$_SERVER[ 'REMOTE_ADDR' ], [ '127.0.0.1', '::1' ])) { |
|
| 5 | 5 | die('You are not allowed to access this file.'); |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | 8 | defined('YII_DEBUG') or define('YII_DEBUG', true); |
| 9 | 9 | defined('YII_ENV') or define('YII_ENV', 'test'); |
| 10 | 10 | |
| 11 | -require __DIR__ . '/../vendor/autoload.php'; |
|
| 12 | -require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php'; |
|
| 11 | +require __DIR__.'/../vendor/autoload.php'; |
|
| 12 | +require __DIR__.'/../vendor/yiisoft/yii2/Yii.php'; |
|
| 13 | 13 | |
| 14 | -$config = require __DIR__ . '/../config/test.php'; |
|
| 14 | +$config = require __DIR__.'/../config/test.php'; |
|
| 15 | 15 | |
| 16 | 16 | (new yii\web\Application($config))->run(); |
@@ -16,4 +16,4 @@ |
||
| 16 | 16 | 'uncheck' => false, |
| 17 | 17 | 'onMouseDown' => 'this.isChecked=this.checked;', |
| 18 | 18 | 'onClick' => 'this.checked=!this.isChecked;', |
| 19 | -]); ?> |
|
| 19 | +]); ?> |
|
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | */ |
| 141 | 141 | public function afterSave($insert, $changedAttributes) |
| 142 | 142 | { |
| 143 | - $this->linkWithAbout(empty($this->about) ? [] : $this->about); |
|
| 143 | + $this->linkWithAbout(empty($this->about) ? [ ] : $this->about); |
|
| 144 | 144 | |
| 145 | 145 | parent::afterSave($insert, $changedAttributes); |
| 146 | 146 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | return [ |
| 21 | 21 | [ |
| 22 | - ['id'], |
|
| 22 | + [ 'id' ], |
|
| 23 | 23 | 'integer', |
| 24 | 24 | ], |
| 25 | 25 | [ |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | return [ |
| 21 | 21 | [ |
| 22 | - ['id'], |
|
| 22 | + [ 'id' ], |
|
| 23 | 23 | 'integer', |
| 24 | 24 | ], |
| 25 | 25 | [ |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | return [ |
| 21 | 21 | [ |
| 22 | - ['id'], |
|
| 22 | + [ 'id' ], |
|
| 23 | 23 | 'integer', |
| 24 | 24 | ], |
| 25 | 25 | [ |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | return [ |
| 21 | 21 | [ |
| 22 | - ['id'], |
|
| 22 | + [ 'id' ], |
|
| 23 | 23 | 'integer', |
| 24 | 24 | ], |
| 25 | 25 | [ |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | return [ |
| 21 | 21 | [ |
| 22 | - ['id'], |
|
| 22 | + [ 'id' ], |
|
| 23 | 23 | 'integer', |
| 24 | 24 | ], |
| 25 | 25 | [ |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | return [ |
| 21 | 21 | [ |
| 22 | - ['id'], |
|
| 22 | + [ 'id' ], |
|
| 23 | 23 | 'integer', |
| 24 | 24 | ], |
| 25 | 25 | [ |