From 500f3eb8970ed2a0bf6c31d6db2f02932b46cd12 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Thu, 22 Aug 2024 17:35:18 +0000 Subject: [PATCH] Apply fixes from StyleCI --- tests/Database/DatabaseQueryBuilderTest.php | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/Database/DatabaseQueryBuilderTest.php b/tests/Database/DatabaseQueryBuilderTest.php index 037a7e06f2df..f12f27f0e26b 100755 --- a/tests/Database/DatabaseQueryBuilderTest.php +++ b/tests/Database/DatabaseQueryBuilderTest.php @@ -1328,8 +1328,8 @@ public function testWhereAll() $builder = $this->getBuilder(); $builder->select('*')->from('users')->whereAll([ - fn(Builder $query) => $query->where('last_name', 'like', '%Otwell%'), - fn(Builder $query) => $query->where('email', 'like', '%Otwell%'), + fn (Builder $query) => $query->where('last_name', 'like', '%Otwell%'), + fn (Builder $query) => $query->where('email', 'like', '%Otwell%'), ]); $this->assertSame('select * from "users" where (("last_name" like ?) and ("email" like ?))', $builder->toSql()); $this->assertEquals(['%Otwell%', '%Otwell%'], $builder->getBindings()); @@ -1354,8 +1354,8 @@ public function testOrWhereAll() $builder = $this->getBuilder(); $builder->select('*')->from('users')->where('first_name', 'like', '%Taylor%')->orWhereAll([ - fn(Builder $query) => $query->where('last_name', 'like', '%Otwell%'), - fn(Builder $query) => $query->where('email', 'like', '%Otwell%'), + fn (Builder $query) => $query->where('last_name', 'like', '%Otwell%'), + fn (Builder $query) => $query->where('email', 'like', '%Otwell%'), ]); $this->assertSame('select * from "users" where "first_name" like ? or (("last_name" like ?) and ("email" like ?))', $builder->toSql()); $this->assertEquals(['%Taylor%', '%Otwell%', '%Otwell%'], $builder->getBindings()); @@ -1375,8 +1375,8 @@ public function testWhereAny() $builder = $this->getBuilder(); $builder->select('*')->from('users')->whereAny([ - fn(Builder $query) => $query->where('last_name', 'like', '%Otwell%'), - fn(Builder $query) => $query->where('email', 'like', '%Otwell%'), + fn (Builder $query) => $query->where('last_name', 'like', '%Otwell%'), + fn (Builder $query) => $query->where('email', 'like', '%Otwell%'), ]); $this->assertSame('select * from "users" where (("last_name" like ?) or ("email" like ?))', $builder->toSql()); $this->assertEquals(['%Otwell%', '%Otwell%'], $builder->getBindings()); @@ -1401,8 +1401,8 @@ public function testOrWhereAny() $builder = $this->getBuilder(); $builder->select('*')->from('users')->where('first_name', 'like', '%Taylor%')->orWhereAny([ - fn(Builder $query) => $query->where('last_name', 'like', '%Otwell%'), - fn(Builder $query) => $query->where('email', 'like', '%Otwell%'), + fn (Builder $query) => $query->where('last_name', 'like', '%Otwell%'), + fn (Builder $query) => $query->where('email', 'like', '%Otwell%'), ]); $this->assertSame('select * from "users" where "first_name" like ? or (("last_name" like ?) or ("email" like ?))', $builder->toSql()); $this->assertEquals(['%Taylor%', '%Otwell%', '%Otwell%'], $builder->getBindings()); @@ -1427,8 +1427,8 @@ public function testWhereNone() $builder = $this->getBuilder(); $builder->select('*')->from('users')->whereNone([ - fn(Builder $query) => $query->where('last_name', 'like', '%Otwell%'), - fn(Builder $query) => $query->where('email', 'like', '%Otwell%'), + fn (Builder $query) => $query->where('last_name', 'like', '%Otwell%'), + fn (Builder $query) => $query->where('email', 'like', '%Otwell%'), ]); $this->assertSame('select * from "users" where not (("last_name" like ?) or ("email" like ?))', $builder->toSql()); $this->assertEquals(['%Otwell%', '%Otwell%'], $builder->getBindings()); @@ -1453,8 +1453,8 @@ public function testOrWhereNone() $builder = $this->getBuilder(); $builder->select('*')->from('users')->where('first_name', 'like', '%Taylor%')->orWhereNone([ - fn(Builder $query) => $query->where('last_name', 'like', '%Otwell%'), - fn(Builder $query) => $query->where('email', 'like', '%Otwell%'), + fn (Builder $query) => $query->where('last_name', 'like', '%Otwell%'), + fn (Builder $query) => $query->where('email', 'like', '%Otwell%'), ]); $this->assertSame('select * from "users" where "first_name" like ? or not (("last_name" like ?) or ("email" like ?))', $builder->toSql()); $this->assertEquals(['%Taylor%', '%Otwell%', '%Otwell%'], $builder->getBindings());