diff options
author | Bruno Perel <brunoperel@gmail.com> | 2018-11-26 19:56:17 +0100 |
---|---|---|
committer | Bruno Perel <brunoperel@gmail.com> | 2018-11-26 20:08:52 +0100 |
commit | 513ed8175bdc0fc17a192ea29757cf8fee178c2a (patch) | |
tree | c87f72dcdc4d5f6f86e5da4d212e7be92cf9506c /tests/Components/CreateDefinitionTest.php | |
parent | 8e37bb398b9bf7449c6855f3e0639156cef35e7e (diff) | |
download | sql-parser-513ed8175bdc0fc17a192ea29757cf8fee178c2a.zip sql-parser-513ed8175bdc0fc17a192ea29757cf8fee178c2a.tar.gz sql-parser-513ed8175bdc0fc17a192ea29757cf8fee178c2a.tar.bz2 |
Cleanup and improve readability:
Avoid duplicate if conditions
Use switch/case instead of ifs when possible
Diffstat (limited to 'tests/Components/CreateDefinitionTest.php')
-rw-r--r-- | tests/Components/CreateDefinitionTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Components/CreateDefinitionTest.php b/tests/Components/CreateDefinitionTest.php index b14708c..3683e29 100644 --- a/tests/Components/CreateDefinitionTest.php +++ b/tests/Components/CreateDefinitionTest.php @@ -38,7 +38,7 @@ class CreateDefinitionTest extends TestCase public function testParseErr2() { $parser = new Parser(); - $component = CreateDefinition::parse( + CreateDefinition::parse( $parser, $this->getTokensList(')') ); |