Skip to content

Commit 524c08b

Browse files
committed
running composer fix
1 parent 94b74c2 commit 524c08b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/PhpWord/TemplateProcessor.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818

1919
namespace PhpOffice\PhpWord;
2020

21-
use PhpOffice\PhpWord\Shared\ZipArchive;
22-
use PhpOffice\PhpWord\Shared\XMLWriter;
23-
use PhpOffice\PhpWord\Shared\Text;
24-
use PhpOffice\PhpWord\Exception\Exception;
25-
use PhpOffice\PhpWord\Exception\CreateTemporaryFileException;
26-
use PhpOffice\PhpWord\Exception\CopyFileException;
27-
use PhpOffice\PhpWord\Escaper\Xml;
2821
use PhpOffice\PhpWord\Escaper\RegExp;
22+
use PhpOffice\PhpWord\Escaper\Xml;
23+
use PhpOffice\PhpWord\Exception\CopyFileException;
24+
use PhpOffice\PhpWord\Exception\CreateTemporaryFileException;
25+
use PhpOffice\PhpWord\Exception\Exception;
26+
use PhpOffice\PhpWord\Shared\Text;
27+
use PhpOffice\PhpWord\Shared\XMLWriter;
28+
use PhpOffice\PhpWord\Shared\ZipArchive;
2929

3030
class TemplateProcessor
3131
{
@@ -662,7 +662,7 @@ public function setImageValue($search, $replace, $limit = self::MAXIMUM_REPLACEM
662662
if (preg_match('/(<[^<]+>)([^<]*)(' . preg_quote($varNameWithArgsFixed) . ')([^>]*)(<[^>]+>)/Uu', $partContent, $matches)) {
663663
$wholeTag = $matches[0];
664664
array_shift($matches);
665-
list($openTag, $prefix,, $postfix, $closeTag) = $matches;
665+
list($openTag, $prefix, , $postfix, $closeTag) = $matches;
666666
$replaceXml = $openTag . $prefix . $closeTag . $xmlImage . $openTag . $postfix . $closeTag;
667667
// replace on each iteration, because in one tag we can have 2+ inline variables => before proceed next variable we need to change $partContent
668668
$partContent = $this->setValueForPart($wholeTag, $replaceXml, $partContent, $limit);
@@ -1074,6 +1074,7 @@ protected function getNextRelationsIndex($documentPartName)
10741074
while (strpos($this->tempDocumentRelations[$documentPartName], 'Id="rId' . $candidate . '"') !== false) {
10751075
$candidate++;
10761076
}
1077+
10771078
return $candidate;
10781079
}
10791080

0 commit comments

Comments
 (0)