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
Push — master ( dea5e9...4057a0 )
by Mewes
02:21
created
Twig/Node/FooterNode.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,16 +16,16 @@
 block discarded – undo
16 16
             ->write(self::CODE_FIX_CONTEXT)
17 17
             ->write('$footerType = ')
18 18
             ->subcompile($this->getNode('type'))
19
-            ->raw(';'.PHP_EOL)
20
-            ->write('$footerType = $footerType ? $footerType : \'footer\';'.PHP_EOL)
19
+            ->raw(';' . PHP_EOL)
20
+            ->write('$footerType = $footerType ? $footerType : \'footer\';' . PHP_EOL)
21 21
             ->write('$footerProperties = ')
22 22
             ->subcompile($this->getNode('properties'))
23
-            ->raw(';'.PHP_EOL)
24
-            ->write(self::CODE_INSTANCE.'->startHeaderFooter($footerType, $footerProperties);'.PHP_EOL)
25
-            ->write('unset($footerType, $footerProperties);'.PHP_EOL)
23
+            ->raw(';' . PHP_EOL)
24
+            ->write(self::CODE_INSTANCE . '->startHeaderFooter($footerType, $footerProperties);' . PHP_EOL)
25
+            ->write('unset($footerType, $footerProperties);' . PHP_EOL)
26 26
             ->subcompile($this->getNode('body'))
27 27
             ->addDebugInfo($this)
28
-            ->write(self::CODE_INSTANCE.'->endHeaderFooter();'.PHP_EOL);
28
+            ->write(self::CODE_INSTANCE . '->endHeaderFooter();' . PHP_EOL);
29 29
     }
30 30
 
