Skip to content

Commit

Permalink
Try to Catch Up
Browse files Browse the repository at this point in the history
  • Loading branch information
oleibman committed Jan 10, 2025
1 parent 1bcee8e commit 8e6726c
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"phpmd/phpmd": "^2.13",
"phpstan/phpstan": "^0.12.88 || ^1.0.0",
"phpstan/phpstan-phpunit": "^1.0 || ^2.0",
"phpunit/phpunit": ">=7.0",
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0 || ^10.0",
"symfony/process": "^4.4 || ^5.0",
"tecnickcom/tcpdf": "^6.5"
},
Expand Down
4 changes: 2 additions & 2 deletions src/PhpWord/Shared/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ protected static function parseChildNodes($node, $element, $styles, $data): void
* @param AbstractContainer $element
* @param array &$styles
*
* @return \PhpOffice\PhpWord\Element\PageBreak|\PhpOffice\PhpWord\Element\TextRun
* @return \PhpOffice\PhpWord\Element\PageBreak|TextRun
*/
protected static function parseParagraph($node, $element, &$styles)
{
Expand Down Expand Up @@ -590,7 +590,7 @@ protected static function parseRow($node, $element, &$styles)
* @param Table $element
* @param array &$styles
*
* @return \PhpOffice\PhpWord\Element\Cell|\PhpOffice\PhpWord\Element\TextRun $element
* @return \PhpOffice\PhpWord\Element\Cell|TextRun $element
*/
protected static function parseCell($node, $element, &$styles)
{
Expand Down
1 change: 1 addition & 0 deletions src/PhpWord/SimpleType/TextDirection.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
Expand Down
1 change: 1 addition & 0 deletions tests/PhpWordTests/Reader/Html/CharsetTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
Expand Down
1 change: 1 addition & 0 deletions tests/PhpWordTests/Reader/Word2007/StyleTableTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
Expand Down
1 change: 1 addition & 0 deletions tests/PhpWordTests/SettingsRtlTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
Expand Down
1 change: 1 addition & 0 deletions tests/PhpWordTests/Shared/Html2402Test.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
Expand Down
1 change: 1 addition & 0 deletions tests/PhpWordTests/Shared/HtmlFullTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
Expand Down
1 change: 1 addition & 0 deletions tests/PhpWordTests/Shared/HtmlHeadingsTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
Expand Down
5 changes: 3 additions & 2 deletions tests/PhpWordTests/Shared/HtmlRtlTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
Expand All @@ -23,15 +24,15 @@
use PhpOffice\PhpWord\Shared\Html;
use PhpOffice\PhpWord\Style\Font;
use PhpOffice\PhpWord\Style\Paragraph;
use PhpOffice\PhpWordTests\AbstractWebServerEmbeddedTest;
use PhpOffice\PhpWordTests\AbstractWebServerEmbedded;
use PhpOffice\PhpWordTests\TestHelperDOCX;

/**
* Test class for PhpOffice\PhpWord\Shared\Html.
*
* @coversDefaultClass \PhpOffice\PhpWord\Shared\Html
*/
class HtmlRtlTest extends AbstractWebServerEmbeddedTest
class HtmlRtlTest extends AbstractWebServerEmbedded
{
/**
* Tear down after each test.
Expand Down
8 changes: 4 additions & 4 deletions tests/PhpWordTests/Shared/HtmlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public function testParseTableAndCellWidth(): void
{
$phpWord = new PhpWord();
$section = $phpWord->addSection([
'orientation' => \PhpOffice\PhpWord\Style\Section::ORIENTATION_LANDSCAPE,
'orientation' => Style\Section::ORIENTATION_LANDSCAPE,
]);

// borders & backgrounds are here just for better visual comparison
Expand Down Expand Up @@ -548,7 +548,7 @@ public function testParseTableRowHeight(): void
{
$phpWord = new PhpWord();
$section = $phpWord->addSection([
'orientation' => \PhpOffice\PhpWord\Style\Section::ORIENTATION_LANDSCAPE,
'orientation' => Style\Section::ORIENTATION_LANDSCAPE,
]);

$html = <<<HTML
Expand Down Expand Up @@ -629,7 +629,7 @@ public function testParseTableCellspacingRowBgColor(): void
{
$phpWord = new PhpWord();
$section = $phpWord->addSection([
'orientation' => \PhpOffice\PhpWord\Style\Section::ORIENTATION_LANDSCAPE,
'orientation' => Style\Section::ORIENTATION_LANDSCAPE,
]);

// borders & backgrounds are here just for better visual comparison
Expand Down Expand Up @@ -670,7 +670,7 @@ public function testParseTableStyleAttributeInlineStyle(): void
{
$phpWord = new PhpWord();
$section = $phpWord->addSection([
'orientation' => \PhpOffice\PhpWord\Style\Section::ORIENTATION_LANDSCAPE,
'orientation' => Style\Section::ORIENTATION_LANDSCAPE,
]);

$html = '<table style="background-color:red;width:100%;" bgColor="lightgreen" width="50%">
Expand Down
1 change: 1 addition & 0 deletions tests/PhpWordTests/TemplateProcessorSectionTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
Expand Down
1 change: 1 addition & 0 deletions tests/PhpWordTests/Writer/RTF/RichTextTitleTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
Expand Down

0 comments on commit 8e6726c

Please sign in to comment.