Skip to content

Commit

Permalink
Add required CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Lanchester authored and PowerKiKi committed May 30, 2023
1 parent fda4498 commit 8e0285d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/PhpWordTests/Reader/Word2007/ElementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ public function testReadTitleStyle(): void
}

/**
* Test reading of nested table
* Test reading of nested table.
*/
public function testReadNestedTable()
public function testReadNestedTable(): void
{
$documentXml = '<w:tbl>
<w:tr>
Expand All @@ -299,14 +299,14 @@ public function testReadNestedTable()
</w:tr>
</w:tbl>';

$phpWord = $this->getDocumentFromString(array('document' => $documentXml));
$phpWord = $this->getDocumentFromString(['document' => $documentXml]);

$section = $phpWord->getSection(0);
$table = $section->getElement(0);
$rows = $table->getRows();
$cells = $rows[0]->getCells();
$nestedTable = $cells[0]->getElement(0);
$this->assertInstanceOf('PhpOffice\PhpWord\Element\Table', $nestedTable);
self::assertInstanceOf('PhpOffice\PhpWord\Element\Table', $nestedTable);
}

/**
Expand Down

0 comments on commit 8e0285d

Please sign in to comment.