@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | defined('YII_DEBUG') or define('YII_DEBUG', true); |
| 3 | 3 | defined('YII_ENV') or define('YII_ENV', 'test'); |
| 4 | -require(__DIR__ . '/../vendor/autoload.php'); |
|
| 5 | -require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php'); |
|
| 4 | +require(__DIR__.'/../vendor/autoload.php'); |
|
| 5 | +require(__DIR__.'/../vendor/yiisoft/yii2/Yii.php'); |
|
| 6 | 6 | |
| 7 | 7 | Yii::setAlias('@tests', __DIR__); |
| 8 | 8 | |
@@ -19,11 +19,11 @@ |
||
| 19 | 19 | return [ |
| 20 | 20 | 'ymlCategory' => [ |
| 21 | 21 | 'class' => YmlCategoryBehavior::className(), |
| 22 | - 'scope' => function ($model) { |
|
| 22 | + 'scope' => function($model) { |
|
| 23 | 23 | /** @var \yii\db\ActiveQuery $model */ |
| 24 | 24 | $model->select(['id', 'name', 'parentId']); |
| 25 | 25 | }, |
| 26 | - 'dataClosure' => function ($model) { |
|
| 26 | + 'dataClosure' => function($model) { |
|
| 27 | 27 | /** @var self $model */ |
| 28 | 28 | return [ |
| 29 | 29 | 'id' => $model->id, |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | public function logErrors(Shop $shop) |
| 130 | 130 | { |
| 131 | 131 | foreach ($shop->getFirstErrors() as $attribute => $error) { |
| 132 | - Yii::error(Shop::class . "\n$error", __METHOD__); |
|
| 132 | + Yii::error(Shop::class."\n$error", __METHOD__); |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | foreach ($shop->offers as $offer) { |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | * @var Offer $offer |
| 138 | 138 | */ |
| 139 | 139 | foreach ($offer->getFirstErrors() as $attribute => $error) { |
| 140 | - Yii::error(Offer::class . " id: {$offer->id}\n$error", __METHOD__); |
|
| 140 | + Yii::error(Offer::class." id: {$offer->id}\n$error", __METHOD__); |
|
| 141 | 141 | } |
| 142 | 142 | } |
| 143 | 143 | } |