rename variable to comply with rules

This commit is contained in:
troosan 2018-11-16 23:00:23 +01:00 committed by GitHub
parent 9f28ece4e9
commit c51b6febc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -513,9 +513,9 @@ class TemplateProcessor
$pattern = '~PartName="\/(word\/document.*?\.xml)" ContentType="application\/vnd\.openxmlformats-officedocument\.wordprocessingml\.document\.main\+xml"~';
preg_match($pattern, $contentTypes, $m);
preg_match($pattern, $contentTypes, $matches);
return (array_key_exists(1, $m) ? $m[1] : 'word/document.xml');
return (array_key_exists(1, $matches) ? $matches[1] : 'word/document.xml');
}
/**