@@ -58,10 +58,10 @@ |
||
| 58 | 58 | { |
| 59 | 59 | $wrapper = $this; // PHP 5.3 fix |
| 60 | 60 | |
| 61 | - $this->mappings['scaleWithDocument'] = function ($value) use ($wrapper) { |
|
| 61 | + $this->mappings['scaleWithDocument'] = function($value) use ($wrapper) { |
|
| 62 | 62 | $wrapper->object->setScaleWithDocument($value); |
| 63 | 63 | }; |
| 64 | - $this->mappings['alignWithMargins'] = function ($value) use ($wrapper) { |
|
| 64 | + $this->mappings['alignWithMargins'] = function($value) use ($wrapper) { |
|
| 65 | 65 | $wrapper->object->setAlignWithMargins($value); |
| 66 | 66 | }; |
| 67 | 67 | } |
@@ -73,167 +73,167 @@ |
||
| 73 | 73 | $wrapper = $this; // PHP 5.3 fix |
| 74 | 74 | |
| 75 | 75 | $this->mappings['columnDimension']['__multi'] = true; |
| 76 | - $this->mappings['columnDimension']['__object'] = function ($key = 'default') use ($wrapper) { |
|
| 76 | + $this->mappings['columnDimension']['__object'] = function($key = 'default') use ($wrapper) { |
|
| 77 | 77 | return $key === 'default' ? $wrapper->object->getDefaultColumnDimension() : $wrapper->object->getColumnDimension($key); |
| 78 | 78 | }; |
| 79 | - $this->mappings['columnDimension']['autoSize'] = function ($key, $value) use ($wrapper) { |
|
| 79 | + $this->mappings['columnDimension']['autoSize'] = function($key, $value) use ($wrapper) { |
|
| 80 | 80 | $wrapper->mappings['columnDimension']['__object']($key)->setAutoSize($value); |
| 81 | 81 | }; |
| 82 | - $this->mappings['columnDimension']['collapsed'] = function ($key, $value) use ($wrapper) { |
|
| 82 | + $this->mappings['columnDimension']['collapsed'] = function($key, $value) use ($wrapper) { |
|
| 83 | 83 | $wrapper->mappings['columnDimension']['__object']($key)->setCollapsed($value); |
| 84 | 84 | }; |
| 85 | - $this->mappings['columnDimension']['columnIndex'] = function ($key, $value) use ($wrapper) { |
|
| 85 | + $this->mappings['columnDimension']['columnIndex'] = function($key, $value) use ($wrapper) { |
|
| 86 | 86 | $wrapper->mappings['columnDimension']['__object']($key)->setColumnIndex($value); |
| 87 | 87 | }; |
| 88 | - $this->mappings['columnDimension']['outlineLevel'] = function ($key, $value) use ($wrapper) { |
|
| 88 | + $this->mappings['columnDimension']['outlineLevel'] = function($key, $value) use ($wrapper) { |
|
| 89 | 89 | $wrapper->mappings['columnDimension']['__object']($key)->setOutlineLevel($value); |
| 90 | 90 | }; |
| 91 | - $this->mappings['columnDimension']['visible'] = function ($key, $value) use ($wrapper) { |
|
| 91 | + $this->mappings['columnDimension']['visible'] = function($key, $value) use ($wrapper) { |
|
| 92 | 92 | $wrapper->mappings['columnDimension']['__object']($key)->setVisible($value); |
| 93 | 93 | }; |
| 94 | - $this->mappings['columnDimension']['width'] = function ($key, $value) use ($wrapper) { |
|
| 94 | + $this->mappings['columnDimension']['width'] = function($key, $value) use ($wrapper) { |
|
| 95 | 95 | $wrapper->mappings['columnDimension']['__object']($key)->setWidth($value); |
| 96 | 96 | }; |
| 97 | - $this->mappings['columnDimension']['xfIndex'] = function ($key, $value) use ($wrapper) { |
|
| 97 | + $this->mappings['columnDimension']['xfIndex'] = function($key, $value) use ($wrapper) { |
|
| 98 | 98 | $wrapper->mappings['columnDimension']['__object']($key)->setXfIndex($value); |
| 99 | 99 | }; |
| 100 | - $this->mappings['pageMargins']['top'] = function ($value) use ($wrapper) { |
|
| 100 | + $this->mappings['pageMargins']['top'] = function($value) use ($wrapper) { |
|
| 101 | 101 | $wrapper->object->getPageMargins()->setTop($value); |
| 102 | 102 | }; |
| 103 | - $this->mappings['pageMargins']['bottom'] = function ($value) use ($wrapper) { |
|
| 103 | + $this->mappings['pageMargins']['bottom'] = function($value) use ($wrapper) { |
|
| 104 | 104 | $wrapper->object->getPageMargins()->setBottom($value); |
| 105 | 105 | }; |
| 106 | - $this->mappings['pageMargins']['left'] = function ($value) use ($wrapper) { |
|
| 106 | + $this->mappings['pageMargins']['left'] = function($value) use ($wrapper) { |
|
| 107 | 107 | $wrapper->object->getPageMargins()->setLeft($value); |
| 108 | 108 | }; |
| 109 | - $this->mappings['pageMargins']['right'] = function ($value) use ($wrapper) { |
|
| 109 | + $this->mappings['pageMargins']['right'] = function($value) use ($wrapper) { |
|
| 110 | 110 | $wrapper->object->getPageMargins()->setRight($value); |
| 111 | 111 | }; |
| 112 | - $this->mappings['pageMargins']['header'] = function ($value) use ($wrapper) { |
|
| 112 | + $this->mappings['pageMargins']['header'] = function($value) use ($wrapper) { |
|
| 113 | 113 | $wrapper->object->getPageMargins()->setHeader($value); |
| 114 | 114 | }; |
| 115 | - $this->mappings['pageMargins']['footer'] = function ($value) use ($wrapper) { |
|
| 115 | + $this->mappings['pageMargins']['footer'] = function($value) use ($wrapper) { |
|
| 116 | 116 | $wrapper->object->getPageMargins()->setFooter($value); |
| 117 | 117 | }; |
| 118 | - $this->mappings['pageSetup']['fitToHeight'] = function ($value) use ($wrapper) { |
|
| 118 | + $this->mappings['pageSetup']['fitToHeight'] = function($value) use ($wrapper) { |
|
| 119 | 119 | $wrapper->object->getPageSetup()->setFitToHeight($value); |
| 120 | 120 | }; |
| 121 | - $this->mappings['pageSetup']['fitToPage'] = function ($value) use ($wrapper) { |
|
| 121 | + $this->mappings['pageSetup']['fitToPage'] = function($value) use ($wrapper) { |
|
| 122 | 122 | $wrapper->object->getPageSetup()->setFitToPage($value); |
| 123 | 123 | }; |
| 124 | - $this->mappings['pageSetup']['fitToWidth'] = function ($value) use ($wrapper) { |
|
| 124 | + $this->mappings['pageSetup']['fitToWidth'] = function($value) use ($wrapper) { |
|
| 125 | 125 | $wrapper->object->getPageSetup()->setFitToWidth($value); |
| 126 | 126 | }; |
| 127 | - $this->mappings['pageSetup']['horizontalCentered'] = function ($value) use ($wrapper) { |
|
| 127 | + $this->mappings['pageSetup']['horizontalCentered'] = function($value) use ($wrapper) { |
|
| 128 | 128 | $wrapper->object->getPageSetup()->setHorizontalCentered($value); |
| 129 | 129 | }; |
| 130 | - $this->mappings['pageSetup']['orientation'] = function ($value) use ($wrapper) { |
|
| 130 | + $this->mappings['pageSetup']['orientation'] = function($value) use ($wrapper) { |
|
| 131 | 131 | $wrapper->object->getPageSetup()->setOrientation($value); |
| 132 | 132 | }; |
| 133 | - $this->mappings['pageSetup']['paperSize'] = function ($value) use ($wrapper) { |
|
| 133 | + $this->mappings['pageSetup']['paperSize'] = function($value) use ($wrapper) { |
|
| 134 | 134 | $wrapper->object->getPageSetup()->setPaperSize($value); |
| 135 | 135 | }; |
| 136 | - $this->mappings['pageSetup']['printArea'] = function ($value) use ($wrapper) { |
|
| 136 | + $this->mappings['pageSetup']['printArea'] = function($value) use ($wrapper) { |
|
| 137 | 137 | $wrapper->object->getPageSetup()->setPrintArea($value); |
| 138 | 138 | }; |
| 139 | - $this->mappings['pageSetup']['scale'] = function ($value) use ($wrapper) { |
|
| 139 | + $this->mappings['pageSetup']['scale'] = function($value) use ($wrapper) { |
|
| 140 | 140 | $wrapper->object->getPageSetup()->setScale($value); |
| 141 | 141 | }; |
| 142 | - $this->mappings['pageSetup']['verticalCentered'] = function ($value) use ($wrapper) { |
|
| 142 | + $this->mappings['pageSetup']['verticalCentered'] = function($value) use ($wrapper) { |
|
| 143 | 143 | $wrapper->object->getPageSetup()->setVerticalCentered($value); |
| 144 | 144 | }; |
| 145 | - $this->mappings['printGridlines'] = function ($value) use ($wrapper) { |
|
| 145 | + $this->mappings['printGridlines'] = function($value) use ($wrapper) { |
|
| 146 | 146 | $wrapper->object->setPrintGridlines($value); |
| 147 | 147 | }; |
| 148 | - $this->mappings['protection']['autoFilter'] = function ($value) use ($wrapper) { |
|
| 148 | + $this->mappings['protection']['autoFilter'] = function($value) use ($wrapper) { |
|
| 149 | 149 | $wrapper->object->getProtection()->setAutoFilter($value); |
| 150 | 150 | }; |
| 151 | - $this->mappings['protection']['deleteColumns'] = function ($value) use ($wrapper) { |
|
| 151 | + $this->mappings['protection']['deleteColumns'] = function($value) use ($wrapper) { |
|
| 152 | 152 | $wrapper->object->getProtection()->setDeleteColumns($value); |
| 153 | 153 | }; |
| 154 | - $this->mappings['protection']['deleteRows'] = function ($value) use ($wrapper) { |
|
| 154 | + $this->mappings['protection']['deleteRows'] = function($value) use ($wrapper) { |
|
| 155 | 155 | $wrapper->object->getProtection()->setDeleteRows($value); |
| 156 | 156 | }; |
| 157 | - $this->mappings['protection']['formatCells'] = function ($value) use ($wrapper) { |
|
| 157 | + $this->mappings['protection']['formatCells'] = function($value) use ($wrapper) { |
|
| 158 | 158 | $wrapper->object->getProtection()->setFormatCells($value); |
| 159 | 159 | }; |
| 160 | - $this->mappings['protection']['formatColumns'] = function ($value) use ($wrapper) { |
|
| 160 | + $this->mappings['protection']['formatColumns'] = function($value) use ($wrapper) { |
|
| 161 | 161 | $wrapper->object->getProtection()->setFormatColumns($value); |
| 162 | 162 | }; |
| 163 | - $this->mappings['protection']['formatRows'] = function ($value) use ($wrapper) { |
|
| 163 | + $this->mappings['protection']['formatRows'] = function($value) use ($wrapper) { |
|
| 164 | 164 | $wrapper->object->getProtection()->setFormatRows($value); |
| 165 | 165 | }; |
| 166 | - $this->mappings['protection']['insertColumns'] = function ($value) use ($wrapper) { |
|
| 166 | + $this->mappings['protection']['insertColumns'] = function($value) use ($wrapper) { |
|
| 167 | 167 | $wrapper->object->getProtection()->setInsertColumns($value); |
| 168 | 168 | }; |
| 169 | - $this->mappings['protection']['insertHyperlinks'] = function ($value) use ($wrapper) { |
|
| 169 | + $this->mappings['protection']['insertHyperlinks'] = function($value) use ($wrapper) { |
|
| 170 | 170 | $wrapper->object->getProtection()->setInsertHyperlinks($value); |
| 171 | 171 | }; |
| 172 | - $this->mappings['protection']['insertRows'] = function ($value) use ($wrapper) { |
|
| 172 | + $this->mappings['protection']['insertRows'] = function($value) use ($wrapper) { |
|
| 173 | 173 | $wrapper->object->getProtection()->setInsertRows($value); |
| 174 | 174 | }; |
| 175 | - $this->mappings['protection']['objects'] = function ($value) use ($wrapper) { |
|
| 175 | + $this->mappings['protection']['objects'] = function($value) use ($wrapper) { |
|
| 176 | 176 | $wrapper->object->getProtection()->setObjects($value); |
| 177 | 177 | }; |
| 178 | - $this->mappings['protection']['password'] = function ($value) use ($wrapper) { |
|
| 178 | + $this->mappings['protection']['password'] = function($value) use ($wrapper) { |
|
| 179 | 179 | $wrapper->object->getProtection()->setPassword($value); |
| 180 | 180 | }; |
| 181 | - $this->mappings['protection']['pivotTables'] = function ($value) use ($wrapper) { |
|
| 181 | + $this->mappings['protection']['pivotTables'] = function($value) use ($wrapper) { |
|
| 182 | 182 | $wrapper->object->getProtection()->setPivotTables($value); |
| 183 | 183 | }; |
| 184 | - $this->mappings['protection']['scenarios'] = function ($value) use ($wrapper) { |
|
| 184 | + $this->mappings['protection']['scenarios'] = function($value) use ($wrapper) { |
|
| 185 | 185 | $wrapper->object->getProtection()->setScenarios($value); |
| 186 | 186 | }; |
| 187 | - $this->mappings['protection']['selectLockedCells'] = function ($value) use ($wrapper) { |
|
| 187 | + $this->mappings['protection']['selectLockedCells'] = function($value) use ($wrapper) { |
|
| 188 | 188 | $wrapper->object->getProtection()->setSelectLockedCells($value); |
| 189 | 189 | }; |
| 190 | - $this->mappings['protection']['selectUnlockedCells'] = function ($value) use ($wrapper) { |
|
| 190 | + $this->mappings['protection']['selectUnlockedCells'] = function($value) use ($wrapper) { |
|
| 191 | 191 | $wrapper->object->getProtection()->setSelectUnlockedCells($value); |
| 192 | 192 | }; |
| 193 | - $this->mappings['protection']['sheet'] = function ($value) use ($wrapper) { |
|
| 193 | + $this->mappings['protection']['sheet'] = function($value) use ($wrapper) { |
|
| 194 | 194 | $wrapper->object->getProtection()->setSheet($value); |
| 195 | 195 | }; |
| 196 | - $this->mappings['protection']['sort'] = function ($value) use ($wrapper) { |
|
| 196 | + $this->mappings['protection']['sort'] = function($value) use ($wrapper) { |
|
| 197 | 197 | $wrapper->object->getProtection()->setSort($value); |
| 198 | 198 | }; |
| 199 | - $this->mappings['rightToLeft'] = function ($value) use ($wrapper) { |
|
| 199 | + $this->mappings['rightToLeft'] = function($value) use ($wrapper) { |
|
| 200 | 200 | $wrapper->object->setRightToLeft($value); |
| 201 | 201 | }; |
| 202 | 202 | $this->mappings['rowDimension']['__multi'] = true; |
| 203 | - $this->mappings['rowDimension']['__object'] = function ($key) use ($wrapper) { |
|
| 203 | + $this->mappings['rowDimension']['__object'] = function($key) use ($wrapper) { |
|
| 204 | 204 | return $key === 'default' ? $wrapper->object->getDefaultRowDimension() : $wrapper->object->getRowDimension($key); |
| 205 | 205 | }; |
| 206 | - $this->mappings['rowDimension']['collapsed'] = function ($key, $value) use ($wrapper) { |
|
| 206 | + $this->mappings['rowDimension']['collapsed'] = function($key, $value) use ($wrapper) { |
|
| 207 | 207 | $wrapper->mappings['rowDimension']['__object']($key)->setCollapsed($value); |
| 208 | 208 | }; |
| 209 | - $this->mappings['rowDimension']['outlineLevel'] = function ($key, $value) use ($wrapper) { |
|
| 209 | + $this->mappings['rowDimension']['outlineLevel'] = function($key, $value) use ($wrapper) { |
|
| 210 | 210 | $wrapper->mappings['rowDimension']['__object']($key)->setOutlineLevel($value); |
| 211 | 211 | }; |
| 212 | - $this->mappings['rowDimension']['rowHeight'] = function ($key, $value) use ($wrapper) { |
|
| 212 | + $this->mappings['rowDimension']['rowHeight'] = function($key, $value) use ($wrapper) { |
|
| 213 | 213 | $wrapper->mappings['rowDimension']['__object']($key)->setRowHeight($value); |
| 214 | 214 | }; |
| 215 | - $this->mappings['rowDimension']['rowIndex'] = function ($key, $value) use ($wrapper) { |
|
| 215 | + $this->mappings['rowDimension']['rowIndex'] = function($key, $value) use ($wrapper) { |
|
| 216 | 216 | $wrapper->mappings['rowDimension']['__object']($key)->setRowIndex($value); |
| 217 | 217 | }; |
| 218 | - $this->mappings['rowDimension']['visible'] = function ($key, $value) use ($wrapper) { |
|
| 218 | + $this->mappings['rowDimension']['visible'] = function($key, $value) use ($wrapper) { |
|
| 219 | 219 | $wrapper->mappings['rowDimension']['__object']($key)->setVisible($value); |
| 220 | 220 | }; |
| 221 | - $this->mappings['rowDimension']['xfIndex'] = function ($key, $value) use ($wrapper) { |
|
| 221 | + $this->mappings['rowDimension']['xfIndex'] = function($key, $value) use ($wrapper) { |
|
| 222 | 222 | $wrapper->mappings['rowDimension']['__object']($key)->setXfIndex($value); |
| 223 | 223 | }; |
| 224 | - $this->mappings['rowDimension']['zeroHeight'] = function ($key, $value) use ($wrapper) { |
|
| 224 | + $this->mappings['rowDimension']['zeroHeight'] = function($key, $value) use ($wrapper) { |
|
| 225 | 225 | $wrapper->mappings['rowDimension']['__object']($key)->setZeroHeight($value); |
| 226 | 226 | }; |
| 227 | - $this->mappings['sheetState'] = function ($value) use ($wrapper) { |
|
| 227 | + $this->mappings['sheetState'] = function($value) use ($wrapper) { |
|
| 228 | 228 | $wrapper->object->setSheetState($value); |
| 229 | 229 | }; |
| 230 | - $this->mappings['showGridlines'] = function ($value) use ($wrapper) { |
|
| 230 | + $this->mappings['showGridlines'] = function($value) use ($wrapper) { |
|
| 231 | 231 | $wrapper->object->setShowGridlines($value); |
| 232 | 232 | }; |
| 233 | - $this->mappings['tabColor'] = function ($value) use ($wrapper) { |
|
| 233 | + $this->mappings['tabColor'] = function($value) use ($wrapper) { |
|
| 234 | 234 | $wrapper->object->getTabColor()->setRGB($value); |
| 235 | 235 | }; |
| 236 | - $this->mappings['zoomScale'] = function ($value) use ($wrapper) { |
|
| 236 | + $this->mappings['zoomScale'] = function($value) use ($wrapper) { |
|
| 237 | 237 | $wrapper->object->getSheetView()->setZoomScale($value); |
| 238 | 238 | }; |
| 239 | 239 | } |