31 31
     /**
Please login to merge, or discard this patch.
Twig/Node/LeftNode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,12 +14,12 @@
 block discarded – undo
14 14
     {
15 15
         $compiler->addDebugInfo($this)
16 16
             ->write(self::CODE_FIX_CONTEXT)
17
-            ->write(self::CODE_INSTANCE.'->startAlignment(\'left\');'.PHP_EOL)
17
+            ->write(self::CODE_INSTANCE . '->startAlignment(\'left\');' . PHP_EOL)
18 18
             ->write("ob_start();\n")
19 19
             ->subcompile($this->getNode('body'))
20
-            ->write('$leftValue = trim(ob_get_clean());'.PHP_EOL)
21
-            ->write(self::CODE_INSTANCE.'->endAlignment($leftValue);'.PHP_EOL)
22
-            ->write('unset($leftValue);'.PHP_EOL);
20
+            ->write('$leftValue = trim(ob_get_clean());' . PHP_EOL)
21
+            ->write(self::CODE_INSTANCE . '->endAlignment($leftValue);' . PHP_EOL)
22
+            ->write('unset($leftValue);' . PHP_EOL);
23 23
     }
24 24
 
25 25
     /**
Please login to merge, or discard this patch.
Wrapper/CellWrapper.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -150,61 +150,61 @@
 block discarded – undo
150 150
 
151 151
     protected function initializeMappings()
152 152
     {
153
-        $this->mappings['break'] = function ($value) {
153
+        $this->mappings['break'] = function($value) {
154 154
             $this->sheetWrapper->getObject()->setBreak($this->object->getCoordinate(), $value);
155 155
         };
156
-        $this->mappings['dataType'] = function ($value) {
156
+        $this->mappings['dataType'] = function($value) {
157 157
             $this->object->setDataType($value);
158 158
         };
159
-        $this->mappings['dataValidation']['allowBlank'] = function ($value) {
159
+        $this->mappings['dataValidation']['allowBlank'] = function($value) {
160 160
             $this->object->getDataValidation()->setAllowBlank($value);
161 161
         };
162
-        $this->mappings['dataValidation']['error'] = function ($value) {
162
+        $this->mappings['dataValidation']['error'] = function($value) {
163 163
             $this->object->getDataValidation()->setError($value);
164 164
         };
165
-        $this->mappings['dataValidation']['errorStyle'] = function ($value) {
165
+        $this->mappings['dataValidation']['errorStyle'] = function($value) {
166 166
             $this->object->getDataValidation()->setErrorStyle($value);
167 167
         };
168
-        $this->mappings['dataValidation']['errorTitle'] = function ($value) {
168
+        $this->mappings['dataValidation']['errorTitle'] = function($value) {
169 169
             $this->object->getDataValidation()->setErrorTitle($value);
170 170
         };
171
-        $this->mappings['dataValidation']['formula1'] = function ($value) {
171
+        $this->mappings['dataValidation']['formula1'] = function($value) {
172 172
             $this->object->getDataValidation()->setFormula1($value);
173 173
         };
174
-        $this->mappings['dataValidation']['formula2'] = function ($value) {
174
+        $this->mappings['dataValidation']['formula2'] = function($value) {
175 175
             $this->object->getDataValidation()->setFormula2($value);
176 176
         };
177
-        $this->mappings['dataValidation']['operator'] = function ($value) {
177
+        $this->mappings['dataValidation']['operator'] = function($value) {
178 178
             $this->object->getDataValidation()->setOperator($value);
179 179
         };
180
-        $this->mappings['dataValidation']['prompt'] = function ($value) {
180
+        $this->mappings['dataValidation']['prompt'] = function($value) {
181 181
             $this->object->getDataValidation()->setPrompt($value);
182 182
         };
183
-        $this->mappings['dataValidation']['promptTitle'] = function ($value) {
183
+        $this->mappings['dataValidation']['promptTitle'] = function($value) {
184 184
             $this->object->getDataValidation()->setPromptTitle($value);
185 185
         };
186
-        $this->mappings['dataValidation']['showDropDown'] = function ($value) {
186
+        $this->mappings['dataValidation']['showDropDown'] = function($value) {
187 187
             $this->object->getDataValidation()->setShowDropDown($value);
188 188
         };
189
-        $this->mappings['dataValidation']['showErrorMessage'] = function ($value) {
189
+        $this->mappings['dataValidation']['showErrorMessage'] = function($value) {
190 190
             $this->object->getDataValidation()->setShowErrorMessage($value);
191 191
         };
192
-        $this->mappings['dataValidation']['showInputMessage'] = function ($value) {
192
+        $this->mappings['dataValidation']['showInputMessage'] = function($value) {
193 193
             $this->object->getDataValidation()->setShowInputMessage($value);
194 194
         };
195
-        $this->mappings['dataValidation']['type'] = function ($value) {
195
+        $this->mappings['dataValidation']['type'] = function($value) {
196 196
             $this->object->getDataValidation()->setType($value);
197 197
         };
198
-        $this->mappings['merge'] = function ($value) {
198
+        $this->mappings['merge'] = function($value) {
199 199
             if (is_int($value)) {
200
-                $value = Cell::stringFromColumnIndex($value).$this->sheetWrapper->getRow();
200
+                $value = Cell::stringFromColumnIndex($value) . $this->sheetWrapper->getRow();
201 201
             }
202 202
             $this->sheetWrapper->getObject()->mergeCells(sprintf('%s:%s', $this->object->getCoordinate(), $value));
203 203
         };
204
-        $this->mappings['style'] = function ($value) {
204
+        $this->mappings['style'] = function($value) {
205 205
             $this->sheetWrapper->getObject()->getStyle($this->object->getCoordinate())->applyFromArray($value);
206 206
         };
207
-        $this->mappings['url'] = function ($value) {
207
+        $this->mappings['url'] = function($value) {
208 208
             $this->object->getHyperlink()->setUrl($value);
209 209
         };
210 210
     }
Please login to merge, or discard this patch.
Wrapper/DrawingWrapper.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -191,52 +191,52 @@  discard block
 block discarded – undo
191 191
 
192 192
     protected function initializeMappings()
193 193
     {
194
-        $this->mappings['coordinates'] = function ($value) {
194
+        $this->mappings['coordinates'] = function($value) {
195 195
             $this->object->setCoordinates($value);
196 196
         };
197
-        $this->mappings['description'] = function ($value) {
197
+        $this->mappings['description'] = function($value) {
198 198
             $this->object->setDescription($value);
199 199
         };
200
-        $this->mappings['height'] = function ($value) {
200
+        $this->mappings['height'] = function($value) {
201 201
             $this->object->setHeight($value);
202 202
         };
203
-        $this->mappings['name'] = function ($value) {
203
+        $this->mappings['name'] = function($value) {
204 204
             $this->object->setName($value);
205 205
         };
206
-        $this->mappings['offsetX'] = function ($value) {
206
+        $this->mappings['offsetX'] = function($value) {
207 207
             $this->object->setOffsetX($value);
208 208
         };
209
-        $this->mappings['offsetY'] = function ($value) {
209
+        $this->mappings['offsetY'] = function($value) {
210 210
             $this->object->setOffsetY($value);
211 211
         };
212
-        $this->mappings['resizeProportional'] = function ($value) {
212
+        $this->mappings['resizeProportional'] = function($value) {
213 213
             $this->object->setResizeProportional($value);
214 214
         };
215
-        $this->mappings['rotation'] = function ($value) {
215
+        $this->mappings['rotation'] = function($value) {
216 216
             $this->object->setRotation($value);
217 217
         };
218
-        $this->mappings['shadow']['alignment'] = function ($value) {
218
+        $this->mappings['shadow']['alignment'] = function($value) {
219 219
             $this->object->getShadow()->setAlignment($value);
220 220
         };
221
-        $this->mappings['shadow']['alpha'] = function ($value) {
221
+        $this->mappings['shadow']['alpha'] = function($value) {
222 222
             $this->object->getShadow()->setAlpha($value);
223 223
         };
224
-        $this->mappings['shadow']['blurRadius'] = function ($value) {
224
+        $this->mappings['shadow']['blurRadius'] = function($value) {
225 225
             $this->object->getShadow()->setBlurRadius($value);
226 226
         };
227
-        $this->mappings['shadow']['color'] = function ($value) {
227
+        $this->mappings['shadow']['color'] = function($value) {
228 228
             $this->object->getShadow()->getColor()->setRGB($value);
229 229
         };
230
-        $this->mappings['shadow']['direction'] = function ($value) {
230
+        $this->mappings['shadow']['direction'] = function($value) {
231 231
             $this->object->getShadow()->setDirection($value);
232 232
         };
233
-        $this->mappings['shadow']['distance'] = function ($value) {
233
+        $this->mappings['shadow']['distance'] = function($value) {
234 234
             $this->object->getShadow()->setDistance($value);
235 235
         };
236
-        $this->mappings['shadow']['visible'] = function ($value) {
236
+        $this->mappings['shadow']['visible'] = function($value) {
237 237
             $this->object->getShadow()->setVisible($value);
238 238
         };
239
-        $this->mappings['width'] = function ($value) {
239
+        $this->mappings['width'] = function($value) {
240 240
             $this->object->setWidth($value);
241 241
         };
242 242
     }
@@ -253,21 +253,21 @@  discard block
 block discarded – undo
253 253
     {
254 254
         // create temp path
255 255
         $pathExtension = pathinfo($path, PATHINFO_EXTENSION);
256
-        $tempPath = sys_get_temp_dir().DIRECTORY_SEPARATOR.'xlsdrawing'.'_'.md5($path).($pathExtension ? '.'.$pathExtension : '');
256
+        $tempPath = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'xlsdrawing' . '_' . md5($path) . ($pathExtension ? '.' . $pathExtension : '');
257 257
 
258 258
         // create local copy
259 259
         if (!file_exists($tempPath)) {
260 260
             $data = file_get_contents($path);
261 261
             if ($data === false) {
262
-                throw new \InvalidArgumentException($path.' does not exist.');
262
+                throw new \InvalidArgumentException($path . ' does not exist.');
263 263
             }
264 264
             $temp = fopen($tempPath, 'wb+');
265 265
             if ($temp === false) {
266
-                throw new \RuntimeException('Cannot open '.$tempPath);
266
+                throw new \RuntimeException('Cannot open ' . $tempPath);
267 267
             }
268 268
             fwrite($temp, $data);
269 269
             if (fclose($temp) === false) {
270
-                throw new \RuntimeException('Cannot close '.$tempPath);
270
+                throw new \RuntimeException('Cannot close ' . $tempPath);
271 271
             }
272 272
             unset($data, $temp);
273 273
         }
Please login to merge, or discard this patch.
Wrapper/SheetWrapper.php 1 patch
Spacing   +57 added lines, -59 removed lines patch added patch discarded remove patch
@@ -238,173 +238,171 @@
 block discarded – undo
238 238
 
239 239
     protected function initializeMappings()
240 240
     {
241
-        $this->mappings['autoFilter'] = function ($value) {
241
+        $this->mappings['autoFilter'] = function($value) {
242 242
             $this->object->setAutoFilter($value);
243 243
         };
244
-        $this->mappings['columnDimension']['__multi'] = function ($column = 'default'): ColumnDimension {
244
+        $this->mappings['columnDimension']['__multi'] = function($column = 'default'): ColumnDimension {
245 245
             return $column === 'default' ?
246
-                $this->object->getDefaultColumnDimension() :
247
-                $this->object->getColumnDimension($column);
246
+                $this->object->getDefaultColumnDimension() : $this->object->getColumnDimension($column);
248 247
         };
249
-        $this->mappings['columnDimension']['autoSize'] = function ($value, ColumnDimension $object) {
248
+        $this->mappings['columnDimension']['autoSize'] = function($value, ColumnDimension $object) {
250 249
             $object->setAutoSize($value);
251 250
         };
252
-        $this->mappings['columnDimension']['collapsed'] = function ($value, ColumnDimension $object) {
251
+        $this->mappings['columnDimension']['collapsed'] = function($value, ColumnDimension $object) {
253 252
             $object->setCollapsed($value);
254 253
         };
255
-        $this->mappings['columnDimension']['columnIndex'] = function ($value, ColumnDimension $object) {
254
+        $this->mappings['columnDimension']['columnIndex'] = function($value, ColumnDimension $object) {
256 255
             $object->setColumnIndex($value);
257 256
         };
258
-        $this->mappings['columnDimension']['outlineLevel'] = function ($value, ColumnDimension $object) {
257
+        $this->mappings['columnDimension']['outlineLevel'] = function($value, ColumnDimension $object) {
259 258
             $object->setOutlineLevel($value);
260 259
         };
261
-        $this->mappings['columnDimension']['visible'] = function ($value, ColumnDimension $object) {
260
+        $this->mappings['columnDimension']['visible'] = function($value, ColumnDimension $object) {
262 261
             $object->setVisible($value);
263 262
         };
264
-        $this->mappings['columnDimension']['width'] = function ($value, ColumnDimension $object) {
263
+        $this->mappings['columnDimension']['width'] = function($value, ColumnDimension $object) {
265 264
             $object->setWidth($value);
266 265
         };
267
-        $this->mappings['columnDimension']['xfIndex'] = function ($value, ColumnDimension $object) {
266
+        $this->mappings['columnDimension']['xfIndex'] = function($value, ColumnDimension $object) {
268 267
             $object->setXfIndex($value);
269 268
         };
270
-        $this->mappings['pageMargins']['top'] = function ($value) {
269
+        $this->mappings['pageMargins']['top'] = function($value) {
271 270
             $this->object->getPageMargins()->setTop($value);
272 271
         };
273
-        $this->mappings['pageMargins']['bottom'] = function ($value) {
272
+        $this->mappings['pageMargins']['bottom'] = function($value) {
274 273
             $this->object->getPageMargins()->setBottom($value);
275 274
         };
276
-        $this->mappings['pageMargins']['left'] = function ($value) {
275
+        $this->mappings['pageMargins']['left'] = function($value) {
277 276
             $this->object->getPageMargins()->setLeft($value);
278 277
         };
279
-        $this->mappings['pageMargins']['right'] = function ($value) {
278
+        $this->mappings['pageMargins']['right'] = function($value) {
280 279
             $this->object->getPageMargins()->setRight($value);
281 280
         };
282
-        $this->mappings['pageMargins']['header'] = function ($value) {
281
+        $this->mappings['pageMargins']['header'] = function($value) {
283 282
             $this->object->getPageMargins()->setHeader($value);
284 283
         };
285
-        $this->mappings['pageMargins']['footer'] = function ($value) {
284
+        $this->mappings['pageMargins']['footer'] = function($value) {
286 285
             $this->object->getPageMargins()->setFooter($value);
287 286
         };
288
-        $this->mappings['pageSetup']['fitToHeight'] = function ($value) {
287
+        $this->mappings['pageSetup']['fitToHeight'] = function($value) {
289 288
             $this->object->getPageSetup()->setFitToHeight($value);
290 289
         };
291
-        $this->mappings['pageSetup']['fitToPage'] = function ($value) {
290
+        $this->mappings['pageSetup']['fitToPage'] = function($value) {
292 291
             $this->object->getPageSetup()->setFitToPage($value);
293 292
         };
294
-        $this->mappings['pageSetup']['fitToWidth'] = function ($value) {
293
+        $this->mappings['pageSetup']['fitToWidth'] = function($value) {
295 294
             $this->object->getPageSetup()->setFitToWidth($value);
296 295
         };
297
-        $this->mappings['pageSetup']['horizontalCentered'] = function ($value) {
296
+        $this->mappings['pageSetup']['horizontalCentered'] = function($value) {
298 297
             $this->object->getPageSetup()->setHorizontalCentered($value);
299 298
         };
300
-        $this->mappings['pageSetup']['orientation'] = function ($value) {
299
+        $this->mappings['pageSetup']['orientation'] = function($value) {
301 300
             $this->object->getPageSetup()->setOrientation($value);
302 301
         };
303
-        $this->mappings['pageSetup']['paperSize'] = function ($value) {
302
+        $this->mappings['pageSetup']['paperSize'] = function($value) {
304 303
             $this->object->getPageSetup()->setPaperSize($value);
305 304
         };
306
-        $this->mappings['pageSetup']['printArea'] = function ($value) {
305
+        $this->mappings['pageSetup']['printArea'] = function($value) {
307 306
             $this->object->getPageSetup()->setPrintArea($value);
308 307
         };
309
-        $this->mappings['pageSetup']['scale'] = function ($value) {
308
+        $this->mappings['pageSetup']['scale'] = function($value) {
310 309
             $this->object->getPageSetup()->setScale($value);
311 310
         };
312
-        $this->mappings['pageSetup']['verticalCentered'] = function ($value) {
311
+        $this->mappings['pageSetup']['verticalCentered'] = function($value) {
313 312
             $this->object->getPageSetup()->setVerticalCentered($value);
314 313
         };
315
-        $this->mappings['printGridlines'] = function ($value) {
314
+        $this->mappings['printGridlines'] = function($value) {
316 315
             $this->object->setPrintGridlines($value);
317 316
         };
318
-        $this->mappings['protection']['autoFilter'] = function ($value) {
317
+        $this->mappings['protection']['autoFilter'] = function($value) {
319 318
             $this->object->getProtection()->setAutoFilter($value);
320 319
         };
321
-        $this->mappings['protection']['deleteColumns'] = function ($value) {
320
+        $this->mappings['protection']['deleteColumns'] = function($value) {
322 321
             $this->object->getProtection()->setDeleteColumns($value);
323 322
         };
324
-        $this->mappings['protection']['deleteRows'] = function ($value) {
323
+        $this->mappings['protection']['deleteRows'] = function($value) {
325 324
             $this->object->getProtection()->setDeleteRows($value);
326 325
         };
327
-        $this->mappings['protection']['formatCells'] = function ($value) {
326
+        $this->mappings['protection']['formatCells'] = function($value) {
328 327
             $this->object->getProtection()->setFormatCells($value);
329 328
         };
330
-        $this->mappings['protection']['formatColumns'] = function ($value) {
329
+        $this->mappings['protection']['formatColumns'] = function($value) {
331 330
             $this->object->getProtection()->setFormatColumns($value);
332 331
         };
333
-        $this->mappings['protection']['formatRows'] = function ($value) {
332
+        $this->mappings['protection']['formatRows'] = function($value) {
334 333
             $this->object->getProtection()->setFormatRows($value);
335 334
         };
336
-        $this->mappings['protection']['insertColumns'] = function ($value) {
335
+        $this->mappings['protection']['insertColumns'] = function($value) {
337 336
             $this->object->getProtection()->setInsertColumns($value);
338 337
         };
339
-        $this->mappings['protection']['insertHyperlinks'] = function ($value) {
338
+        $this->mappings['protection']['insertHyperlinks'] = function($value) {
340 339
             $this->object->getProtection()->setInsertHyperlinks($value);
341 340
         };
342
-        $this->mappings['protection']['insertRows'] = function ($value) {
341
+        $this->mappings['protection']['insertRows'] = function($value) {
343 342
             $this->object->getProtection()->setInsertRows($value);
344 343
         };
345
-        $this->mappings['protection']['objects'] = function ($value) {
344
+        $this->mappings['protection']['objects'] = function($value) {
346 345
             $this->object->getProtection()->setObjects($value);
347 346
         };
348
-        $this->mappings['protection']['password'] = function ($value) {
347
+        $this->mappings['protection']['password'] = function($value) {
349 348
             $this->object->getProtection()->setPassword($value);
350 349
         };
351
-        $this->mappings['protection']['pivotTables'] = function ($value) {
350
+        $this->mappings['protection']['pivotTables'] = function($value) {
352 351
             $this->object->getProtection()->setPivotTables($value);
353 352
         };
354
-        $this->mappings['protection']['scenarios'] = function ($value) {
353
+        $this->mappings['protection']['scenarios'] = function($value) {
355 354
             $this->object->getProtection()->setScenarios($value);
356 355
         };
357
-        $this->mappings['protection']['selectLockedCells'] = function ($value) {
356
+        $this->mappings['protection']['selectLockedCells'] = function($value) {
358 357
             $this->object->getProtection()->setSelectLockedCells($value);
359 358
         };
360
-        $this->mappings['protection']['selectUnlockedCells'] = function ($value) {
359
+        $this->mappings['protection']['selectUnlockedCells'] = function($value) {
361 360
             $this->object->getProtection()->setSelectUnlockedCells($value);
362 361
         };
363
-        $this->mappings['protection']['sheet'] = function ($value) {
362
+        $this->mappings['protection']['sheet'] = function($value) {
364 363
             $this->object->getProtection()->setSheet($value);
365 364
         };
366
-        $this->mappings['protection']['sort'] = function ($value) {
365
+        $this->mappings['protection']['sort'] = function($value) {
367 366
             $this->object->getProtection()->setSort($value);
368 367
         };
369
-        $this->mappings['rightToLeft'] = function ($value) {
368
+        $this->mappings['rightToLeft'] = function($value) {
370 369
             $this->object->setRightToLeft($value);
371 370
         };
372
-        $this->mappings['rowDimension']['__multi'] = function ($column = 'default'): RowDimension {
371
+        $this->mappings['rowDimension']['__multi'] = function($column = 'default'): RowDimension {
373 372
             return $column === 'default' ?
374
-                $this->object->getDefaultRowDimension() :
375
-                $this->object->getRowDimension($column);
373
+                $this->object->getDefaultRowDimension() : $this->object->getRowDimension($column);
376 374
         };
377
-        $this->mappings['rowDimension']['collapsed'] = function ($value, RowDimension $object) {
375
+        $this->mappings['rowDimension']['collapsed'] = function($value, RowDimension $object) {
378 376
             $object->setCollapsed($value);
379 377
         };
380
-        $this->mappings['rowDimension']['outlineLevel'] = function ($value, RowDimension $object) {
378
+        $this->mappings['rowDimension']['outlineLevel'] = function($value, RowDimension $object) {
381 379
             $object->setOutlineLevel($value);
382 380
         };
383
-        $this->mappings['rowDimension']['rowHeight'] = function ($value, RowDimension $object) {
381
+        $this->mappings['rowDimension']['rowHeight'] = function($value, RowDimension $object) {
384 382
             $object->setRowHeight($value);
385 383
         };
386
-        $this->mappings['rowDimension']['rowIndex'] = function ($value, RowDimension $object) {
384
+        $this->mappings['rowDimension']['rowIndex'] = function($value, RowDimension $object) {
387 385
             $object->setRowIndex($value);
388 386
         };
389
-        $this->mappings['rowDimension']['visible'] = function ($value, RowDimension $object) {
387
+        $this->mappings['rowDimension']['visible'] = function($value, RowDimension $object) {
390 388
             $object->setVisible($value);
391 389
         };
392
-        $this->mappings['rowDimension']['xfIndex'] = function ($value, RowDimension $object) {
390
+        $this->mappings['rowDimension']['xfIndex'] = function($value, RowDimension $object) {
393 391
             $object->setXfIndex($value);
394 392
         };
395
-        $this->mappings['rowDimension']['zeroHeight'] = function ($value, RowDimension $object) {
393
+        $this->mappings['rowDimension']['zeroHeight'] = function($value, RowDimension $object) {
396 394
             $object->setZeroHeight($value);
397 395
         };
398
-        $this->mappings['sheetState'] = function ($value) {
396
+        $this->mappings['sheetState'] = function($value) {
399 397
             $this->object->setSheetState($value);
400 398
         };
401
-        $this->mappings['showGridlines'] = function ($value) {
399
+        $this->mappings['showGridlines'] = function($value) {
402 400
             $this->object->setShowGridlines($value);
403 401
         };
404
-        $this->mappings['tabColor'] = function ($value) {
402
+        $this->mappings['tabColor'] = function($value) {
405 403
             $this->object->getTabColor()->setRGB($value);
406 404
         };
407
-        $this->mappings['zoomScale'] = function ($value) {
405
+        $this->mappings['zoomScale'] = function($value) {
408 406
             $this->object->getSheetView()->setZoomScale($value);
409 407
         };
410 408
     }
Please login to merge, or discard this patch.
Wrapper/DocumentWrapper.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
             $format = $this->attributes['format'];
99 99
         }
100 100
 
101
-         // try Symfony request
101
+            // try Symfony request
102 102
         elseif (isset($this->context['app'])) {
103 103
             /**
104 104
              * @var AppVariable
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -200,61 +200,61 @@  discard block
 block discarded – undo
200 200
 
201 201
     protected function initializeMappings()
202 202
     {
203
-        $this->mappings['category'] = function ($value) {
203
+        $this->mappings['category'] = function($value) {
204 204
             $this->object->getProperties()->setCategory($value);
205 205
         };
206
-        $this->mappings['company'] = function ($value) {
206
+        $this->mappings['company'] = function($value) {
207 207
             $this->object->getProperties()->setCompany($value);
208 208
         };
209
-        $this->mappings['created'] = function ($value) {
209
+        $this->mappings['created'] = function($value) {
210 210
             $this->object->getProperties()->setCreated($value);
211 211
         };
212
-        $this->mappings['creator'] = function ($value) {
212
+        $this->mappings['creator'] = function($value) {
213 213
             $this->object->getProperties()->setCreator($value);
214 214
         };
215
-        $this->mappings['defaultStyle'] = function ($value) {
215
+        $this->mappings['defaultStyle'] = function($value) {
216 216
             $this->object->getDefaultStyle()->applyFromArray($value);
217 217
         };
218
-        $this->mappings['description'] = function ($value) {
218
+        $this->mappings['description'] = function($value) {
219 219
             $this->object->getProperties()->setDescription($value);
220 220
         };
221
-        $this->mappings['format'] = function ($value) {
221
+        $this->mappings['format'] = function($value) {
222 222
             $this->attributes['format'] = $value;
223 223
         };
224
-        $this->mappings['keywords'] = function ($value) {
224
+        $this->mappings['keywords'] = function($value) {
225 225
             $this->object->getProperties()->setKeywords($value);
226 226
         };
227
-        $this->mappings['lastModifiedBy'] = function ($value) {
227
+        $this->mappings['lastModifiedBy'] = function($value) {
228 228
             $this->object->getProperties()->setLastModifiedBy($value);
229 229
         };
230
-        $this->mappings['manager'] = function ($value) {
230
+        $this->mappings['manager'] = function($value) {
231 231
             $this->object->getProperties()->setManager($value);
232 232
         };
233
-        $this->mappings['modified'] = function ($value) {
233
+        $this->mappings['modified'] = function($value) {
234 234
             $this->object->getProperties()->setModified($value);
235 235
         };
236
-        $this->mappings['security']['lockRevision'] = function ($value) {
236
+        $this->mappings['security']['lockRevision'] = function($value) {
237 237
             $this->object->getSecurity()->setLockRevision($value);
238 238
         };
239
-        $this->mappings['security']['lockStructure'] = function ($value) {
239
+        $this->mappings['security']['lockStructure'] = function($value) {
240 240
             $this->object->getSecurity()->setLockStructure($value);
241 241
         };
242
-        $this->mappings['security']['lockWindows'] = function ($value) {
242
+        $this->mappings['security']['lockWindows'] = function($value) {
243 243
             $this->object->getSecurity()->setLockWindows($value);
244 244
         };
245
-        $this->mappings['security']['revisionsPassword'] = function ($value) {
245
+        $this->mappings['security']['revisionsPassword'] = function($value) {
246 246
             $this->object->getSecurity()->setRevisionsPassword($value);
247 247
         };
248
-        $this->mappings['security']['workbookPassword'] = function ($value) {
248
+        $this->mappings['security']['workbookPassword'] = function($value) {
249 249
             $this->object->getSecurity()->setWorkbookPassword($value);
250 250
         };
251
-        $this->mappings['subject'] = function ($value) {
251
+        $this->mappings['subject'] = function($value) {
252 252
             $this->object->getProperties()->setSubject($value);
253 253
         };
254
-        $this->mappings['template'] = function ($value) {
254
+        $this->mappings['template'] = function($value) {
255 255
             $this->attributes['template'] = $value;
256 256
         };
257
-        $this->mappings['title'] = function ($value) {
257
+        $this->mappings['title'] = function($value) {
258 258
             $this->object->getProperties()->setTitle($value);
259 259
         };
260 260
     }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
             foreach ($loader->getNamespaces() as $namespace) {
280 280
                 if (mb_strpos($path, $namespace) === 1) {
281 281
                     foreach ($loader->getPaths($namespace) as $namespacePath) {
282
-                        $expandedPathAttribute = str_replace('@'.$namespace, $namespacePath, $path);
282
+                        $expandedPathAttribute = str_replace('@' . $namespace, $namespacePath, $path);
283 283
                         if (file_exists($expandedPathAttribute)) {
284 284
                             return $expandedPathAttribute;
285 285
                         }
Please login to merge, or discard this patch.
Tests/Twig/BasicTwigTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@
 block discarded – undo
297 297
      */
