@@ -57,58 +57,58 @@ |
||
57 | 57 | |
58 | 58 | protected function initializeMappings() |
59 | 59 | { |
60 | - $this->mappings['break'] = function ($value) { |
|
60 | + $this->mappings['break'] = function($value) { |
|
61 | 61 | $this->sheetWrapper->getObject()->setBreak($this->object->getCoordinate(), $value); |
62 | 62 | }; |
63 | - $this->mappings['dataType'] = function ($value) { |
|
63 | + $this->mappings['dataType'] = function($value) { |
|
64 | 64 | $this->object->setDataType($value); |
65 | 65 | }; |
66 | - $this->mappings['dataValidation']['allowBlank'] = function ($value) { |
|
66 | + $this->mappings['dataValidation']['allowBlank'] = function($value) { |
|
67 | 67 | $this->object->getDataValidation()->setAllowBlank($value); |
68 | 68 | }; |
69 | - $this->mappings['dataValidation']['error'] = function ($value) { |
|
69 | + $this->mappings['dataValidation']['error'] = function($value) { |
|
70 | 70 | $this->object->getDataValidation()->setError($value); |
71 | 71 | }; |
72 | - $this->mappings['dataValidation']['errorStyle'] = function ($value) { |
|
72 | + $this->mappings['dataValidation']['errorStyle'] = function($value) { |
|
73 | 73 | $this->object->getDataValidation()->setErrorStyle($value); |
74 | 74 | }; |
75 | - $this->mappings['dataValidation']['errorTitle'] = function ($value) { |
|
75 | + $this->mappings['dataValidation']['errorTitle'] = function($value) { |
|
76 | 76 | $this->object->getDataValidation()->setErrorTitle($value); |
77 | 77 | }; |
78 | - $this->mappings['dataValidation']['formula1'] = function ($value) { |
|
78 | + $this->mappings['dataValidation']['formula1'] = function($value) { |
|
79 | 79 | $this->object->getDataValidation()->setFormula1($value); |
80 | 80 | }; |
81 | - $this->mappings['dataValidation']['formula2'] = function ($value) { |
|
81 | + $this->mappings['dataValidation']['formula2'] = function($value) { |
|
82 | 82 | $this->object->getDataValidation()->setFormula2($value); |
83 | 83 | }; |
84 | - $this->mappings['dataValidation']['operator'] = function ($value) { |
|
84 | + $this->mappings['dataValidation']['operator'] = function($value) { |
|
85 | 85 | $this->object->getDataValidation()->setOperator($value); |
86 | 86 | }; |
87 | - $this->mappings['dataValidation']['prompt'] = function ($value) { |
|
87 | + $this->mappings['dataValidation']['prompt'] = function($value) { |
|
88 | 88 | $this->object->getDataValidation()->setPrompt($value); |
89 | 89 | }; |
90 | - $this->mappings['dataValidation']['promptTitle'] = function ($value) { |
|
90 | + $this->mappings['dataValidation']['promptTitle'] = function($value) { |
|
91 | 91 | $this->object->getDataValidation()->setPromptTitle($value); |
92 | 92 | }; |
93 | - $this->mappings['dataValidation']['showDropDown'] = function ($value) { |
|
93 | + $this->mappings['dataValidation']['showDropDown'] = function($value) { |
|
94 | 94 | $this->object->getDataValidation()->setShowDropDown($value); |
95 | 95 | }; |
96 | - $this->mappings['dataValidation']['showErrorMessage'] = function ($value) { |
|
96 | + $this->mappings['dataValidation']['showErrorMessage'] = function($value) { |
|
97 | 97 | $this->object->getDataValidation()->setShowErrorMessage($value); |
98 | 98 | }; |
99 | - $this->mappings['dataValidation']['showInputMessage'] = function ($value) { |
|
99 | + $this->mappings['dataValidation']['showInputMessage'] = function($value) { |
|
100 | 100 | $this->object->getDataValidation()->setShowInputMessage($value); |
101 | 101 | }; |
102 | - $this->mappings['dataValidation']['type'] = function ($value) { |
|
102 | + $this->mappings['dataValidation']['type'] = function($value) { |
|
103 | 103 | $this->object->getDataValidation()->setType($value); |
104 | 104 | }; |
105 | - $this->mappings['style'] = function ($value) { |
|
105 | + $this->mappings['style'] = function($value) { |
|
106 | 106 | $this->sheetWrapper->getObject()->getStyle($this->object->getCoordinate())->applyFromArray($value); |
107 | 107 | }; |
108 | - $this->mappings['url'] = function ($value) { |
|
108 | + $this->mappings['url'] = function($value) { |
|
109 | 109 | $this->object->getHyperlink()->setUrl($value); |
110 | 110 | }; |
111 | - $this->mappings['merge'] = function ($value) { |
|
111 | + $this->mappings['merge'] = function($value) { |
|
112 | 112 | $this->sheetWrapper->getObject()->mergeCells($this->object->getCoordinate().':'.$value.$this->sheetWrapper->getRow()); |
113 | 113 | }; |
114 | 114 | } |
@@ -57,58 +57,76 @@ |
||
57 | 57 | |
58 | 58 | protected function initializeMappings() |
59 | 59 | { |
60 | - $this->mappings['break'] = function ($value) { |
|
60 | + $this->mappings['break'] = function ($value) |
|
61 | + { |
|
61 | 62 | $this->sheetWrapper->getObject()->setBreak($this->object->getCoordinate(), $value); |
62 | 63 | }; |
63 | - $this->mappings['dataType'] = function ($value) { |
|
64 | + $this->mappings['dataType'] = function ($value) |
|
65 | + { |
|
64 | 66 | $this->object->setDataType($value); |
65 | 67 | }; |
66 | - $this->mappings['dataValidation']['allowBlank'] = function ($value) { |
|
68 | + $this->mappings['dataValidation']['allowBlank'] = function ($value) |
|
69 | + { |
|
67 | 70 | $this->object->getDataValidation()->setAllowBlank($value); |
68 | 71 | }; |
69 | - $this->mappings['dataValidation']['error'] = function ($value) { |
|
72 | + $this->mappings['dataValidation']['error'] = function ($value) |
|
73 | + { |
|
70 | 74 | $this->object->getDataValidation()->setError($value); |
71 | 75 | }; |
72 | - $this->mappings['dataValidation']['errorStyle'] = function ($value) { |
|
76 | + $this->mappings['dataValidation']['errorStyle'] = function ($value) |
|
77 | + { |
|
73 | 78 | $this->object->getDataValidation()->setErrorStyle($value); |
74 | 79 | }; |
75 | - $this->mappings['dataValidation']['errorTitle'] = function ($value) { |
|
80 | + $this->mappings['dataValidation']['errorTitle'] = function ($value) |
|
81 | + { |
|
76 | 82 | $this->object->getDataValidation()->setErrorTitle($value); |
77 | 83 | }; |
78 | - $this->mappings['dataValidation']['formula1'] = function ($value) { |
|
84 | + $this->mappings['dataValidation']['formula1'] = function ($value) |
|
85 | + { |
|
79 | 86 | $this->object->getDataValidation()->setFormula1($value); |
80 | 87 | }; |
81 | - $this->mappings['dataValidation']['formula2'] = function ($value) { |
|
88 | + $this->mappings['dataValidation']['formula2'] = function ($value) |
|
89 | + { |
|
82 | 90 | $this->object->getDataValidation()->setFormula2($value); |
83 | 91 | }; |
84 | - $this->mappings['dataValidation']['operator'] = function ($value) { |
|
92 | + $this->mappings['dataValidation']['operator'] = function ($value) |
|
93 | + { |
|
85 | 94 | $this->object->getDataValidation()->setOperator($value); |
86 | 95 | }; |
87 | - $this->mappings['dataValidation']['prompt'] = function ($value) { |
|
96 | + $this->mappings['dataValidation']['prompt'] = function ($value) |
|
97 | + { |
|
88 | 98 | $this->object->getDataValidation()->setPrompt($value); |
89 | 99 | }; |
90 | - $this->mappings['dataValidation']['promptTitle'] = function ($value) { |
|
100 | + $this->mappings['dataValidation']['promptTitle'] = function ($value) |
|
101 | + { |
|
91 | 102 | $this->object->getDataValidation()->setPromptTitle($value); |
92 | 103 | }; |
93 | - $this->mappings['dataValidation']['showDropDown'] = function ($value) { |
|
104 | + $this->mappings['dataValidation']['showDropDown'] = function ($value) |
|
105 | + { |
|
94 | 106 | $this->object->getDataValidation()->setShowDropDown($value); |
95 | 107 | }; |
96 | - $this->mappings['dataValidation']['showErrorMessage'] = function ($value) { |
|
108 | + $this->mappings['dataValidation']['showErrorMessage'] = function ($value) |
|
109 | + { |
|
97 | 110 | $this->object->getDataValidation()->setShowErrorMessage($value); |
98 | 111 | }; |
99 | - $this->mappings['dataValidation']['showInputMessage'] = function ($value) { |
|
112 | + $this->mappings['dataValidation']['showInputMessage'] = function ($value) |
|
113 | + { |
|
100 | 114 | $this->object->getDataValidation()->setShowInputMessage($value); |
101 | 115 | }; |
102 | - $this->mappings['dataValidation']['type'] = function ($value) { |
|
116 | + $this->mappings['dataValidation']['type'] = function ($value) |
|
117 | + { |
|
103 | 118 | $this->object->getDataValidation()->setType($value); |
104 | 119 | }; |
105 | - $this->mappings['style'] = function ($value) { |
|
120 | + $this->mappings['style'] = function ($value) |
|
121 | + { |
|
106 | 122 | $this->sheetWrapper->getObject()->getStyle($this->object->getCoordinate())->applyFromArray($value); |
107 | 123 | }; |
108 | - $this->mappings['url'] = function ($value) { |
|
124 | + $this->mappings['url'] = function ($value) |
|
125 | + { |
|
109 | 126 | $this->object->getHyperlink()->setUrl($value); |
110 | 127 | }; |
111 | - $this->mappings['merge'] = function ($value) { |
|
128 | + $this->mappings['merge'] = function ($value) |
|
129 | + { |
|
112 | 130 | $this->sheetWrapper->getObject()->mergeCells($this->object->getCoordinate().':'.$value.$this->sheetWrapper->getRow()); |
113 | 131 | }; |
114 | 132 | } |