Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jul 3, 2024
1 parent ea6a441 commit bc43cdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tests/Stubs/ActiveRecord/OrderWithFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down
1 change: 0 additions & 1 deletion tests/Support/ConnectionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bc43cdf

Please sign in to comment.