From 3d2d1c5c9b4e7541a320fa9ad1de1ab8b72ad4c2 Mon Sep 17 00:00:00 2001 From: Alexander Sustavov Date: Sun, 3 Mar 2024 09:53:35 +0600 Subject: [PATCH] Fix formatting (StyleCI) --- src/Illuminate/Database/Query/Builder.php | 16 ++++++++-------- tests/Database/DatabaseQueryBuilderTest.php | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php index d2cd82d036a5..c819a8fd522e 100755 --- a/src/Illuminate/Database/Query/Builder.php +++ b/src/Illuminate/Database/Query/Builder.php @@ -2101,10 +2101,10 @@ public function orWhereFullText($columns, $value, array $options = []) * @param string[] $columns * @param string $operator * @param array $value - * @param string $columnsBoolean Boolean type between columns - * (column1 = 'foo' or column2 = 'foo') - * or - * (column1 = 'bar' and column2 = 'bar') + * @param string $columnsBoolean Boolean type between columns + * (column1 = 'foo' or column2 = 'foo') + * or + * (column1 = 'bar' and column2 = 'bar') * @param string $boolean * @return $this */ @@ -2142,10 +2142,10 @@ public function whereMultiple($columns, $operator = null, $value = null, $column * @param string[] $columns * @param string $operator * @param array $value - * @param string $columnsBoolean Boolean type between columns - * (column1 = 'foo' or column2 = 'foo') - * or - * (column1 = 'bar' and column2 = 'bar') + * @param string $columnsBoolean Boolean type between columns + * (column1 = 'foo' or column2 = 'foo') + * or + * (column1 = 'bar' and column2 = 'bar') * @return $this */ public function orWhereMultiple($columns, $operator = null, $value = null, $columnsBoolean = 'or') diff --git a/tests/Database/DatabaseQueryBuilderTest.php b/tests/Database/DatabaseQueryBuilderTest.php index 5ec973ce9c43..7e7a12972760 100755 --- a/tests/Database/DatabaseQueryBuilderTest.php +++ b/tests/Database/DatabaseQueryBuilderTest.php @@ -1188,22 +1188,22 @@ public function testWhereFulltextPostgres() public function testWhereMultiple() { $builder = $this->getBuilder(); - $builder->select('*')->from('users')->whereMultiple(['last_name', 'email'], 'like','%Otwell%'); + $builder->select('*')->from('users')->whereMultiple(['last_name', 'email'], 'like', '%Otwell%'); $this->assertSame('select * from "users" where ("last_name" like ? or "email" like ?)', $builder->toSql()); $this->assertEquals(['%Otwell%', '%Otwell%'], $builder->getBindings()); $builder = $this->getBuilder(); - $builder->select('*')->from('users')->whereMultiple(['last_name', 'email'],'%Otwell%'); + $builder->select('*')->from('users')->whereMultiple(['last_name', 'email'], '%Otwell%'); $this->assertSame('select * from "users" where ("last_name" = ? or "email" = ?)', $builder->toSql()); $this->assertEquals(['%Otwell%', '%Otwell%'], $builder->getBindings()); $builder = $this->getBuilder(); - $builder->select('*')->from('users')->whereMultiple(['last_name', 'email'],'%Otwell%', 'and'); + $builder->select('*')->from('users')->whereMultiple(['last_name', 'email'], '%Otwell%', 'and'); $this->assertSame('select * from "users" where ("last_name" = ? and "email" = ?)', $builder->toSql()); $this->assertEquals(['%Otwell%', '%Otwell%'], $builder->getBindings()); $builder = $this->getBuilder(); - $builder->select('*')->from('users')->whereMultiple(['last_name', 'email'],'not like', '%Otwell%', 'and'); + $builder->select('*')->from('users')->whereMultiple(['last_name', 'email'], 'not like', '%Otwell%', 'and'); $this->assertSame('select * from "users" where ("last_name" not like ? and "email" not like ?)', $builder->toSql()); $this->assertEquals(['%Otwell%', '%Otwell%'], $builder->getBindings()); }