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