298 298
     public function testDocumentTemplate($format)
299 299
     {
300
-        $document = $this->getDocument('documentTemplate.'.$format, $format);
300
+        $document = $this->getDocument('documentTemplate.' . $format, $format);
301 301
         static::assertNotNull($document, 'Document does not exist');
302 302
 
303 303
         $sheet = $document->getSheet(0);
Please login to merge, or discard this patch.
Tests/Twig/AbstractTwigTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
     {
38 38
         static::$fileSystem = new Filesystem();
39 39
 
40
-        $twigFileSystem = new \Twig_Loader_Filesystem([__DIR__.static::$RESOURCE_PATH]);
41
-        $twigFileSystem->addPath(__DIR__.static::$TEMPLATE_PATH, 'templates');
40
+        $twigFileSystem = new \Twig_Loader_Filesystem([__DIR__ . static::$RESOURCE_PATH]);
41
+        $twigFileSystem->addPath(__DIR__ . static::$TEMPLATE_PATH, 'templates');
42 42
 
43 43
         static::$environment = new \Twig_Environment($twigFileSystem, ['strict_variables' => true]);
44 44
         static::$environment->addExtension(new TwigSpreadsheetExtension());
45
-        static::$environment->setCache(__DIR__.static::$TEMP_PATH);
45
+        static::$environment->setCache(__DIR__ . static::$TEMP_PATH);
46 46
     }
47 47
 
48 48
     /**
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     public static function tearDownAfterClass()
54 54
     {
55 55
         if (in_array(getenv('DELETE_TEMP_FILES'), ['true', '1', 1, true], true)) {
56
-            static::$fileSystem->remove(__DIR__.static::$TEMP_PATH);
56
+            static::$fileSystem->remove(__DIR__ . static::$TEMP_PATH);
57 57
         }
58 58
     }
59 59
 
@@ -94,11 +94,11 @@  discard block
 block discarded – undo
94 94
         $appVariable->setRequestStack($requestStack);
95 95
 
96 96
         // generate source from template
97
-        $source = static::$environment->load($templateName.'.twig')->render(['app' => $appVariable]);
97
+        $source = static::$environment->load($templateName . '.twig')->render(['app' => $appVariable]);
98 98
 
99 99
         // create paths
100
-        $tempDirPath = __DIR__.static::$TEMP_PATH;
101
-        $tempFilePath = $tempDirPath.$templateName.'.'.$format;
100
+        $tempDirPath = __DIR__ . static::$TEMP_PATH;
101
+        $tempFilePath = $tempDirPath . $templateName . '.' . $format;
102 102
 
103 103
         // save source
104 104
         static::$fileSystem->dumpFile($tempFilePath, $source);
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
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         static::assertFileExists($path, 'File does not exist');
42 42
         static::assertGreaterThan(0, filesize($path), 'File is empty');
43
-        static::assertStringEqualsFile($path, '"Foo","Bar"'.PHP_EOL.'"Hello","World"'.PHP_EOL, 'Unexpected content');
43
+        static::assertStringEqualsFile($path, '"Foo","Bar"' . PHP_EOL . '"Hello","World"' . PHP_EOL, 'Unexpected content');
44 44
     }
45 45
 
46 46
     /**
@@ -56,6 +56,6 @@  discard block
 block discarded – undo
56 56
 
57 57
         static::assertFileExists($path, 'File does not exist');
58 58
         static::assertGreaterThan(0, filesize($path), 'File is empty');
59
-        static::assertStringEqualsFile($path, '"Hello2","World"'.PHP_EOL.'"Foo","Bar2"'.PHP_EOL, 'Unexpected content');
59
+        static::assertStringEqualsFile($path, '"Hello2","World"' . PHP_EOL . '"Foo","Bar2"' . PHP_EOL, 'Unexpected content');
60 60
     }
61 61
 }
Please login to merge, or discard this patch.