composer fix-style
This commit is contained in:
parent
e207604767
commit
ee3313c9dc
|
@ -42,7 +42,6 @@ class QueryFormatter extends DataFormatter
|
|||
if (is_object($binding)) {
|
||||
$binding = json_encode($binding);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return $bindings;
|
||||
|
|
|
@ -22,7 +22,7 @@ class QueryFormatterTest extends TestCase
|
|||
],
|
||||
];
|
||||
|
||||
$queryFormatter = new QueryFormatter;
|
||||
$queryFormatter = new QueryFormatter();
|
||||
|
||||
$output = $queryFormatter->checkBindings($bindings);
|
||||
|
||||
|
@ -31,7 +31,7 @@ class QueryFormatterTest extends TestCase
|
|||
|
||||
public function testItFormatsObjectBindings()
|
||||
{
|
||||
$object = new \StdClass;
|
||||
$object = new \StdClass();
|
||||
$object->attribute1 = 'test';
|
||||
|
||||
$bindings = [
|
||||
|
@ -39,11 +39,10 @@ class QueryFormatterTest extends TestCase
|
|||
$object
|
||||
];
|
||||
|
||||
$queryFormatter = new QueryFormatter;
|
||||
$queryFormatter = new QueryFormatter();
|
||||
|
||||
$output = $queryFormatter->checkBindings($bindings);
|
||||
|
||||
$this->assertSame($output, ['some string', '{"attribute1":"test"}']);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue