GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch master (ce6401)
by Mewes
10:41
created
Twig/TokenParser/XlsDocumentTokenParser.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace MewesK\TwigSpreadsheetBundle\Twig\TokenParser;
4 4
 
5 5
 use MewesK\TwigSpreadsheetBundle\Twig\Node\XlsDocumentNode;
6
-use MewesK\TwigSpreadsheetBundle\Twig\NodeHelper;
7 6
 use Twig_Token;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.
Wrapper/XlsDocumentWrapper.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
      * Resolves properties containing paths using namespaces.
219 219
      *
220 220
      * @param string $path
221
-     * @return bool
221
+     * @return string
222 222
      */
223 223
     private function expandPath($path)
224 224
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
             $format = $this->attributes['format'];
159 159
         }
160 160
 
161
-         // try Symfony request
161
+            // try Symfony request
162 162
         else if (array_key_exists('app', $this->context)) {
163 163
             /**
164 164
              * @var AppVariable $appVariable
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -57,61 +57,61 @@
 block discarded – undo
57 57
 
58 58
     protected function initializeMappings()
59 59
     {
60
-        $this->mappings['category'] = function ($value) {
60
+        $this->mappings['category'] = function($value) {
61 61
             $this->object->getProperties()->setCategory($value);
62 62
         };
63
-        $this->mappings['company'] = function ($value) {
63
+        $this->mappings['company'] = function($value) {
64 64
             $this->object->getProperties()->setCompany($value);
65 65
         };
66
-        $this->mappings['created'] = function ($value) {
66
+        $this->mappings['created'] = function($value) {
67 67
             $this->object->getProperties()->setCreated($value);
68 68
         };
69
-        $this->mappings['creator'] = function ($value) {
69
+        $this->mappings['creator'] = function($value) {
70 70
             $this->object->getProperties()->setCreator($value);
71 71
         };
72
-        $this->mappings['defaultStyle'] = function ($value) {
72
+        $this->mappings['defaultStyle'] = function($value) {
73 73
             $this->object->getDefaultStyle()->applyFromArray($value);
74 74
         };
75
-        $this->mappings['description'] = function ($value) {
75
+        $this->mappings['description'] = function($value) {
76 76
             $this->object->getProperties()->setDescription($value);
77 77
         };
78
-        $this->mappings['format'] = function ($value) {
78
+        $this->mappings['format'] = function($value) {
79 79
             $this->attributes['format'] = $value;
80 80
         };
81
-        $this->mappings['keywords'] = function ($value) {
81
+        $this->mappings['keywords'] = function($value) {
82 82
             $this->object->getProperties()->setKeywords($value);
83 83
         };
84
-        $this->mappings['lastModifiedBy'] = function ($value) {
84
+        $this->mappings['lastModifiedBy'] = function($value) {
85 85
             $this->object->getProperties()->setLastModifiedBy($value);
86 86
         };
87
-        $this->mappings['manager'] = function ($value) {
87
+        $this->mappings['manager'] = function($value) {
88 88
             $this->object->getProperties()->setManager($value);
89 89
         };
90
-        $this->mappings['modified'] = function ($value) {
90
+        $this->mappings['modified'] = function($value) {
91 91
             $this->object->getProperties()->setModified($value);
92 92
         };
93
-        $this->mappings['security']['lockRevision'] = function ($value) {
93
+        $this->mappings['security']['lockRevision'] = function($value) {
94 94
             $this->object->getSecurity()->setLockRevision($value);
95 95
         };
96
-        $this->mappings['security']['lockStructure'] = function ($value) {
96
+        $this->mappings['security']['lockStructure'] = function($value) {
97 97
             $this->object->getSecurity()->setLockStructure($value);
98 98
         };
99
-        $this->mappings['security']['lockWindows'] = function ($value) {
99
+        $this->mappings['security']['lockWindows'] = function($value) {
100 100
             $this->object->getSecurity()->setLockWindows($value);
101 101
         };
102
-        $this->mappings['security']['revisionsPassword'] = function ($value) {
102
+        $this->mappings['security']['revisionsPassword'] = function($value) {
103 103
             $this->object->getSecurity()->setRevisionsPassword($value);
104 104
         };
105
-        $this->mappings['security']['workbookPassword'] = function ($value) {
105
+        $this->mappings['security']['workbookPassword'] = function($value) {
106 106
             $this->object->getSecurity()->setWorkbookPassword($value);
107 107
         };
108
-        $this->mappings['subject'] = function ($value) {
108
+        $this->mappings['subject'] = function($value) {
109 109
             $this->object->getProperties()->setSubject($value);
110 110
         };
111
-        $this->mappings['template'] = function ($value) {
111
+        $this->mappings['template'] = function($value) {
112 112
             $this->attributes['template'] = $value;
113 113
         };
114
-        $this->mappings['title'] = function ($value) {
114
+        $this->mappings['title'] = function($value) {
115 115
             $this->object->getProperties()->setTitle($value);
116 116
         };
117 117
     }
Please login to merge, or discard this patch.
Twig/NodeVisitor/SyntaxCheckNodeVisitor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
              */
32 32
             try {
33 33
                 $this->checkAllowedParents($node);
34
-            } catch(\Twig_Error_Syntax $e) {
34
+            } catch (\Twig_Error_Syntax $e) {
35 35
                 // reset path since throwing an error prevents doLeaveNode to be called
36 36
                 $this->path = [];
37 37
                 throw $e;
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * {@inheritdoc}
48 48
      */
49
-    protected function doLeaveNode(\Twig_Node $node,\ Twig_Environment $env)
49
+    protected function doLeaveNode(\Twig_Node $node, \ Twig_Environment $env)
50 50
     {
51 51
         array_pop($this->path);
52 52
 
Please login to merge, or discard this patch.
Twig/TokenParser/AbstractTokenParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     protected function parseBody()
22 22
     {
23
-        $body = $this->parser->subparse(function (Token $token) {
23
+        $body = $this->parser->subparse(function(Token $token) {
24 24
                 return $token->test('end' . $this->getTag());
25 25
             },
26 26
             true
Please login to merge, or discard this patch.
Wrapper/XlsHeaderFooterWrapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,10 +65,10 @@
 block discarded – undo
65 65
 
66 66
     protected function initializeMappings()
67 67
     {
68
-        $this->mappings['scaleWithDocument'] = function ($value) {
68
+        $this->mappings['scaleWithDocument'] = function($value) {
69 69
             $this->object->setScaleWithDocument($value);
70 70
         };
71
-        $this->mappings['alignWithMargins'] = function ($value) {
71
+        $this->mappings['alignWithMargins'] = function($value) {
72 72
             $this->object->setAlignWithMargins($value);
73 73
         };
74 74
     }
Please login to merge, or discard this patch.
Wrapper/XlsCellWrapper.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -59,61 +59,61 @@
 block discarded – undo
59 59
 
60 60
     protected function initializeMappings()
61 61
     {
62
-        $this->mappings['break'] = function ($value) {
62
+        $this->mappings['break'] = function($value) {
63 63
             $this->sheetWrapper->getObject()->setBreak($this->object->getCoordinate(), $value);
64 64
         };
65
-        $this->mappings['dataType'] = function ($value) {
65
+        $this->mappings['dataType'] = function($value) {
66 66
             $this->object->setDataType($value);
67 67
         };
68
-        $this->mappings['dataValidation']['allowBlank'] = function ($value) {
68
+        $this->mappings['dataValidation']['allowBlank'] = function($value) {
69 69
             $this->object->getDataValidation()->setAllowBlank($value);
70 70
         };
71
-        $this->mappings['dataValidation']['error'] = function ($value) {
71
+        $this->mappings['dataValidation']['error'] = function($value) {
72 72
             $this->object->getDataValidation()->setError($value);
73 73
         };
74
-        $this->mappings['dataValidation']['errorStyle'] = function ($value) {
74
+        $this->mappings['dataValidation']['errorStyle'] = function($value) {
75 75
             $this->object->getDataValidation()->setErrorStyle($value);
76 76
         };
77
-        $this->mappings['dataValidation']['errorTitle'] = function ($value) {
77
+        $this->mappings['dataValidation']['errorTitle'] = function($value) {
78 78
             $this->object->getDataValidation()->setErrorTitle($value);
79 79
         };
80
-        $this->mappings['dataValidation']['formula1'] = function ($value) {
80
+        $this->mappings['dataValidation']['formula1'] = function($value) {
81 81
             $this->object->getDataValidation()->setFormula1($value);
82 82
         };
83
-        $this->mappings['dataValidation']['formula2'] = function ($value) {
83
+        $this->mappings['dataValidation']['formula2'] = function($value) {
84 84
             $this->object->getDataValidation()->setFormula2($value);
85 85
         };
86
-        $this->mappings['dataValidation']['operator'] = function ($value) {
86
+        $this->mappings['dataValidation']['operator'] = function($value) {
87 87
             $this->object->getDataValidation()->setOperator($value);
88 88
         };
89
-        $this->mappings['dataValidation']['prompt'] = function ($value) {
89
+        $this->mappings['dataValidation']['prompt'] = function($value) {
90 90
             $this->object->getDataValidation()->setPrompt($value);
91 91
         };
92
-        $this->mappings['dataValidation']['promptTitle'] = function ($value) {
92
+        $this->mappings['dataValidation']['promptTitle'] = function($value) {
93 93
             $this->object->getDataValidation()->setPromptTitle($value);
94 94
         };
95
-        $this->mappings['dataValidation']['showDropDown'] = function ($value) {
95
+        $this->mappings['dataValidation']['showDropDown'] = function($value) {
96 96
             $this->object->getDataValidation()->setShowDropDown($value);
97 97
         };
98
-        $this->mappings['dataValidation']['showErrorMessage'] = function ($value) {
98
+        $this->mappings['dataValidation']['showErrorMessage'] = function($value) {
99 99
             $this->object->getDataValidation()->setShowErrorMessage($value);
100 100
         };
101
-        $this->mappings['dataValidation']['showInputMessage'] = function ($value) {
101
+        $this->mappings['dataValidation']['showInputMessage'] = function($value) {
102 102
             $this->object->getDataValidation()->setShowInputMessage($value);
103 103
         };
104
-        $this->mappings['dataValidation']['type'] = function ($value) {
104
+        $this->mappings['dataValidation']['type'] = function($value) {
105 105
             $this->object->getDataValidation()->setType($value);
106 106
         };
107
-        $this->mappings['merge'] = function ($value) {
107
+        $this->mappings['merge'] = function($value) {
108 108
             if (is_int($value)) {
109 109
                 $value = Cell::stringFromColumnIndex($value) . $this->sheetWrapper->getRow();
110 110
             }
111 111
             $this->sheetWrapper->getObject()->mergeCells(sprintf('%s:%s', $this->object->getCoordinate(), $value));
112 112
         };
113
-        $this->mappings['style'] = function ($value) {
113
+        $this->mappings['style'] = function($value) {
114 114
             $this->sheetWrapper->getObject()->getStyle($this->object->getCoordinate())->applyFromArray($value);
115 115
         };
116
-        $this->mappings['url'] = function ($value) {
116
+        $this->mappings['url'] = function($value) {
117 117
             $this->object->getHyperlink()->setUrl($value);
118 118
         };
119 119
     }
Please login to merge, or discard this patch.
Wrapper/XlsSheetWrapper.php 2 patches
Spacing   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -78,171 +78,171 @@  discard block
 block discarded – undo
78 78
 
79 79
     protected function initializeMappings()
80 80
     {
81
-        $this->mappings['autoFilter'] = function ($value) {
81
+        $this->mappings['autoFilter'] = function($value) {
82 82
             $this->object->setAutoFilter($value);
83 83
         };
84 84
         $this->mappings['columnDimension']['__multi'] = true;
85
-        $this->mappings['columnDimension']['__object'] = function ($key = 'default') {
85
+        $this->mappings['columnDimension']['__object'] = function($key = 'default') {
86 86
             return $key === 'default' ? $this->object->getDefaultColumnDimension() : $this->object->getColumnDimension($key);
87 87
         };
88
-        $this->mappings['columnDimension']['autoSize'] = function ($key, $value) {
88
+        $this->mappings['columnDimension']['autoSize'] = function($key, $value) {
89 89
             $this->mappings['columnDimension']['__object']($key)->setAutoSize($value);
90 90
         };
91
-        $this->mappings['columnDimension']['collapsed'] = function ($key, $value) {
91
+        $this->mappings['columnDimension']['collapsed'] = function($key, $value) {
92 92
             $this->mappings['columnDimension']['__object']($key)->setCollapsed($value);
93 93
         };
94
-        $this->mappings['columnDimension']['columnIndex'] = function ($key, $value) {
94
+        $this->mappings['columnDimension']['columnIndex'] = function($key, $value) {
95 95
             $this->mappings['columnDimension']['__object']($key)->setColumnIndex($value);
96 96
         };
97
-        $this->mappings['columnDimension']['outlineLevel'] = function ($key, $value) {
97
+        $this->mappings['columnDimension']['outlineLevel'] = function($key, $value) {
98 98
             $this->mappings['columnDimension']['__object']($key)->setOutlineLevel($value);
99 99
         };
100
-        $this->mappings['columnDimension']['visible'] = function ($key, $value) {
100
+        $this->mappings['columnDimension']['visible'] = function($key, $value) {
101 101
             $this->mappings['columnDimension']['__object']($key)->setVisible($value);
102 102
         };
103
-        $this->mappings['columnDimension']['width'] = function ($key, $value) {
103
+        $this->mappings['columnDimension']['width'] = function($key, $value) {
104 104
             $this->mappings['columnDimension']['__object']($key)->setWidth($value);
105 105
         };
106
-        $this->mappings['columnDimension']['xfIndex'] = function ($key, $value) {
106
+        $this->mappings['columnDimension']['xfIndex'] = function($key, $value) {
107 107
             $this->mappings['columnDimension']['__object']($key)->setXfIndex($value);
108 108
         };
109
-        $this->mappings['pageMargins']['top'] = function ($value) {
109
+        $this->mappings['pageMargins']['top'] = function($value) {
110 110
             $this->object->getPageMargins()->setTop($value);
111 111
         };
112
-        $this->mappings['pageMargins']['bottom'] = function ($value) {
112
+        $this->mappings['pageMargins']['bottom'] = function($value) {
113 113
             $this->object->getPageMargins()->setBottom($value);
114 114
         };
115
-        $this->mappings['pageMargins']['left'] = function ($value) {
115
+        $this->mappings['pageMargins']['left'] = function($value) {
116 116
             $this->object->getPageMargins()->setLeft($value);
117 117
         };
118
-        $this->mappings['pageMargins']['right'] = function ($value) {
118
+        $this->mappings['pageMargins']['right'] = function($value) {
119 119
             $this->object->getPageMargins()->setRight($value);
120 120
         };
121
-        $this->mappings['pageMargins']['header'] = function ($value) {
121
+        $this->mappings['pageMargins']['header'] = function($value) {
122 122
             $this->object->getPageMargins()->setHeader($value);
123 123
         };
124
-        $this->mappings['pageMargins']['footer'] = function ($value) {
124
+        $this->mappings['pageMargins']['footer'] = function($value) {
125 125
             $this->object->getPageMargins()->setFooter($value);
126 126
         };
127
-        $this->mappings['pageSetup']['fitToHeight'] = function ($value) {
127
+        $this->mappings['pageSetup']['fitToHeight'] = function($value) {
128 128
             $this->object->getPageSetup()->setFitToHeight($value);
129 129
         };
130
-        $this->mappings['pageSetup']['fitToPage'] = function ($value) {
130
+        $this->mappings['pageSetup']['fitToPage'] = function($value) {
131 131
             $this->object->getPageSetup()->setFitToPage($value);
132 132
         };
133
-        $this->mappings['pageSetup']['fitToWidth'] = function ($value) {
133
+        $this->mappings['pageSetup']['fitToWidth'] = function($value) {
134 134
             $this->object->getPageSetup()->setFitToWidth($value);
135 135
         };
136
-        $this->mappings['pageSetup']['horizontalCentered'] = function ($value) {
136
+        $this->mappings['pageSetup']['horizontalCentered'] = function($value) {
137 137
             $this->object->getPageSetup()->setHorizontalCentered($value);
138 138
         };
139
-        $this->mappings['pageSetup']['orientation'] = function ($value) {
139
+        $this->mappings['pageSetup']['orientation'] = function($value) {
140 140
             $this->object->getPageSetup()->setOrientation($value);
141 141
         };
142
-        $this->mappings['pageSetup']['paperSize'] = function ($value) {
142
+        $this->mappings['pageSetup']['paperSize'] = function($value) {
143 143
             $this->object->getPageSetup()->setPaperSize($value);
144 144
         };
145
-        $this->mappings['pageSetup']['printArea'] = function ($value) {
145
+        $this->mappings['pageSetup']['printArea'] = function($value) {
146 146
             $this->object->getPageSetup()->setPrintArea($value);
147 147
         };
148
-        $this->mappings['pageSetup']['scale'] = function ($value) {
148
+        $this->mappings['pageSetup']['scale'] = function($value) {
149 149
             $this->object->getPageSetup()->setScale($value);
150 150
         };
151
-        $this->mappings['pageSetup']['verticalCentered'] = function ($value) {
151
+        $this->mappings['pageSetup']['verticalCentered'] = function($value) {
152 152
             $this->object->getPageSetup()->setVerticalCentered($value);
153 153
         };
154
-        $this->mappings['printGridlines'] = function ($value) {
154
+        $this->mappings['printGridlines'] = function($value) {
155 155
             $this->object->setPrintGridlines($value);
156 156
         };
157
-        $this->mappings['protection']['autoFilter'] = function ($value) {
157
+        $this->mappings['protection']['autoFilter'] = function($value) {
158 158
             $this->object->getProtection()->setAutoFilter($value);
159 159
         };
160
-        $this->mappings['protection']['deleteColumns'] = function ($value) {
160
+        $this->mappings['protection']['deleteColumns'] = function($value) {
161 161
             $this->object->getProtection()->setDeleteColumns($value);
162 162
         };
163
-        $this->mappings['protection']['deleteRows'] = function ($value) {
163
+        $this->mappings['protection']['deleteRows'] = function($value) {
164 164
             $this->object->getProtection()->setDeleteRows($value);
165 165
         };
166
-        $this->mappings['protection']['formatCells'] = function ($value) {
166
+        $this->mappings['protection']['formatCells'] = function($value) {
167 167
             $this->object->getProtection()->setFormatCells($value);
168 168
         };
169
-        $this->mappings['protection']['formatColumns'] = function ($value) {
169
+        $this->mappings['protection']['formatColumns'] = function($value) {
170 170
             $this->object->getProtection()->setFormatColumns($value);
171 171
         };
172
-        $this->mappings['protection']['formatRows'] = function ($value) {
172
+        $this->mappings['protection']['formatRows'] = function($value) {
173 173
             $this->object->getProtection()->setFormatRows($value);
174 174
         };
175
-        $this->mappings['protection']['insertColumns'] = function ($value) {
175
+        $this->mappings['protection']['insertColumns'] = function($value) {
176 176
             $this->object->getProtection()->setInsertColumns($value);
177 177
         };
178
-        $this->mappings['protection']['insertHyperlinks'] = function ($value) {
178
+        $this->mappings['protection']['insertHyperlinks'] = function($value) {
179 179
             $this->object->getProtection()->setInsertHyperlinks($value);
180 180
         };
181
-        $this->mappings['protection']['insertRows'] = function ($value) {
181
+        $this->mappings['protection']['insertRows'] = function($value) {
182 182
             $this->object->getProtection()->setInsertRows($value);
183 183
         };
184
-        $this->mappings['protection']['objects'] = function ($value) {
184
+        $this->mappings['protection']['objects'] = function($value) {
185 185
             $this->object->getProtection()->setObjects($value);
186 186
         };
187
-        $this->mappings['protection']['password'] = function ($value) {
187
+        $this->mappings['protection']['password'] = function($value) {
188 188
             $this->object->getProtection()->setPassword($value);
189 189
         };
190
-        $this->mappings['protection']['pivotTables'] = function ($value) {
190
+        $this->mappings['protection']['pivotTables'] = function($value) {
191 191
             $this->object->getProtection()->setPivotTables($value);
192 192
         };
193
-        $this->mappings['protection']['scenarios'] = function ($value) {
193
+        $this->mappings['protection']['scenarios'] = function($value) {
194 194
             $this->object->getProtection()->setScenarios($value);
195 195
         };
196
-        $this->mappings['protection']['selectLockedCells'] = function ($value) {
196
+        $this->mappings['protection']['selectLockedCells'] = function($value) {
197 197
             $this->object->getProtection()->setSelectLockedCells($value);
198 198
         };
199
-        $this->mappings['protection']['selectUnlockedCells'] = function ($value) {
199
+        $this->mappings['protection']['selectUnlockedCells'] = function($value) {
200 200
             $this->object->getProtection()->setSelectUnlockedCells($value);
201 201
         };
202
-        $this->mappings['protection']['sheet'] = function ($value) {
202
+        $this->mappings['protection']['sheet'] = function($value) {
203 203
             $this->object->getProtection()->setSheet($value);
204 204
         };
205
-        $this->mappings['protection']['sort'] = function ($value) {
205
+        $this->mappings['protection']['sort'] = function($value) {
206 206
             $this->object->getProtection()->setSort($value);
207 207
         };
208
-        $this->mappings['rightToLeft'] = function ($value) {
208
+        $this->mappings['rightToLeft'] = function($value) {
209 209
             $this->object->setRightToLeft($value);
210 210
         };
211 211
         $this->mappings['rowDimension']['__multi'] = true;
212
-        $this->mappings['rowDimension']['__object'] = function ($key) {
212
+        $this->mappings['rowDimension']['__object'] = function($key) {
213 213
             return $key === 'default' ? $this->object->getDefaultRowDimension() : $this->object->getRowDimension($key);
214 214
         };
215
-        $this->mappings['rowDimension']['collapsed'] = function ($key, $value) {
215
+        $this->mappings['rowDimension']['collapsed'] = function($key, $value) {
216 216
             $this->mappings['rowDimension']['__object']($key)->setCollapsed($value);
217 217
         };
218
-        $this->mappings['rowDimension']['outlineLevel'] = function ($key, $value) {
218
+        $this->mappings['rowDimension']['outlineLevel'] = function($key, $value) {
219 219
             $this->mappings['rowDimension']['__object']($key)->setOutlineLevel($value);
220 220
         };
221
-        $this->mappings['rowDimension']['rowHeight'] = function ($key, $value) {
221
+        $this->mappings['rowDimension']['rowHeight'] = function($key, $value) {
222 222
             $this->mappings['rowDimension']['__object']($key)->setRowHeight($value);
223 223
         };
224
-        $this->mappings['rowDimension']['rowIndex'] = function ($key, $value) {
224
+        $this->mappings['rowDimension']['rowIndex'] = function($key, $value) {
225 225
             $this->mappings['rowDimension']['__object']($key)->setRowIndex($value);
226 226
         };
227
-        $this->mappings['rowDimension']['visible'] = function ($key, $value) {
227
+        $this->mappings['rowDimension']['visible'] = function($key, $value) {
228 228
             $this->mappings['rowDimension']['__object']($key)->setVisible($value);
229 229
         };
230
-        $this->mappings['rowDimension']['xfIndex'] = function ($key, $value) {
230
+        $this->mappings['rowDimension']['xfIndex'] = function($key, $value) {
231 231
             $this->mappings['rowDimension']['__object']($key)->setXfIndex($value);
232 232
         };
233
-        $this->mappings['rowDimension']['zeroHeight'] = function ($key, $value) {
233
+        $this->mappings['rowDimension']['zeroHeight'] = function($key, $value) {
234 234
             $this->mappings['rowDimension']['__object']($key)->setZeroHeight($value);
235 235
         };
236
-        $this->mappings['sheetState'] = function ($value) {
236
+        $this->mappings['sheetState'] = function($value) {
237 237
             $this->object->setSheetState($value);
238 238
         };
239
-        $this->mappings['showGridlines'] = function ($value) {
239
+        $this->mappings['showGridlines'] = function($value) {
240 240
             $this->object->setShowGridlines($value);
241 241
         };
242
-        $this->mappings['tabColor'] = function ($value) {
242
+        $this->mappings['tabColor'] = function($value) {
243 243
             $this->object->getTabColor()->setRGB($value);
244 244
         };
245
-        $this->mappings['zoomScale'] = function ($value) {
245
+        $this->mappings['zoomScale'] = function($value) {
246 246
             $this->object->getSheetView()->setZoomScale($value);
247 247
         };
248 248
     }
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      */
255 255
     public function start($index, array $properties = null)
256 256
     {
257
-        if (is_int($index) && $index <$this->documentWrapper->getObject()->getSheetCount()) {
257
+        if (is_int($index) && $index < $this->documentWrapper->getObject()->getSheetCount()) {
258 258
             $this->object = $this->documentWrapper->getObject()->setActiveSheetIndex($index);
259 259
         } elseif (is_string($index)) {
260 260
             if (!$this->documentWrapper->getObject()->sheetNameExists($index)) {
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
                 $this->documentWrapper->getObject()->createSheet()->setTitle($index);
263 263
             }
264 264
             $this->object = $this->documentWrapper->getObject()->setActiveSheetIndexByName($index);
265
-        }  else {
265
+        } else {
266 266
             // create new sheet without a name
267 267
             $this->documentWrapper->getObject()->createSheet();
268 268
             $this->object = $this->documentWrapper->getObject()->setActiveSheetIndex(0);
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
              */
292 292
             $columnDimension = $this->attributes['properties']['columnDimension'];
293 293
             foreach ($columnDimension as $key => $value) {
294
-                if(true === is_array($value) && true === isset($value['autoSize'])) {
294
+                if (true === is_array($value) && true === isset($value['autoSize'])) {
295 295
                     if ('default' === $key) {
296 296
                         try {
297 297
                             $cellIterator = $this->object->getRowIterator()->current()->getCellIterator();
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
262 262
                 $this->documentWrapper->getObject()->createSheet()->setTitle($index);
263 263
             }
264 264
             $this->object = $this->documentWrapper->getObject()->setActiveSheetIndexByName($index);
265
-        }  else {
265
+        } else {
266 266
             // create new sheet without a name
267 267
             $this->documentWrapper->getObject()->createSheet();
268 268
             $this->object = $this->documentWrapper->getObject()->setActiveSheetIndex(0);
Please login to merge, or discard this patch.
Wrapper/XlsDrawingWrapper.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -65,52 +65,52 @@
 block discarded – undo
65 65
 
66 66
     protected function initializeMappings()
67 67
     {
68
-        $this->mappings['coordinates'] = function ($value) {
68
+        $this->mappings['coordinates'] = function($value) {
69 69
             $this->object->setCoordinates($value);
70 70
         };
71
-        $this->mappings['description'] = function ($value) {
71
+        $this->mappings['description'] = function($value) {
72 72
             $this->object->setDescription($value);
73 73
         };
74
-        $this->mappings['height'] = function ($value) {
74
+        $this->mappings['height'] = function($value) {
75 75
             $this->object->setHeight($value);
76 76
         };
77
-        $this->mappings['name'] = function ($value) {
77
+        $this->mappings['name'] = function($value) {
78 78
             $this->object->setName($value);
79 79
         };
80
-        $this->mappings['offsetX'] = function ($value) {
80
+        $this->mappings['offsetX'] = function($value) {
81 81
             $this->object->setOffsetX($value);
82 82
         };
83
-        $this->mappings['offsetY'] = function ($value) {
83
+        $this->mappings['offsetY'] = function($value) {
84 84
             $this->object->setOffsetY($value);
85 85
         };
86
-        $this->mappings['resizeProportional'] = function ($value) {
86
+        $this->mappings['resizeProportional'] = function($value) {
87 87
             $this->object->setResizeProportional($value);
88 88
         };
89
-        $this->mappings['rotation'] = function ($value) {
89
+        $this->mappings['rotation'] = function($value) {
90 90
             $this->object->setRotation($value);
91 91
         };
92
-        $this->mappings['shadow']['alignment'] = function ($value) {
92
+        $this->mappings['shadow']['alignment'] = function($value) {
93 93
             $this->object->getShadow()->setAlignment($value);
94 94
         };
95
-        $this->mappings['shadow']['alpha'] = function ($value) {
95
+        $this->mappings['shadow']['alpha'] = function($value) {
96 96
             $this->object->getShadow()->setAlpha($value);
97 97
         };
98
-        $this->mappings['shadow']['blurRadius'] = function ($value) {
98
+        $this->mappings['shadow']['blurRadius'] = function($value) {
99 99
             $this->object->getShadow()->setBlurRadius($value);
100 100
         };
101
-        $this->mappings['shadow']['color'] = function ($value) {
101
+        $this->mappings['shadow']['color'] = function($value) {
102 102
             $this->object->getShadow()->getColor()->setRGB($value);
103 103
         };
104
-        $this->mappings['shadow']['direction'] = function ($value) {
104
+        $this->mappings['shadow']['direction'] = function($value) {
105 105
             $this->object->getShadow()->setDirection($value);
106 106
         };
107
-        $this->mappings['shadow']['distance'] = function ($value) {
107
+        $this->mappings['shadow']['distance'] = function($value) {
108 108
             $this->object->getShadow()->setDistance($value);
109 109
         };
110
-        $this->mappings['shadow']['visible'] = function ($value) {
110
+        $this->mappings['shadow']['visible'] = function($value) {
111 111
             $this->object->getShadow()->setVisible($value);
112 112
         };
113
-        $this->mappings['width'] = function ($value) {
113
+        $this->mappings['width'] = function($value) {
114 114
             $this->object->setWidth($value);
115 115
         };
116 116
     }
Please login to merge, or discard this patch.
Tests/Twig/CsvTwigTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         static::assertFileExists($path, 'File does not exist');
40 40
         static::assertGreaterThan(0, filesize($path), 'File is empty');
41
-        static::assertStringEqualsFile($path, '"Foo","Bar"' .PHP_EOL. '"Hello","World"' .PHP_EOL, 'Unexpected content');
41
+        static::assertStringEqualsFile($path, '"Foo","Bar"' . PHP_EOL . '"Hello","World"' . PHP_EOL, 'Unexpected content');
42 42
     }
43 43
 
44 44
     /**
@@ -53,6 +53,6 @@  discard block
 block discarded – undo
53 53
 
54 54
         static::assertFileExists($path, 'File does not exist');
55 55
         static::assertGreaterThan(0, filesize($path), 'File is empty');
56
-        static::assertStringEqualsFile($path, '"Hello2","World"' .PHP_EOL. '"Foo","Bar2"' .PHP_EOL, 'Unexpected content');
56
+        static::assertStringEqualsFile($path, '"Hello2","World"' . PHP_EOL . '"Foo","Bar2"' . PHP_EOL, 'Unexpected content');
57 57
     }
58 58
 }
Please login to merge, or discard this patch.