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