@@ -205,7 +205,7 @@ |
||
205 | 205 | try { |
206 | 206 | $this->xmlProcessor->readUntilStopped(); |
207 | 207 | } catch (XMLProcessingException $exception) { |
208 | - throw new IOException("The {$this->sheetDataXMLFilePath} file cannot be read. [{$exception->getMessage()}]"); |
|
208 | + throw new IOException("the {$this->sheetDataXMLFilePath} file cannot be read. [{$exception->getMessage()}]"); |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | $this->rowDataBuffer = $this->currentlyProcessedRowData; |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | <Relationship Id="rIdCore" Type="http://schemas.openxmlformats.org/officedocument/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/> |
148 | 148 | <Relationship Id="rIdApp" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/> |
149 | 149 | </Relationships> |
150 | -EOD; |
|
150 | +eod; |
|
151 | 151 | |
152 | 152 | $this->createFileWithContents($this->relsFolder, self::RELS_FILE_NAME, $relsFileContents); |
153 | 153 | |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | <Application>$appName</Application> |
186 | 186 | <TotalTime>0</TotalTime> |
187 | 187 | </Properties> |
188 | -EOD; |
|
188 | +eod; |
|
189 | 189 | |
190 | 190 | $this->createFileWithContents($this->docPropsFolder, self::APP_XML_FILE_NAME, $appXmlFileContents); |
191 | 191 | |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | <dcterms:modified xsi:type="dcterms:W3CDTF">$createdDate</dcterms:modified> |
209 | 209 | <cp:revision>0</cp:revision> |
210 | 210 | </cp:coreProperties> |
211 | -EOD; |
|
211 | +eod; |
|
212 | 212 | |
213 | 213 | $this->createFileWithContents($this->docPropsFolder, self::CORE_XML_FILE_NAME, $coreXmlFileContents); |
214 | 214 | |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | <Default ContentType="application/xml" Extension="xml"/> |
271 | 271 | <Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/> |
272 | 272 | <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/> |
273 | -EOD; |
|
273 | +eod; |
|
274 | 274 | |
275 | 275 | /** @var Worksheet $worksheet */ |
276 | 276 | foreach ($worksheets as $worksheet) { |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | <Override ContentType="application/vnd.openxmlformats-package.core-properties+xml" PartName="/docProps/core.xml"/> |
284 | 284 | <Override ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" PartName="/docProps/app.xml"/> |
285 | 285 | </Types> |
286 | -EOD; |
|
286 | +eod; |
|
287 | 287 | |
288 | 288 | $this->createFileWithContents($this->rootFolder, self::CONTENT_TYPES_XML_FILE_NAME, $contentTypesXmlFileContents); |
289 | 289 | |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
303 | 303 | <workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"> |
304 | 304 | <sheets> |
305 | -EOD; |
|
305 | +eod; |
|
306 | 306 | |
307 | 307 | /** @var Worksheet $worksheet */ |
308 | 308 | foreach ($worksheets as $worksheet) { |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | $workbookXmlFileContents .= <<<'EOD' |
315 | 315 | </sheets> |
316 | 316 | </workbook> |
317 | -EOD; |
|
317 | +eod; |
|
318 | 318 | |
319 | 319 | $this->createFileWithContents($this->xlFolder, self::WORKBOOK_XML_FILE_NAME, $workbookXmlFileContents); |
320 | 320 | |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> |
335 | 335 | <Relationship Id="rIdStyles" Target="styles.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"/> |
336 | 336 | <Relationship Id="rIdSharedStrings" Target="sharedStrings.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings"/> |
337 | -EOD; |
|
337 | +eod; |
|
338 | 338 | |
339 | 339 | /** @var Worksheet $worksheet */ |
340 | 340 | foreach ($worksheets as $worksheet) { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | const SHEET_XML_FILE_HEADER = <<<'EOD' |
33 | 33 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
34 | 34 | <worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"> |
35 | -EOD; |
|
35 | +eod; |
|
36 | 36 | |
37 | 37 | /** @var bool Whether inline or shared strings should be used */ |
38 | 38 | protected $shouldUseInlineStrings; |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $content = <<<'EOD' |
47 | 47 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
48 | 48 | <styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"> |
49 | -EOD; |
|
49 | +eod; |
|
50 | 50 | |
51 | 51 | $content .= $this->getFontsSectionContent(); |
52 | 52 | $content .= $this->getFillsSectionContent(); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | $content .= <<<'EOD' |
59 | 59 | </styleSheet> |
60 | -EOD; |
|
60 | +eod; |
|
61 | 61 | |
62 | 62 | return $content; |
63 | 63 | } |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | <cellStyleXfs count="1"> |
189 | 189 | <xf borderId="0" fillId="0" fontId="0" numFmtId="0"/> |
190 | 190 | </cellStyleXfs> |
191 | -EOD; |
|
191 | +eod; |
|
192 | 192 | } |
193 | 193 | |
194 | 194 | /** |
@@ -240,6 +240,6 @@ discard block |
||
240 | 240 | <cellStyles count="1"> |
241 | 241 | <cellStyle builtinId="0" name="Normal" xfId="0"/> |
242 | 242 | </cellStyles> |
243 | -EOD; |
|
243 | +eod; |
|
244 | 244 | } |
245 | 245 | } |
@@ -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>'; |