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 Nov 14, 2022
1 parent 4802114 commit 81e7190
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/QueryBuilder/FromTest.php
Expand Up @@ -41,7 +41,7 @@ private function fromCases(): array
[['alias' => 'table3'], 'SELECT * FROM "table3" "alias"'],
[['alias' => new Expression('table4')], 'SELECT * FROM table4 "alias"'],
[
['alias' => new Expression('func(:param1, :param2)', ['param1' => 'A', 'param2' => 'B'])],
['alias' => new Expression('func(:param1, :param2)', ['param1' => 'A', 'param2' => 'B'])],
'SELECT * FROM func(:param1, :param2) "alias"',
['param1' => 'A', 'param2' => 'B'],
],
Expand All @@ -51,8 +51,8 @@ private function fromCases(): array
private function build(Query $query): array
{
$cm = \Closure::fromCallable([$this, 'createMock']);
$qb = new class ($cm,) extends QueryBuilder {
public function __construct( \Closure $cm)
$qb = new class ($cm, ) extends QueryBuilder {
public function __construct(\Closure $cm)
{
$quoter = new Quoter('"', '"');
/** @var Schema $schema */
Expand All @@ -66,7 +66,8 @@ public function __construct( \Closure $cm)
$this,
$quoter,
$schema,
) extends DQLQueryBuilder {};
) extends DQLQueryBuilder {
};

parent::__construct($quoter, $schema, $ddlBuilder, $dmlBuilder, $dqlBuilder);
}
Expand All @@ -77,6 +78,6 @@ public function __construct( \Closure $cm)

private function createQuery(): Query
{
return (new Query($this->createMock(Connection::class)));
return new Query($this->createMock(Connection::class));
}
}

0 comments on commit 81e7190

Please sign in to comment.