From bc43cdfddfabd150e2a0a413f3b6bbb825e7d5c2 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 3 Jul 2024 11:06:43 +0000 Subject: [PATCH] Apply fixes from StyleCI --- tests/Stubs/ActiveRecord/OrderWithFactory.php | 6 ++++-- tests/Support/ConnectionHelper.php | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Stubs/ActiveRecord/OrderWithFactory.php b/tests/Stubs/ActiveRecord/OrderWithFactory.php index 026ca94ab..d0a8b9282 100644 --- a/tests/Stubs/ActiveRecord/OrderWithFactory.php +++ b/tests/Stubs/ActiveRecord/OrderWithFactory.php @@ -16,10 +16,12 @@ public function relationQuery(string $name): ActiveQueryInterface return match ($name) { 'customerWithFactory' => $this->hasOne(CustomerWithFactory::class, ['id' => 'customer_id']), 'customerWithFactoryClosure' => $this->hasOne( - fn () => $this->factory->create(CustomerWithFactory::class), ['id' => 'customer_id'] + fn () => $this->factory->create(CustomerWithFactory::class), + ['id' => 'customer_id'] ), 'customerWithFactoryInstance' => $this->hasOne( - $this->factory->create(CustomerWithFactory::class), ['id' => 'customer_id'] + $this->factory->create(CustomerWithFactory::class), + ['id' => 'customer_id'] ), default => parent::relationQuery($name), }; diff --git a/tests/Support/ConnectionHelper.php b/tests/Support/ConnectionHelper.php index df0e89527..14bde41a5 100644 --- a/tests/Support/ConnectionHelper.php +++ b/tests/Support/ConnectionHelper.php @@ -4,7 +4,6 @@ namespace Yiisoft\ActiveRecord\Tests\Support; -use Yiisoft\ActiveRecord\ActiveRecordFactory; use Yiisoft\Cache\ArrayCache; use Yiisoft\Db\Cache\SchemaCache; use Yiisoft\Db\Connection\ConnectionInterface;