Skip to content

Commit

Permalink
Fix formatting (StyleCI)
Browse files Browse the repository at this point in the history
  • Loading branch information
musiermoore committed Mar 3, 2024
1 parent 735c2e8 commit 3d2d1c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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')
Expand Down
8 changes: 4 additions & 4 deletions tests/Database/DatabaseQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 3d2d1c5

Please sign in to comment.