@@ -35,7 +35,8 @@ |
||
35 | 35 | protected function parseBody() |
36 | 36 | { |
37 | 37 | $tokenParser = $this; // PHP 5.3 fix |
38 | - $body = $this->parser->subparse(function (Twig_Token $token) use ($tokenParser) { |
|
38 | + $body = $this->parser->subparse(function (Twig_Token $token) use ($tokenParser) |
|
39 | + { |
|
39 | 40 | return $token->test('end' . $tokenParser->getTag()); |
40 | 41 | }, |
41 | 42 | true); |
@@ -51,55 +51,72 @@ |
||
51 | 51 | { |
52 | 52 | $wrapper = $this; // PHP 5.3 fix |
53 | 53 | |
54 | - $this->mappings['break'] = function ($value) use ($wrapper) { |
|
54 | + $this->mappings['break'] = function ($value) use ($wrapper) |
|
55 | + { |
|
55 | 56 | $wrapper->sheetWrapper->getObject()->setBreak($wrapper->object->getCoordinate(), $value); |
56 | 57 | }; |
57 | - $this->mappings['dataType'] = function ($value) use ($wrapper) { |
|
58 | + $this->mappings['dataType'] = function ($value) use ($wrapper) |
|
59 | + { |
|
58 | 60 | $wrapper->object->setDataType($value); |
59 | 61 | }; |
60 | - $this->mappings['dataValidation']['allowBlank'] = function ($value) use ($wrapper) { |
|
62 | + $this->mappings['dataValidation']['allowBlank'] = function ($value) use ($wrapper) |
|
63 | + { |
|
61 | 64 | $wrapper->object->getDataValidation()->setAllowBlank($value); |
62 | 65 | }; |
63 | - $this->mappings['dataValidation']['error'] = function ($value) use ($wrapper) { |
|
66 | + $this->mappings['dataValidation']['error'] = function ($value) use ($wrapper) |
|
67 | + { |
|
64 | 68 | $wrapper->object->getDataValidation()->setError($value); |
65 | 69 | }; |
66 | - $this->mappings['dataValidation']['errorStyle'] = function ($value) use ($wrapper) { |
|
70 | + $this->mappings['dataValidation']['errorStyle'] = function ($value) use ($wrapper) |
|
71 | + { |
|
67 | 72 | $wrapper->object->getDataValidation()->setErrorStyle($value); |
68 | 73 | }; |
69 | - $this->mappings['dataValidation']['errorTitle'] = function ($value) use ($wrapper) { |
|
74 | + $this->mappings['dataValidation']['errorTitle'] = function ($value) use ($wrapper) |
|
75 | + { |
|
70 | 76 | $wrapper->object->getDataValidation()->setErrorTitle($value); |
71 | 77 | }; |
72 | - $this->mappings['dataValidation']['formula1'] = function ($value) use ($wrapper) { |
|
78 | + $this->mappings['dataValidation']['formula1'] = function ($value) use ($wrapper) |
|
79 | + { |
|
73 | 80 | $wrapper->object->getDataValidation()->setFormula1($value); |
74 | 81 | }; |
75 | - $this->mappings['dataValidation']['formula2'] = function ($value) use ($wrapper) { |
|
82 | + $this->mappings['dataValidation']['formula2'] = function ($value) use ($wrapper) |
|
83 | + { |
|
76 | 84 | $wrapper->object->getDataValidation()->setFormula2($value); |
77 | 85 | }; |
78 | - $this->mappings['dataValidation']['operator'] = function ($value) use ($wrapper) { |
|
86 | + $this->mappings['dataValidation']['operator'] = function ($value) use ($wrapper) |
|
87 | + { |
|
79 | 88 | $wrapper->object->getDataValidation()->setOperator($value); |
80 | 89 | }; |
81 | - $this->mappings['dataValidation']['prompt'] = function ($value) use ($wrapper) { |
|
90 | + $this->mappings['dataValidation']['prompt'] = function ($value) use ($wrapper) |
|
91 | + { |
|
82 | 92 | $wrapper->object->getDataValidation()->setPrompt($value); |
83 | 93 | }; |
84 | - $this->mappings['dataValidation']['promptTitle'] = function ($value) use ($wrapper) { |
|
94 | + $this->mappings['dataValidation']['promptTitle'] = function ($value) use ($wrapper) |
|
95 | + { |
|
85 | 96 | $wrapper->object->getDataValidation()->setPromptTitle($value); |
86 | 97 | }; |
87 | - $this->mappings['dataValidation']['showDropDown'] = function ($value) use ($wrapper) { |
|
98 | + $this->mappings['dataValidation']['showDropDown'] = function ($value) use ($wrapper) |
|
99 | + { |
|
88 | 100 | $wrapper->object->getDataValidation()->setShowDropDown($value); |
89 | 101 | }; |
90 | - $this->mappings['dataValidation']['showErrorMessage'] = function ($value) use ($wrapper) { |
|
102 | + $this->mappings['dataValidation']['showErrorMessage'] = function ($value) use ($wrapper) |
|
103 | + { |
|
91 | 104 | $wrapper->object->getDataValidation()->setShowErrorMessage($value); |
92 | 105 | }; |
93 | - $this->mappings['dataValidation']['showInputMessage'] = function ($value) use ($wrapper) { |
|
106 | + $this->mappings['dataValidation']['showInputMessage'] = function ($value) use ($wrapper) |
|
107 | + { |
|
94 | 108 | $wrapper->object->getDataValidation()->setShowInputMessage($value); |
95 | 109 | }; |
96 | - $this->mappings['dataValidation']['type'] = function ($value) use ($wrapper) { |
|
110 | + $this->mappings['dataValidation']['type'] = function ($value) use ($wrapper) |
|
111 | + { |
|
97 | 112 | $wrapper->object->getDataValidation()->setType($value); |
98 | 113 | }; |
99 | - $this->mappings['style'] = function ($value) use ($wrapper) { |
|
114 | + $this->mappings['style'] = function ($value) use ($wrapper) |
|
115 | + { |
|
100 | 116 | $wrapper->sheetWrapper->getObject()->getStyle($wrapper->object->getCoordinate())->applyFromArray($value); |
101 | 117 | }; |
102 | - $this->mappings['url'] = function ($value) use ($wrapper) { |
|
118 | + $this->mappings['url'] = function ($value) use ($wrapper) |
|
119 | + { |
|
103 | 120 | $wrapper->object->getHyperlink()->setUrl($value); |
104 | 121 | }; |
105 | 122 | } |
@@ -48,58 +48,76 @@ |
||
48 | 48 | { |
49 | 49 | $wrapper = $this; // PHP 5.3 fix |
50 | 50 | |
51 | - $this->mappings['category'] = function ($value) use ($wrapper) { |
|
51 | + $this->mappings['category'] = function ($value) use ($wrapper) |
|
52 | + { |
|
52 | 53 | $wrapper->object->getProperties()->setCategory($value); |
53 | 54 | }; |
54 | - $this->mappings['company'] = function ($value) use ($wrapper) { |
|
55 | + $this->mappings['company'] = function ($value) use ($wrapper) |
|
56 | + { |
|
55 | 57 | $wrapper->object->getProperties()->setCompany($value); |
56 | 58 | }; |
57 | - $this->mappings['created'] = function ($value) use ($wrapper) { |
|
59 | + $this->mappings['created'] = function ($value) use ($wrapper) |
|
60 | + { |
|
58 | 61 | $wrapper->object->getProperties()->setCreated($value); |
59 | 62 | }; |
60 | - $this->mappings['creator'] = function ($value) use ($wrapper) { |
|
63 | + $this->mappings['creator'] = function ($value) use ($wrapper) |
|
64 | + { |
|
61 | 65 | $wrapper->object->getProperties()->setCreator($value); |
62 | 66 | }; |
63 | - $this->mappings['defaultStyle'] = function ($value) use ($wrapper) { |
|
67 | + $this->mappings['defaultStyle'] = function ($value) use ($wrapper) |
|
68 | + { |
|
64 | 69 | $wrapper->object->getDefaultStyle()->applyFromArray($value); |
65 | 70 | }; |
66 | - $this->mappings['description'] = function ($value) use ($wrapper) { |
|
71 | + $this->mappings['description'] = function ($value) use ($wrapper) |
|
72 | + { |
|
67 | 73 | $wrapper->object->getProperties()->setDescription($value); |
68 | 74 | }; |
69 | - $this->mappings['format'] = function ($value) use ($wrapper) { |
|
75 | + $this->mappings['format'] = function ($value) use ($wrapper) |
|
76 | + { |
|
70 | 77 | $wrapper->attributes['format'] = $value; |
71 | 78 | }; |
72 | - $this->mappings['keywords'] = function ($value) use ($wrapper) { |
|
79 | + $this->mappings['keywords'] = function ($value) use ($wrapper) |
|
80 | + { |
|
73 | 81 | $wrapper->object->getProperties()->setKeywords($value); |
74 | 82 | }; |
75 | - $this->mappings['lastModifiedBy'] = function ($value) use ($wrapper) { |
|
83 | + $this->mappings['lastModifiedBy'] = function ($value) use ($wrapper) |
|
84 | + { |
|
76 | 85 | $wrapper->object->getProperties()->setLastModifiedBy($value); |
77 | 86 | }; |
78 | - $this->mappings['manager'] = function ($value) use ($wrapper) { |
|
87 | + $this->mappings['manager'] = function ($value) use ($wrapper) |
|
88 | + { |
|
79 | 89 | $wrapper->object->getProperties()->setManager($value); |
80 | 90 | }; |
81 | - $this->mappings['modified'] = function ($value) use ($wrapper) { |
|
91 | + $this->mappings['modified'] = function ($value) use ($wrapper) |
|
92 | + { |
|
82 | 93 | $wrapper->object->getProperties()->setModified($value); |
83 | 94 | }; |
84 | - $this->mappings['security']['lockRevision'] = function ($value) use ($wrapper) { |
|
95 | + $this->mappings['security']['lockRevision'] = function ($value) use ($wrapper) |
|
96 | + { |
|
85 | 97 | $wrapper->object->getSecurity()->setLockRevision($value); |
86 | 98 | }; |
87 | - $this->mappings['security']['lockStructure'] = function ($value) use ($wrapper) { |
|
99 | + $this->mappings['security']['lockStructure'] = function ($value) use ($wrapper) |
|
100 | + { |
|
88 | 101 | $wrapper->object->getSecurity()->setLockStructure($value); |
89 | 102 | }; |
90 | - $this->mappings['security']['lockWindows'] = function ($value) use ($wrapper) { |
|
103 | + $this->mappings['security']['lockWindows'] = function ($value) use ($wrapper) |
|
104 | + { |
|
91 | 105 | $wrapper->object->getSecurity()->setLockWindows($value); |
92 | 106 | }; |
93 | - $this->mappings['security']['revisionsPassword'] = function ($value) use ($wrapper) { |
|
107 | + $this->mappings['security']['revisionsPassword'] = function ($value) use ($wrapper) |
|
108 | + { |
|
94 | 109 | $wrapper->object->getSecurity()->setRevisionsPassword($value); |
95 | 110 | }; |
96 | - $this->mappings['security']['workbookPassword'] = function ($value) use ($wrapper) { |
|
111 | + $this->mappings['security']['workbookPassword'] = function ($value) use ($wrapper) |
|
112 | + { |
|
97 | 113 | $wrapper->object->getSecurity()->setWorkbookPassword($value); |
98 | 114 | }; |
99 | - $this->mappings['subject'] = function ($value) use ($wrapper) { |
|
115 | + $this->mappings['subject'] = function ($value) use ($wrapper) |
|
116 | + { |
|
100 | 117 | $wrapper->object->getProperties()->setSubject($value); |
101 | 118 | }; |
102 | - $this->mappings['title'] = function ($value) use ($wrapper) { |
|
119 | + $this->mappings['title'] = function ($value) use ($wrapper) |
|
120 | + { |
|
103 | 121 | $wrapper->object->getProperties()->setTitle($value); |
104 | 122 | }; |
105 | 123 | } |
@@ -57,52 +57,68 @@ |
||
57 | 57 | { |
58 | 58 | $wrapper = $this; // PHP 5.3 fix |
59 | 59 | |
60 | - $this->mappings['coordinates'] = function ($value) use ($wrapper) { |
|
60 | + $this->mappings['coordinates'] = function ($value) use ($wrapper) |
|
61 | + { |
|
61 | 62 | $wrapper->object->setCoordinates($value); |
62 | 63 | }; |
63 | - $this->mappings['description'] = function ($value) use ($wrapper) { |
|
64 | + $this->mappings['description'] = function ($value) use ($wrapper) |
|
65 | + { |
|
64 | 66 | $wrapper->object->setDescription($value); |
65 | 67 | }; |
66 | - $this->mappings['height'] = function ($value) use ($wrapper) { |
|
68 | + $this->mappings['height'] = function ($value) use ($wrapper) |
|
69 | + { |
|
67 | 70 | $wrapper->object->setHeight($value); |
68 | 71 | }; |
69 | - $this->mappings['name'] = function ($value) use ($wrapper) { |
|
72 | + $this->mappings['name'] = function ($value) use ($wrapper) |
|
73 | + { |
|
70 | 74 | $wrapper->object->setName($value); |
71 | 75 | }; |
72 | - $this->mappings['offsetX'] = function ($value) use ($wrapper) { |
|
76 | + $this->mappings['offsetX'] = function ($value) use ($wrapper) |
|
77 | + { |
|
73 | 78 | $wrapper->object->setOffsetX($value); |
74 | 79 | }; |
75 | - $this->mappings['offsetY'] = function ($value) use ($wrapper) { |
|
80 | + $this->mappings['offsetY'] = function ($value) use ($wrapper) |
|
81 | + { |
|
76 | 82 | $wrapper->object->setOffsetY($value); |
77 | 83 | }; |
78 | - $this->mappings['resizeProportional'] = function ($value) use ($wrapper) { |
|
84 | + $this->mappings['resizeProportional'] = function ($value) use ($wrapper) |
|
85 | + { |
|
79 | 86 | $wrapper->object->setResizeProportional($value); |
80 | 87 | }; |
81 | - $this->mappings['rotation'] = function ($value) use ($wrapper) { |
|
88 | + $this->mappings['rotation'] = function ($value) use ($wrapper) |
|
89 | + { |
|
82 | 90 | $wrapper->object->setRotation($value); |
83 | 91 | }; |
84 | - $this->mappings['shadow']['alignment'] = function ($value) use ($wrapper) { |
|
92 | + $this->mappings['shadow']['alignment'] = function ($value) use ($wrapper) |
|
93 | + { |
|
85 | 94 | $wrapper->object->getShadow()->setAlignment($value); |
86 | 95 | }; |
87 | - $this->mappings['shadow']['alpha'] = function ($value) use ($wrapper) { |
|
96 | + $this->mappings['shadow']['alpha'] = function ($value) use ($wrapper) |
|
97 | + { |
|
88 | 98 | $wrapper->object->getShadow()->setAlpha($value); |
89 | 99 | }; |
90 | - $this->mappings['shadow']['blurRadius'] = function ($value) use ($wrapper) { |
|
100 | + $this->mappings['shadow']['blurRadius'] = function ($value) use ($wrapper) |
|
101 | + { |
|
91 | 102 | $wrapper->object->getShadow()->setBlurRadius($value); |
92 | 103 | }; |
93 | - $this->mappings['shadow']['color'] = function ($value) use ($wrapper) { |
|
104 | + $this->mappings['shadow']['color'] = function ($value) use ($wrapper) |
|
105 | + { |
|
94 | 106 | $wrapper->object->getShadow()->getColor()->setRGB($value); |
95 | 107 | }; |
96 | - $this->mappings['shadow']['direction'] = function ($value) use ($wrapper) { |
|
108 | + $this->mappings['shadow']['direction'] = function ($value) use ($wrapper) |
|
109 | + { |
|
97 | 110 | $wrapper->object->getShadow()->setDirection($value); |
98 | 111 | }; |
99 | - $this->mappings['shadow']['distance'] = function ($value) use ($wrapper) { |
|
112 | + $this->mappings['shadow']['distance'] = function ($value) use ($wrapper) |
|
113 | + { |
|
100 | 114 | $wrapper->object->getShadow()->setDistance($value); |
101 | 115 | }; |
102 | - $this->mappings['shadow']['visible'] = function ($value) use ($wrapper) { |
|
116 | + $this->mappings['shadow']['visible'] = function ($value) use ($wrapper) |
|
117 | + { |
|
103 | 118 | $wrapper->object->getShadow()->setVisible($value); |
104 | 119 | }; |
105 | - $this->mappings['width'] = function ($value) use ($wrapper) { |
|
120 | + $this->mappings['width'] = function ($value) use ($wrapper) |
|
121 | + { |
|
106 | 122 | $wrapper->object->setWidth($value); |
107 | 123 | }; |
108 | 124 | } |
@@ -58,10 +58,12 @@ |
||
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 | 63 | $wrapper->object->setScaleWithDocument($value); |
63 | 64 | }; |
64 | - $this->mappings['alignWithMargins'] = function ($value) use ($wrapper) { |
|
65 | + $this->mappings['alignWithMargins'] = function ($value) use ($wrapper) |
|
66 | + { |
|
65 | 67 | $wrapper->object->setAlignWithMargins($value); |
66 | 68 | }; |
67 | 69 | } |
@@ -73,167 +73,221 @@ |
||
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 | 78 | return $key === 'default' ? $wrapper->object->getDefaultColumnDimension() : $wrapper->object->getColumnDimension($key); |
78 | 79 | }; |
79 | - $this->mappings['columnDimension']['autoSize'] = function ($key, $value) use ($wrapper) { |
|
80 | + $this->mappings['columnDimension']['autoSize'] = function ($key, $value) use ($wrapper) |
|
81 | + { |
|
80 | 82 | $wrapper->mappings['columnDimension']['__object']($key)->setAutoSize($value); |
81 | 83 | }; |
82 | - $this->mappings['columnDimension']['collapsed'] = function ($key, $value) use ($wrapper) { |
|
84 | + $this->mappings['columnDimension']['collapsed'] = function ($key, $value) use ($wrapper) |
|
85 | + { |
|
83 | 86 | $wrapper->mappings['columnDimension']['__object']($key)->setCollapsed($value); |
84 | 87 | }; |
85 | - $this->mappings['columnDimension']['columnIndex'] = function ($key, $value) use ($wrapper) { |
|
88 | + $this->mappings['columnDimension']['columnIndex'] = function ($key, $value) use ($wrapper) |
|
89 | + { |
|
86 | 90 | $wrapper->mappings['columnDimension']['__object']($key)->setColumnIndex($value); |
87 | 91 | }; |
88 | - $this->mappings['columnDimension']['outlineLevel'] = function ($key, $value) use ($wrapper) { |
|
92 | + $this->mappings['columnDimension']['outlineLevel'] = function ($key, $value) use ($wrapper) |
|
93 | + { |
|
89 | 94 | $wrapper->mappings['columnDimension']['__object']($key)->setOutlineLevel($value); |
90 | 95 | }; |
91 | - $this->mappings['columnDimension']['visible'] = function ($key, $value) use ($wrapper) { |
|
96 | + $this->mappings['columnDimension']['visible'] = function ($key, $value) use ($wrapper) |
|
97 | + { |
|
92 | 98 | $wrapper->mappings['columnDimension']['__object']($key)->setVisible($value); |
93 | 99 | }; |
94 | - $this->mappings['columnDimension']['width'] = function ($key, $value) use ($wrapper) { |
|
100 | + $this->mappings['columnDimension']['width'] = function ($key, $value) use ($wrapper) |
|
101 | + { |
|
95 | 102 | $wrapper->mappings['columnDimension']['__object']($key)->setWidth($value); |
96 | 103 | }; |
97 | - $this->mappings['columnDimension']['xfIndex'] = function ($key, $value) use ($wrapper) { |
|
104 | + $this->mappings['columnDimension']['xfIndex'] = function ($key, $value) use ($wrapper) |
|
105 | + { |
|
98 | 106 | $wrapper->mappings['columnDimension']['__object']($key)->setXfIndex($value); |
99 | 107 | }; |
100 | - $this->mappings['pageMargins']['top'] = function ($value) use ($wrapper) { |
|
108 | + $this->mappings['pageMargins']['top'] = function ($value) use ($wrapper) |
|
109 | + { |
|
101 | 110 | $wrapper->object->getPageMargins()->setTop($value); |
102 | 111 | }; |
103 | - $this->mappings['pageMargins']['bottom'] = function ($value) use ($wrapper) { |
|
112 | + $this->mappings['pageMargins']['bottom'] = function ($value) use ($wrapper) |
|
113 | + { |
|
104 | 114 | $wrapper->object->getPageMargins()->setBottom($value); |
105 | 115 | }; |
106 | - $this->mappings['pageMargins']['left'] = function ($value) use ($wrapper) { |
|
116 | + $this->mappings['pageMargins']['left'] = function ($value) use ($wrapper) |
|
117 | + { |
|
107 | 118 | $wrapper->object->getPageMargins()->setLeft($value); |
108 | 119 | }; |
109 | - $this->mappings['pageMargins']['right'] = function ($value) use ($wrapper) { |
|
120 | + $this->mappings['pageMargins']['right'] = function ($value) use ($wrapper) |
|
121 | + { |
|
110 | 122 | $wrapper->object->getPageMargins()->setRight($value); |
111 | 123 | }; |
112 | - $this->mappings['pageMargins']['header'] = function ($value) use ($wrapper) { |
|
124 | + $this->mappings['pageMargins']['header'] = function ($value) use ($wrapper) |
|
125 | + { |
|
113 | 126 | $wrapper->object->getPageMargins()->setHeader($value); |
114 | 127 | }; |
115 | - $this->mappings['pageMargins']['footer'] = function ($value) use ($wrapper) { |
|
128 | + $this->mappings['pageMargins']['footer'] = function ($value) use ($wrapper) |
|
129 | + { |
|
116 | 130 | $wrapper->object->getPageMargins()->setFooter($value); |
117 | 131 | }; |
118 | - $this->mappings['pageSetup']['fitToHeight'] = function ($value) use ($wrapper) { |
|
132 | + $this->mappings['pageSetup']['fitToHeight'] = function ($value) use ($wrapper) |
|
133 | + { |
|
119 | 134 | $wrapper->object->getPageSetup()->setFitToHeight($value); |
120 | 135 | }; |
121 | - $this->mappings['pageSetup']['fitToPage'] = function ($value) use ($wrapper) { |
|
136 | + $this->mappings['pageSetup']['fitToPage'] = function ($value) use ($wrapper) |
|
137 | + { |
|
122 | 138 | $wrapper->object->getPageSetup()->setFitToPage($value); |
123 | 139 | }; |
124 | - $this->mappings['pageSetup']['fitToWidth'] = function ($value) use ($wrapper) { |
|
140 | + $this->mappings['pageSetup']['fitToWidth'] = function ($value) use ($wrapper) |
|
141 | + { |
|
125 | 142 | $wrapper->object->getPageSetup()->setFitToWidth($value); |
126 | 143 | }; |
127 | - $this->mappings['pageSetup']['horizontalCentered'] = function ($value) use ($wrapper) { |
|
144 | + $this->mappings['pageSetup']['horizontalCentered'] = function ($value) use ($wrapper) |
|
145 | + { |
|
128 | 146 | $wrapper->object->getPageSetup()->setHorizontalCentered($value); |
129 | 147 | }; |
130 | - $this->mappings['pageSetup']['orientation'] = function ($value) use ($wrapper) { |
|
148 | + $this->mappings['pageSetup']['orientation'] = function ($value) use ($wrapper) |
|
149 | + { |
|
131 | 150 | $wrapper->object->getPageSetup()->setOrientation($value); |
132 | 151 | }; |
133 | - $this->mappings['pageSetup']['paperSize'] = function ($value) use ($wrapper) { |
|
152 | + $this->mappings['pageSetup']['paperSize'] = function ($value) use ($wrapper) |
|
153 | + { |
|
134 | 154 | $wrapper->object->getPageSetup()->setPaperSize($value); |
135 | 155 | }; |
136 | - $this->mappings['pageSetup']['printArea'] = function ($value) use ($wrapper) { |
|
156 | + $this->mappings['pageSetup']['printArea'] = function ($value) use ($wrapper) |
|
157 | + { |
|
137 | 158 | $wrapper->object->getPageSetup()->setPrintArea($value); |
138 | 159 | }; |
139 | - $this->mappings['pageSetup']['scale'] = function ($value) use ($wrapper) { |
|
160 | + $this->mappings['pageSetup']['scale'] = function ($value) use ($wrapper) |
|
161 | + { |
|
140 | 162 | $wrapper->object->getPageSetup()->setScale($value); |
141 | 163 | }; |
142 | - $this->mappings['pageSetup']['verticalCentered'] = function ($value) use ($wrapper) { |
|
164 | + $this->mappings['pageSetup']['verticalCentered'] = function ($value) use ($wrapper) |
|
165 | + { |
|
143 | 166 | $wrapper->object->getPageSetup()->setVerticalCentered($value); |
144 | 167 | }; |
145 | - $this->mappings['printGridlines'] = function ($value) use ($wrapper) { |
|
168 | + $this->mappings['printGridlines'] = function ($value) use ($wrapper) |
|
169 | + { |
|
146 | 170 | $wrapper->object->setPrintGridlines($value); |
147 | 171 | }; |
148 | - $this->mappings['protection']['autoFilter'] = function ($value) use ($wrapper) { |
|
172 | + $this->mappings['protection']['autoFilter'] = function ($value) use ($wrapper) |
|
173 | + { |
|
149 | 174 | $wrapper->object->getProtection()->setAutoFilter($value); |
150 | 175 | }; |
151 | - $this->mappings['protection']['deleteColumns'] = function ($value) use ($wrapper) { |
|
176 | + $this->mappings['protection']['deleteColumns'] = function ($value) use ($wrapper) |
|
177 | + { |
|
152 | 178 | $wrapper->object->getProtection()->setDeleteColumns($value); |
153 | 179 | }; |
154 | - $this->mappings['protection']['deleteRows'] = function ($value) use ($wrapper) { |
|
180 | + $this->mappings['protection']['deleteRows'] = function ($value) use ($wrapper) |
|
181 | + { |
|
155 | 182 | $wrapper->object->getProtection()->setDeleteRows($value); |
156 | 183 | }; |
157 | - $this->mappings['protection']['formatCells'] = function ($value) use ($wrapper) { |
|
184 | + $this->mappings['protection']['formatCells'] = function ($value) use ($wrapper) |
|
185 | + { |
|
158 | 186 | $wrapper->object->getProtection()->setFormatCells($value); |
159 | 187 | }; |
160 | - $this->mappings['protection']['formatColumns'] = function ($value) use ($wrapper) { |
|
188 | + $this->mappings['protection']['formatColumns'] = function ($value) use ($wrapper) |
|
189 | + { |
|
161 | 190 | $wrapper->object->getProtection()->setFormatColumns($value); |
162 | 191 | }; |
163 | - $this->mappings['protection']['formatRows'] = function ($value) use ($wrapper) { |
|
192 | + $this->mappings['protection']['formatRows'] = function ($value) use ($wrapper) |
|
193 | + { |
|
164 | 194 | $wrapper->object->getProtection()->setFormatRows($value); |
165 | 195 | }; |
166 | - $this->mappings['protection']['insertColumns'] = function ($value) use ($wrapper) { |
|
196 | + $this->mappings['protection']['insertColumns'] = function ($value) use ($wrapper) |
|
197 | + { |
|
167 | 198 | $wrapper->object->getProtection()->setInsertColumns($value); |
168 | 199 | }; |
169 | - $this->mappings['protection']['insertHyperlinks'] = function ($value) use ($wrapper) { |
|
200 | + $this->mappings['protection']['insertHyperlinks'] = function ($value) use ($wrapper) |
|
201 | + { |
|
170 | 202 | $wrapper->object->getProtection()->setInsertHyperlinks($value); |
171 | 203 | }; |
172 | - $this->mappings['protection']['insertRows'] = function ($value) use ($wrapper) { |
|
204 | + $this->mappings['protection']['insertRows'] = function ($value) use ($wrapper) |
|
205 | + { |
|
173 | 206 | $wrapper->object->getProtection()->setInsertRows($value); |
174 | 207 | }; |
175 | - $this->mappings['protection']['objects'] = function ($value) use ($wrapper) { |
|
208 | + $this->mappings['protection']['objects'] = function ($value) use ($wrapper) |
|
209 | + { |
|
176 | 210 | $wrapper->object->getProtection()->setObjects($value); |
177 | 211 | }; |
178 | - $this->mappings['protection']['password'] = function ($value) use ($wrapper) { |
|
212 | + $this->mappings['protection']['password'] = function ($value) use ($wrapper) |
|
213 | + { |
|
179 | 214 | $wrapper->object->getProtection()->setPassword($value); |
180 | 215 | }; |
181 | - $this->mappings['protection']['pivotTables'] = function ($value) use ($wrapper) { |
|
216 | + $this->mappings['protection']['pivotTables'] = function ($value) use ($wrapper) |
|
217 | + { |
|
182 | 218 | $wrapper->object->getProtection()->setPivotTables($value); |
183 | 219 | }; |
184 | - $this->mappings['protection']['scenarios'] = function ($value) use ($wrapper) { |
|
220 | + $this->mappings['protection']['scenarios'] = function ($value) use ($wrapper) |
|
221 | + { |
|
185 | 222 | $wrapper->object->getProtection()->setScenarios($value); |
186 | 223 | }; |
187 | - $this->mappings['protection']['selectLockedCells'] = function ($value) use ($wrapper) { |
|
224 | + $this->mappings['protection']['selectLockedCells'] = function ($value) use ($wrapper) |
|
225 | + { |
|
188 | 226 | $wrapper->object->getProtection()->setSelectLockedCells($value); |
189 | 227 | }; |
190 | - $this->mappings['protection']['selectUnlockedCells'] = function ($value) use ($wrapper) { |
|
228 | + $this->mappings['protection']['selectUnlockedCells'] = function ($value) use ($wrapper) |
|
229 | + { |
|
191 | 230 | $wrapper->object->getProtection()->setSelectUnlockedCells($value); |
192 | 231 | }; |
193 | - $this->mappings['protection']['sheet'] = function ($value) use ($wrapper) { |
|
232 | + $this->mappings['protection']['sheet'] = function ($value) use ($wrapper) |
|
233 | + { |
|
194 | 234 | $wrapper->object->getProtection()->setSheet($value); |
195 | 235 | }; |
196 | - $this->mappings['protection']['sort'] = function ($value) use ($wrapper) { |
|
236 | + $this->mappings['protection']['sort'] = function ($value) use ($wrapper) |
|
237 | + { |
|
197 | 238 | $wrapper->object->getProtection()->setSort($value); |
198 | 239 | }; |
199 | - $this->mappings['rightToLeft'] = function ($value) use ($wrapper) { |
|
240 | + $this->mappings['rightToLeft'] = function ($value) use ($wrapper) |
|
241 | + { |
|
200 | 242 | $wrapper->object->setRightToLeft($value); |
201 | 243 | }; |
202 | 244 | $this->mappings['rowDimension']['__multi'] = true; |
203 | - $this->mappings['rowDimension']['__object'] = function ($key) use ($wrapper) { |
|
245 | + $this->mappings['rowDimension']['__object'] = function ($key) use ($wrapper) |
|
246 | + { |
|
204 | 247 | return $key === 'default' ? $wrapper->object->getDefaultRowDimension() : $wrapper->object->getRowDimension($key); |
205 | 248 | }; |
206 | - $this->mappings['rowDimension']['collapsed'] = function ($key, $value) use ($wrapper) { |
|
249 | + $this->mappings['rowDimension']['collapsed'] = function ($key, $value) use ($wrapper) |
|
250 | + { |
|
207 | 251 | $wrapper->mappings['rowDimension']['__object']($key)->setCollapsed($value); |
208 | 252 | }; |
209 | - $this->mappings['rowDimension']['outlineLevel'] = function ($key, $value) use ($wrapper) { |
|
253 | + $this->mappings['rowDimension']['outlineLevel'] = function ($key, $value) use ($wrapper) |
|
254 | + { |
|
210 | 255 | $wrapper->mappings['rowDimension']['__object']($key)->setOutlineLevel($value); |
211 | 256 | }; |
212 | - $this->mappings['rowDimension']['rowHeight'] = function ($key, $value) use ($wrapper) { |
|
257 | + $this->mappings['rowDimension']['rowHeight'] = function ($key, $value) use ($wrapper) |
|
258 | + { |
|
213 | 259 | $wrapper->mappings['rowDimension']['__object']($key)->setRowHeight($value); |
214 | 260 | }; |
215 | - $this->mappings['rowDimension']['rowIndex'] = function ($key, $value) use ($wrapper) { |
|
261 | + $this->mappings['rowDimension']['rowIndex'] = function ($key, $value) use ($wrapper) |
|
262 | + { |
|
216 | 263 | $wrapper->mappings['rowDimension']['__object']($key)->setRowIndex($value); |
217 | 264 | }; |
218 | - $this->mappings['rowDimension']['visible'] = function ($key, $value) use ($wrapper) { |
|
265 | + $this->mappings['rowDimension']['visible'] = function ($key, $value) use ($wrapper) |
|
266 | + { |
|
219 | 267 | $wrapper->mappings['rowDimension']['__object']($key)->setVisible($value); |
220 | 268 | }; |
221 | - $this->mappings['rowDimension']['xfIndex'] = function ($key, $value) use ($wrapper) { |
|
269 | + $this->mappings['rowDimension']['xfIndex'] = function ($key, $value) use ($wrapper) |
|
270 | + { |
|
222 | 271 | $wrapper->mappings['rowDimension']['__object']($key)->setXfIndex($value); |
223 | 272 | }; |
224 | - $this->mappings['rowDimension']['zeroHeight'] = function ($key, $value) use ($wrapper) { |
|
273 | + $this->mappings['rowDimension']['zeroHeight'] = function ($key, $value) use ($wrapper) |
|
274 | + { |
|
225 | 275 | $wrapper->mappings['rowDimension']['__object']($key)->setZeroHeight($value); |
226 | 276 | }; |
227 | - $this->mappings['sheetState'] = function ($value) use ($wrapper) { |
|
277 | + $this->mappings['sheetState'] = function ($value) use ($wrapper) |
|
278 | + { |
|
228 | 279 | $wrapper->object->setSheetState($value); |
229 | 280 | }; |
230 | - $this->mappings['showGridlines'] = function ($value) use ($wrapper) { |
|
281 | + $this->mappings['showGridlines'] = function ($value) use ($wrapper) |
|
282 | + { |
|
231 | 283 | $wrapper->object->setShowGridlines($value); |
232 | 284 | }; |
233 | - $this->mappings['tabColor'] = function ($value) use ($wrapper) { |
|
285 | + $this->mappings['tabColor'] = function ($value) use ($wrapper) |
|
286 | + { |
|
234 | 287 | $wrapper->object->getTabColor()->setRGB($value); |
235 | 288 | }; |
236 | - $this->mappings['zoomScale'] = function ($value) use ($wrapper) { |
|
289 | + $this->mappings['zoomScale'] = function ($value) use ($wrapper) |
|
290 | + { |
|
237 | 291 | $wrapper->object->getSheetView()->setZoomScale($value); |
238 | 292 | }; |
239 | 293 | } |