Skip to content

Commit d54cc6e

Browse files
author
Javier Garcia
committed
fix lint
1 parent 58c6c52 commit d54cc6e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

samples/resources/Sample_30_ReadHTML.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@ <h1>Adding element via HTML</h1>
1111
<ul><li>Item 1</li><li>Item 2</li><ul><li>Item 2.1</li><li>Item 2.1</li></ul></ul>
1212
<p>Ordered (numbered) list:</p>
1313
<ol><li>Item 1</li><li>Item 2</li></ol>
14+
15+
16+
<p style="line-height:2">Double height</p>
17+
18+
<h2>Includes images</h2>
19+
<img src="https://phpword.readthedocs.io/en/latest/_images/phpword.png" alt=""/>
1420
</body>
1521
</html>

tests/PhpWord/Shared/HtmlTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,10 @@ public function testParseRemoteLocalImage()
485485
{
486486
$src = 'https://fakedomain.io/images/firefox.png';
487487
$localPath = __DIR__ . '/../_files/images/';
488-
$options= [
488+
$options= array(
489489
'IMG_SRC_SEARCH'=> 'https://fakedomain.io/images/',
490490
'IMG_SRC_REPLACE'=> $localPath
491-
];
491+
);
492492

493493
$phpWord = new \PhpOffice\PhpWord\PhpWord();
494494
$section = $phpWord->addSection();

0 commit comments

Comments
 (0)