composer fix-style

This commit is contained in:
laravel-debugbar 2021-06-05 12:09:56 +00:00 committed by GitHub Actions
parent e207604767
commit ee3313c9dc
2 changed files with 4 additions and 6 deletions

View File

@ -42,7 +42,6 @@ class QueryFormatter extends DataFormatter
if (is_object($binding)) {
$binding = json_encode($binding);
}
}
return $bindings;

View File

@ -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"}']);
}
}
}