Skip to content

Commit da409e9

Browse files
committed
Coding standard adjustments
Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent bcbb36f commit da409e9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/Builder/CreateStatementTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ public function testBuildCreateTableSortedIndex()
664664

665665
public function testBuildCreateTableComplexIndexes()
666666
{
667+
// phpcs:disable Generic.Files.LineLength.TooLong
667668
$parser = new Parser(
668669
<<<'SQL'
669670
CREATE TABLE `page_rebuild_control` (
@@ -708,10 +709,12 @@ public function testBuildCreateTableComplexIndexes()
708709
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
709710
SQL
710711
);
712+
// phpcs:enable
711713

712714
/** @var CreateStatement $stmt */
713715
$stmt = $parser->statements[0];
714716

717+
// phpcs:disable Generic.Files.LineLength.TooLong
715718
$tableBody = <<<'SQL'
716719
(
717720
`proc_row_number` int DEFAULT NULL,
@@ -743,6 +746,7 @@ public function testBuildCreateTableComplexIndexes()
743746
KEY `updated_tz_ind` ((convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'GB')))
744747
)
745748
SQL;
749+
// phpcs:enable
746750

747751
$this->assertEquals(
748752
$tableBody,

tests/Components/KeyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ public function testParseKeyExpressionWithOptionsError()
241241
$component = Key::parse(
242242
$parser,
243243
$this->getTokensList(
244-
'KEY `updated_tz_ind2` (()convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\'))) COMMENT \'my comment\','
244+
'KEY `updated_tz_ind2` (()convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')))'
245+
. ' COMMENT \'my comment\','
245246
)
246247
);
247248
$this->assertEquals('KEY', $component->type);

0 commit comments

Comments
 (0)