@@ -92,8 +92,7 @@ discard block |
||
92 | 92 | public function getFillIdForStyleId($styleId) |
93 | 93 | { |
94 | 94 | return (isset($this->styleIdToFillMappingTable[$styleId])) ? |
95 | - $this->styleIdToFillMappingTable[$styleId] : |
|
96 | - null; |
|
95 | + $this->styleIdToFillMappingTable[$styleId] : null; |
|
97 | 96 | } |
98 | 97 | |
99 | 98 | /** |
@@ -132,8 +131,7 @@ discard block |
||
132 | 131 | public function getBorderIdForStyleId($styleId) |
133 | 132 | { |
134 | 133 | return (isset($this->styleIdToBorderMappingTable[$styleId])) ? |
135 | - $this->styleIdToBorderMappingTable[$styleId] : |
|
136 | - null; |
|
134 | + $this->styleIdToBorderMappingTable[$styleId] : null; |
|
137 | 135 | } |
138 | 136 | |
139 | 137 | /** |
@@ -16,7 +16,7 @@ |
||
16 | 16 | const SHARED_STRINGS_XML_FILE_FIRST_PART_HEADER = <<<'EOD' |
17 | 17 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
18 | 18 | <sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" |
19 | -EOD; |
|
19 | +eod; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * This number must be really big so that the no generated file will have more strings than that. |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/> |
126 | 126 | <manifest:file-entry manifest:full-path="meta.xml" manifest:media-type="text/xml"/> |
127 | 127 | </manifest:manifest> |
128 | -EOD; |
|
128 | +eod; |
|
129 | 129 | |
130 | 130 | $this->createFileWithContents($this->metaInfFolder, self::MANIFEST_XML_FILE_NAME, $manifestXmlFileContents); |
131 | 131 | |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | <dc:date>$createdDate</dc:date> |
167 | 167 | </office:meta> |
168 | 168 | </office:document-meta> |
169 | -EOD; |
|
169 | +eod; |
|
170 | 170 | |
171 | 171 | $this->createFileWithContents($this->rootFolder, self::META_XML_FILE_NAME, $metaXmlFileContents); |
172 | 172 | |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | $contentXmlFileContents = <<<'EOD' |
200 | 200 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
201 | 201 | <office:document-content office:version="1.2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:msoxl="http://schemas.microsoft.com/office/excel/formula" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:xlink="http://www.w3.org/1999/xlink"> |
202 | -EOD; |
|
202 | +eod; |
|
203 | 203 | |
204 | 204 | $contentXmlFileContents .= $styleManager->getContentXmlFontFaceSectionContent(); |
205 | 205 | $contentXmlFileContents .= $styleManager->getContentXmlAutomaticStylesSectionContent(count($worksheets)); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $content = <<<'EOD' |
26 | 26 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
27 | 27 | <office:document-styles office:version="1.2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:msoxl="http://schemas.microsoft.com/office/excel/formula" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:xlink="http://www.w3.org/1999/xlink"> |
28 | -EOD; |
|
28 | +eod; |
|
29 | 29 | |
30 | 30 | $content .= $this->getFontFaceSectionContent(); |
31 | 31 | $content .= $this->getStylesSectionContent(); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | $content .= <<<'EOD' |
36 | 36 | </office:document-styles> |
37 | -EOD; |
|
37 | +eod; |
|
38 | 38 | |
39 | 39 | return $content; |
40 | 40 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | style:font-name="{$defaultStyle->getFontName()}" style:font-name-asian="{$defaultStyle->getFontName()}" style:font-name-complex="{$defaultStyle->getFontName()}"/> |
77 | 77 | </style:style> |
78 | 78 | </office:styles> |
79 | -EOD; |
|
79 | +eod; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | <style:header-style/> |
97 | 97 | <style:footer-style/> |
98 | 98 | </style:page-layout> |
99 | -EOD; |
|
99 | +eod; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | $content .= '</office:automatic-styles>'; |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | <style:footer/> |
123 | 123 | <style:footer-left style:display="false"/> |
124 | 124 | </style:master-page> |
125 | -EOD; |
|
125 | +eod; |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | $content .= '</office:master-styles>'; |
@@ -167,14 +167,14 @@ discard block |
||
167 | 167 | <style:style style:family="table-row" style:name="ro1"> |
168 | 168 | <style:table-row-properties fo:break-before="auto" style:row-height="15pt" style:use-optimal-row-height="true"/> |
169 | 169 | </style:style> |
170 | -EOD; |
|
170 | +eod; |
|
171 | 171 | |
172 | 172 | for ($i = 1; $i <= $numWorksheets; $i++) { |
173 | 173 | $content .= <<<EOD |
174 | 174 | <style:style style:family="table" style:master-page-name="mp$i" style:name="ta$i"> |
175 | 175 | <style:table-properties style:writing-mode="lr-tb" table:display="true"/> |
176 | 176 | </style:style> |
177 | -EOD; |
|
177 | +eod; |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | $content .= '</office:automatic-styles>'; |