Skip to content

Commit

Permalink
chore: Fix code style issues in MicrosoftContentProvider
Browse files Browse the repository at this point in the history
This fixes PHP CS errors from that files (just ran `composer cs:fix`)

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Jun 26, 2024
1 parent 6f0e64c commit cd2b871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Providers/ContentProviders/MicrosoftContentProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getContentForFile(File $file): string {
$service->elementMap = [
self::ELEMENT_RELATIONSHIPS => function (Reader $reader) {
$tree = $reader->parseInnerTree();
$results = ['headers'=>[],'footers'=>[]];
$results = ['headers' => [],'footers' => []];

foreach ($tree as $child) {
if ($child['attributes']['Type'] === 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer') {
Expand All @@ -82,7 +82,7 @@ public function getContentForFile(File $file): string {
$rels = $service->parse($xml);
} catch (ParseException $e) {
// log
$rels = ['headers'=>[],'footers'=>[]];
$rels = ['headers' => [],'footers' => []];
}

$content = '';
Expand Down

0 comments on commit cd2b871

Please sign in to comment.