@@ -132,8 +132,8 @@ discard block |
||
132 | 132 | $aMediaContentTypes = array(); |
133 | 133 | $mediaCount = $this->getParentWriter()->getDrawingHashTable()->count(); |
134 | 134 | for ($i = 0; $i < $mediaCount; ++$i) { |
135 | - $extension = ''; |
|
136 | - $mimeType = ''; |
|
135 | + $extension = ''; |
|
136 | + $mimeType = ''; |
|
137 | 137 | |
138 | 138 | if ($this->getParentWriter()->getDrawingHashTable()->getByIndex($i) instanceof \PHPExcel\Worksheet\Drawing) { |
139 | 139 | $extension = strtolower($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getExtension()); |
@@ -155,9 +155,9 @@ discard block |
||
155 | 155 | if ($pPHPExcel->hasRibbonBinObjects()) { |
156 | 156 | // Some additional objects in the ribbon ? |
157 | 157 | // we need to write "Extension" but not already write for media content |
158 | - $tabRibbonTypes=array_diff($pPHPExcel->getRibbonBinObjects('types'), array_keys($aMediaContentTypes)); |
|
158 | + $tabRibbonTypes = array_diff($pPHPExcel->getRibbonBinObjects('types'), array_keys($aMediaContentTypes)); |
|
159 | 159 | foreach ($tabRibbonTypes as $aRibbonType) { |
160 | - $mimeType='image/.'.$aRibbonType;//we wrote $mimeType like customUI Editor |
|
160 | + $mimeType = 'image/.' . $aRibbonType; //we wrote $mimeType like customUI Editor |
|
161 | 161 | $this->writeDefaultContentType($objWriter, $aRibbonType, $mimeType); |
162 | 162 | } |
163 | 163 | } |
@@ -860,7 +860,7 @@ |
||
860 | 860 | private function writeColourScheme($objWriter) |
861 | 861 | { |
862 | 862 | foreach (self::$colourScheme as $colourName => $colourValue) { |
863 | - $objWriter->startElement('a:'.$colourName); |
|
863 | + $objWriter->startElement('a:' . $colourName); |
|
864 | 864 | |
865 | 865 | $objWriter->startElement('a:srgbClr'); |
866 | 866 | $objWriter->writeAttribute('val', $colourValue); |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | $objWriter->startElement('sheetPr'); |
152 | 152 | //$objWriter->writeAttribute('codeName', $pSheet->getTitle()); |
153 | 153 | if ($pSheet->getParent()->hasMacros()) {//if the workbook have macros, we need to have codeName for the sheet |
154 | - if ($pSheet->hasCodeName()==false) { |
|
154 | + if ($pSheet->hasCodeName() == false) { |
|
155 | 155 | $pSheet->setCodeName($pSheet->getTitle()); |
156 | 156 | } |
157 | 157 | $objWriter->writeAttribute('codeName', $pSheet->getCodeName()); |
@@ -333,8 +333,8 @@ discard block |
||
333 | 333 | } |
334 | 334 | |
335 | 335 | // Set Zero Height row |
336 | - if ((string)$pSheet->getDefaultRowDimension()->getZeroHeight() == '1' || |
|
337 | - strtolower((string)$pSheet->getDefaultRowDimension()->getZeroHeight()) == 'true') { |
|
336 | + if ((string) $pSheet->getDefaultRowDimension()->getZeroHeight() == '1' || |
|
337 | + strtolower((string) $pSheet->getDefaultRowDimension()->getZeroHeight()) == 'true') { |
|
338 | 338 | $objWriter->writeAttribute('zeroHeight', '1'); |
339 | 339 | } |
340 | 340 | |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | $outlineLevelRow = $dimension->getOutlineLevel(); |
351 | 351 | } |
352 | 352 | } |
353 | - $objWriter->writeAttribute('outlineLevelRow', (int)$outlineLevelRow); |
|
353 | + $objWriter->writeAttribute('outlineLevelRow', (int) $outlineLevelRow); |
|
354 | 354 | |
355 | 355 | // Outline level - column |
356 | 356 | $outlineLevelCol = 0; |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | $outlineLevelCol = $dimension->getOutlineLevel(); |
360 | 360 | } |
361 | 361 | } |
362 | - $objWriter->writeAttribute('outlineLevelCol', (int)$outlineLevelCol); |
|
362 | + $objWriter->writeAttribute('outlineLevelCol', (int) $outlineLevelCol); |
|
363 | 363 | |
364 | 364 | $objWriter->endElement(); |
365 | 365 | } |
@@ -569,10 +569,10 @@ discard block |
||
569 | 569 | $objWriter->writeAttribute('operator', $dv->getOperator()); |
570 | 570 | } |
571 | 571 | |
572 | - $objWriter->writeAttribute('allowBlank', ($dv->getAllowBlank() ? '1' : '0')); |
|
573 | - $objWriter->writeAttribute('showDropDown', (!$dv->getShowDropDown() ? '1' : '0')); |
|
574 | - $objWriter->writeAttribute('showInputMessage', ($dv->getShowInputMessage() ? '1' : '0')); |
|
575 | - $objWriter->writeAttribute('showErrorMessage', ($dv->getShowErrorMessage() ? '1' : '0')); |
|
572 | + $objWriter->writeAttribute('allowBlank', ($dv->getAllowBlank() ? '1' : '0')); |
|
573 | + $objWriter->writeAttribute('showDropDown', (!$dv->getShowDropDown() ? '1' : '0')); |
|
574 | + $objWriter->writeAttribute('showInputMessage', ($dv->getShowInputMessage() ? '1' : '0')); |
|
575 | + $objWriter->writeAttribute('showErrorMessage', ($dv->getShowErrorMessage() ? '1' : '0')); |
|
576 | 576 | |
577 | 577 | if ($dv->getErrorTitle() !== '') { |
578 | 578 | $objWriter->writeAttribute('errorTitle', $dv->getErrorTitle()); |
@@ -710,7 +710,7 @@ discard block |
||
710 | 710 | // printOptions |
711 | 711 | $objWriter->startElement('printOptions'); |
712 | 712 | |
713 | - $objWriter->writeAttribute('gridLines', ($pSheet->getPrintGridlines() ? 'true': 'false')); |
|
713 | + $objWriter->writeAttribute('gridLines', ($pSheet->getPrintGridlines() ? 'true' : 'false')); |
|
714 | 714 | $objWriter->writeAttribute('gridLinesSet', 'true'); |
715 | 715 | |
716 | 716 | if ($pSheet->getPageSetup()->getHorizontalCentered()) { |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | // Top 10 Filter Rule |
804 | 804 | $objWriter->writeAttribute('val', $rule->getValue()); |
805 | 805 | $objWriter->writeAttribute('percent', (($rule->getOperator() === \PHPExcel\Worksheet\AutoFilter\Column\Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT) ? '1' : '0')); |
806 | - $objWriter->writeAttribute('top', (($rule->getGrouping() === \PHPExcel\Worksheet\AutoFilter\Column\Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP) ? '1': '0')); |
|
806 | + $objWriter->writeAttribute('top', (($rule->getGrouping() === \PHPExcel\Worksheet\AutoFilter\Column\Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP) ? '1' : '0')); |
|
807 | 807 | } else { |
808 | 808 | // Filter, DateGroupItem or CustomFilter |
809 | 809 | $objWriter->startElement($rule->getRuleType()); |
@@ -1082,8 +1082,7 @@ discard block |
||
1082 | 1082 | break; |
1083 | 1083 | case 'f': // Formula |
1084 | 1084 | $calculatedValue = ($this->getParentWriter()->getPreCalculateFormulas()) ? |
1085 | - $pCell->getCalculatedValue() : |
|
1086 | - $cellValue; |
|
1085 | + $pCell->getCalculatedValue() : $cellValue; |
|
1087 | 1086 | if (is_string($calculatedValue)) { |
1088 | 1087 | $objWriter->writeAttribute('t', 'str'); |
1089 | 1088 | } |
@@ -1095,7 +1094,7 @@ discard block |
||
1095 | 1094 | // Write data depending on its type |
1096 | 1095 | switch (strtolower($mappedType)) { |
1097 | 1096 | case 'inlinestr': // Inline string |
1098 | - if (! $cellValue instanceof \PHPExcel\RichText) { |
|
1097 | + if (!$cellValue instanceof \PHPExcel\RichText) { |
|
1099 | 1098 | $objWriter->writeElement('t', \PHPExcel\Shared\StringHelper::controlCharacterPHP2OOXML(htmlspecialchars($cellValue))); |
1100 | 1099 | } elseif ($cellValue instanceof \PHPExcel\RichText) { |
1101 | 1100 | $objWriter->startElement('is'); |
@@ -1105,7 +1104,7 @@ discard block |
||
1105 | 1104 | |
1106 | 1105 | break; |
1107 | 1106 | case 's': // String |
1108 | - if (! $cellValue instanceof \PHPExcel\RichText) { |
|
1107 | + if (!$cellValue instanceof \PHPExcel\RichText) { |
|
1109 | 1108 | if (isset($pFlippedStringTable[$cellValue])) { |
1110 | 1109 | $objWriter->writeElement('v', $pFlippedStringTable[$cellValue]); |
1111 | 1110 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | $fileHandle = parent::prepareForSave($pFilename); |
59 | 59 | |
60 | 60 | // Default PDF paper size |
61 | - $paperSize = 'LETTER'; // Letter (8.5 in. by 11 in.) |
|
61 | + $paperSize = 'LETTER'; // Letter (8.5 in. by 11 in.) |
|
62 | 62 | |
63 | 63 | // Check for paper size and page orientation |
64 | 64 | if (is_null($this->getSheetIndex())) { |
@@ -58,7 +58,7 @@ |
||
58 | 58 | * |
59 | 59 | * @var string |
60 | 60 | */ |
61 | - protected $_diskCachingDirectory = './'; |
|
61 | + protected $_diskCachingDirectory = './'; |
|
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Write charts in workbook? |
@@ -101,7 +101,7 @@ |
||
101 | 101 | /** |
102 | 102 | * Set Row Height |
103 | 103 | * |
104 | - * @param double $pValue |
|
104 | + * @param integer $pValue |
|
105 | 105 | * @return RowDimension |
106 | 106 | */ |
107 | 107 | public function setRowHeight($pValue = -1) |
@@ -32,7 +32,7 @@ |
||
32 | 32 | /** |
33 | 33 | * Write Thumbnails/thumbnail.png to PNG format |
34 | 34 | * |
35 | - * @param PHPExcel $pPHPExcel |
|
35 | + * @param \PHPExcel\Spreadsheet $pPHPExcel |
|
36 | 36 | * @return string XML Output |
37 | 37 | * @throws \PHPExcel\Writer\Exception |
38 | 38 | */ |
@@ -32,7 +32,7 @@ |
||
32 | 32 | /** |
33 | 33 | * Write Thumbnails/thumbnail.png to PNG format |
34 | 34 | * |
35 | - * @param PHPExcel $pPHPExcel |
|
35 | + * @param \PHPExcel\Spreadsheet $pPHPExcel |
|
36 | 36 | * @return string XML Output |
37 | 37 | * @throws \PHPExcel\Writer\Exception |
38 | 38 | */ |
@@ -32,7 +32,7 @@ |
||
32 | 32 | /** |
33 | 33 | * Write Thumbnails/thumbnail.png to PNG format |
34 | 34 | * |
35 | - * @param PHPExcel $pPHPExcel |
|
35 | + * @param \PHPExcel\Spreadsheet $pPHPExcel |
|
36 | 36 | * @return string XML Output |
37 | 37 | * @throws \PHPExcel\Writer\Exception |
38 | 38 | */ |