Completed
Push — master ( 3af88c...d76c98 )
by Mewes
05:10
created
DependencyInjection/MewesKTwigExcelExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     protected function loadInternal(array $mergedConfig, ContainerBuilder $container)
21 21
     {
22
-        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
22
+        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
23 23
         $loader->load('services.xml');
24 24
 
25 25
         $container->setParameter('mewes_k_twig_excel.pre_calculate_formulas', $mergedConfig['pre_calculate_formulas']);
Please login to merge, or discard this patch.
Tests/Functional/AppKernel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function getCacheDir()
65 65
     {
66
-        return __DIR__ . '/../../tmp/functional';
66
+        return __DIR__.'/../../tmp/functional';
67 67
     }
68 68
 
69 69
     /**
@@ -71,6 +71,6 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function getLogDir()
73 73
     {
74
-        return __DIR__ . '/../../tmp/functional/logs';
74
+        return __DIR__.'/../../tmp/functional/logs';
75 75
     }
76 76
 }
Please login to merge, or discard this patch.
Wrapper/XlsCellWrapper.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -51,55 +51,55 @@
 block discarded – undo
51 51
     {
52 52
         $wrapper = $this; // PHP 5.3 fix
53 53
 
54
-        $this->mappings['break'] = function ($value) use ($wrapper) {
54
+        $this->mappings['break'] = function($value) use ($wrapper) {
55 55
             $wrapper->sheetWrapper->getObject()->setBreak($wrapper->object->getCoordinate(), $value);
56 56
         };
57
-        $this->mappings['dataType'] = function ($value) use ($wrapper) {
57
+        $this->mappings['dataType'] = function($value) use ($wrapper) {
58 58
             $wrapper->object->setDataType($value);
59 59
         };
60
-        $this->mappings['dataValidation']['allowBlank'] = function ($value) use ($wrapper) {
60
+        $this->mappings['dataValidation']['allowBlank'] = function($value) use ($wrapper) {
61 61
             $wrapper->object->getDataValidation()->setAllowBlank($value);
62 62
         };
63
-        $this->mappings['dataValidation']['error'] = function ($value) use ($wrapper) {
63
+        $this->mappings['dataValidation']['error'] = function($value) use ($wrapper) {
64 64
             $wrapper->object->getDataValidation()->setError($value);
65 65
         };
66
-        $this->mappings['dataValidation']['errorStyle'] = function ($value) use ($wrapper) {
66
+        $this->mappings['dataValidation']['errorStyle'] = function($value) use ($wrapper) {
67 67
             $wrapper->object->getDataValidation()->setErrorStyle($value);
68 68
         };
69
-        $this->mappings['dataValidation']['errorTitle'] = function ($value) use ($wrapper) {
69
+        $this->mappings['dataValidation']['errorTitle'] = function($value) use ($wrapper) {
70 70
             $wrapper->object->getDataValidation()->setErrorTitle($value);
71 71
         };
72
-        $this->mappings['dataValidation']['formula1'] = function ($value) use ($wrapper) {
72
+        $this->mappings['dataValidation']['formula1'] = function($value) use ($wrapper) {
73 73
             $wrapper->object->getDataValidation()->setFormula1($value);
74 74
         };
75
-        $this->mappings['dataValidation']['formula2'] = function ($value) use ($wrapper) {
75
+        $this->mappings['dataValidation']['formula2'] = function($value) use ($wrapper) {
76 76
             $wrapper->object->getDataValidation()->setFormula2($value);
77 77
         };
78
-        $this->mappings['dataValidation']['operator'] = function ($value) use ($wrapper) {
78
+        $this->mappings['dataValidation']['operator'] = function($value) use ($wrapper) {
79 79
             $wrapper->object->getDataValidation()->setOperator($value);
80 80
         };
81
-        $this->mappings['dataValidation']['prompt'] = function ($value) use ($wrapper) {
81
+        $this->mappings['dataValidation']['prompt'] = function($value) use ($wrapper) {
82 82
             $wrapper->object->getDataValidation()->setPrompt($value);
83 83
         };
84
-        $this->mappings['dataValidation']['promptTitle'] = function ($value) use ($wrapper) {
84
+        $this->mappings['dataValidation']['promptTitle'] = function($value) use ($wrapper) {
85 85
             $wrapper->object->getDataValidation()->setPromptTitle($value);
86 86
         };
87
-        $this->mappings['dataValidation']['showDropDown'] = function ($value) use ($wrapper) {
87
+        $this->mappings['dataValidation']['showDropDown'] = function($value) use ($wrapper) {
88 88
             $wrapper->object->getDataValidation()->setShowDropDown($value);
89 89
         };
90
-        $this->mappings['dataValidation']['showErrorMessage'] = function ($value) use ($wrapper) {
90
+        $this->mappings['dataValidation']['showErrorMessage'] = function($value) use ($wrapper) {
91 91
             $wrapper->object->getDataValidation()->setShowErrorMessage($value);
92 92
         };
93
-        $this->mappings['dataValidation']['showInputMessage'] = function ($value) use ($wrapper) {
93
+        $this->mappings['dataValidation']['showInputMessage'] = function($value) use ($wrapper) {
94 94
             $wrapper->object->getDataValidation()->setShowInputMessage($value);
95 95
         };
96
-        $this->mappings['dataValidation']['type'] = function ($value) use ($wrapper) {
96
+        $this->mappings['dataValidation']['type'] = function($value) use ($wrapper) {
97 97
             $wrapper->object->getDataValidation()->setType($value);
98 98
         };
99
-        $this->mappings['style'] = function ($value) use ($wrapper) {
99
+        $this->mappings['style'] = function($value) use ($wrapper) {
100 100
             $wrapper->sheetWrapper->getObject()->getStyle($wrapper->object->getCoordinate())->applyFromArray($value);
101 101
         };
102
-        $this->mappings['url'] = function ($value) use ($wrapper) {
102
+        $this->mappings['url'] = function($value) use ($wrapper) {
103 103
             $wrapper->object->getHyperlink()->setUrl($value);
104 104
         };
105 105
     }
Please login to merge, or discard this patch.
Braces   +34 added lines, -17 removed lines patch added patch discarded remove patch
@@ -51,55 +51,72 @@
 block discarded – undo
51 51
     {
52 52
         $wrapper = $this; // PHP 5.3 fix
53 53
 
54
-        $this->mappings['break'] = function ($value) use ($wrapper) {
54
+        $this->mappings['break'] = function ($value) use ($wrapper)
55
+        {
55 56
             $wrapper->sheetWrapper->getObject()->setBreak($wrapper->object->getCoordinate(), $value);
56 57
         };
57
-        $this->mappings['dataType'] = function ($value) use ($wrapper) {
58
+        $this->mappings['dataType'] = function ($value) use ($wrapper)
59
+        {
58 60
             $wrapper->object->setDataType($value);
59 61
         };
60
-        $this->mappings['dataValidation']['allowBlank'] = function ($value) use ($wrapper) {
62
+        $this->mappings['dataValidation']['allowBlank'] = function ($value) use ($wrapper)
63
+        {
61 64
             $wrapper->object->getDataValidation()->setAllowBlank($value);
62 65
         };
63
-        $this->mappings['dataValidation']['error'] = function ($value) use ($wrapper) {
66
+        $this->mappings['dataValidation']['error'] = function ($value) use ($wrapper)
67
+        {
64 68
             $wrapper->object->getDataValidation()->setError($value);
65 69
         };
66
-        $this->mappings['dataValidation']['errorStyle'] = function ($value) use ($wrapper) {
70
+        $this->mappings['dataValidation']['errorStyle'] = function ($value) use ($wrapper)
71
+        {
67 72
             $wrapper->object->getDataValidation()->setErrorStyle($value);
68 73
         };
69
-        $this->mappings['dataValidation']['errorTitle'] = function ($value) use ($wrapper) {
74
+        $this->mappings['dataValidation']['errorTitle'] = function ($value) use ($wrapper)
75
+        {
70 76
             $wrapper->object->getDataValidation()->setErrorTitle($value);
71 77
         };
72
-        $this->mappings['dataValidation']['formula1'] = function ($value) use ($wrapper) {
78
+        $this->mappings['dataValidation']['formula1'] = function ($value) use ($wrapper)
79
+        {
73 80
             $wrapper->object->getDataValidation()->setFormula1($value);
74 81
         };
75
-        $this->mappings['dataValidation']['formula2'] = function ($value) use ($wrapper) {
82
+        $this->mappings['dataValidation']['formula2'] = function ($value) use ($wrapper)
83
+        {
76 84
             $wrapper->object->getDataValidation()->setFormula2($value);
77 85
         };
78
-        $this->mappings['dataValidation']['operator'] = function ($value) use ($wrapper) {
86
+        $this->mappings['dataValidation']['operator'] = function ($value) use ($wrapper)
87
+        {
79 88
             $wrapper->object->getDataValidation()->setOperator($value);
80 89
         };
81
-        $this->mappings['dataValidation']['prompt'] = function ($value) use ($wrapper) {
90
+        $this->mappings['dataValidation']['prompt'] = function ($value) use ($wrapper)
91
+        {
82 92
             $wrapper->object->getDataValidation()->setPrompt($value);
83 93
         };
84
-        $this->mappings['dataValidation']['promptTitle'] = function ($value) use ($wrapper) {
94
+        $this->mappings['dataValidation']['promptTitle'] = function ($value) use ($wrapper)
95
+        {
85 96
             $wrapper->object->getDataValidation()->setPromptTitle($value);
86 97
         };
87
-        $this->mappings['dataValidation']['showDropDown'] = function ($value) use ($wrapper) {
98
+        $this->mappings['dataValidation']['showDropDown'] = function ($value) use ($wrapper)
99
+        {
88 100
             $wrapper->object->getDataValidation()->setShowDropDown($value);
89 101
         };
90
-        $this->mappings['dataValidation']['showErrorMessage'] = function ($value) use ($wrapper) {
102
+        $this->mappings['dataValidation']['showErrorMessage'] = function ($value) use ($wrapper)
103
+        {
91 104
             $wrapper->object->getDataValidation()->setShowErrorMessage($value);
92 105
         };
93
-        $this->mappings['dataValidation']['showInputMessage'] = function ($value) use ($wrapper) {
106
+        $this->mappings['dataValidation']['showInputMessage'] = function ($value) use ($wrapper)
107
+        {
94 108
             $wrapper->object->getDataValidation()->setShowInputMessage($value);
95 109
         };
96
-        $this->mappings['dataValidation']['type'] = function ($value) use ($wrapper) {
110
+        $this->mappings['dataValidation']['type'] = function ($value) use ($wrapper)
111
+        {
97 112
             $wrapper->object->getDataValidation()->setType($value);
98 113
         };
99
-        $this->mappings['style'] = function ($value) use ($wrapper) {
114
+        $this->mappings['style'] = function ($value) use ($wrapper)
115
+        {
100 116
             $wrapper->sheetWrapper->getObject()->getStyle($wrapper->object->getCoordinate())->applyFromArray($value);
101 117
         };
102
-        $this->mappings['url'] = function ($value) use ($wrapper) {
118
+        $this->mappings['url'] = function ($value) use ($wrapper)
119
+        {
103 120
             $wrapper->object->getHyperlink()->setUrl($value);
104 121
         };
105 122
     }
Please login to merge, or discard this patch.
Wrapper/XlsDocumentWrapper.php 3 patches
Braces   +36 added lines, -18 removed lines patch added patch discarded remove patch
@@ -48,58 +48,76 @@
 block discarded – undo
48 48
     {
49 49
         $wrapper = $this; // PHP 5.3 fix
50 50
 
51
-        $this->mappings['category'] = function ($value) use ($wrapper) {
51
+        $this->mappings['category'] = function ($value) use ($wrapper)
52
+        {
52 53
             $wrapper->object->getProperties()->setCategory($value);
53 54
         };
54
-        $this->mappings['company'] = function ($value) use ($wrapper) {
55
+        $this->mappings['company'] = function ($value) use ($wrapper)
56
+        {
55 57
             $wrapper->object->getProperties()->setCompany($value);
56 58
         };
57
-        $this->mappings['created'] = function ($value) use ($wrapper) {
59
+        $this->mappings['created'] = function ($value) use ($wrapper)
60
+        {
58 61
             $wrapper->object->getProperties()->setCreated($value);
59 62
         };
60
-        $this->mappings['creator'] = function ($value) use ($wrapper) {
63
+        $this->mappings['creator'] = function ($value) use ($wrapper)
64
+        {
61 65
             $wrapper->object->getProperties()->setCreator($value);
62 66
         };
63
-        $this->mappings['defaultStyle'] = function ($value) use ($wrapper) {
67
+        $this->mappings['defaultStyle'] = function ($value) use ($wrapper)
68
+        {
64 69
             $wrapper->object->getDefaultStyle()->applyFromArray($value);
65 70
         };
66
-        $this->mappings['description'] = function ($value) use ($wrapper) {
71
+        $this->mappings['description'] = function ($value) use ($wrapper)
72
+        {
67 73
             $wrapper->object->getProperties()->setDescription($value);
68 74
         };
69
-        $this->mappings['format'] = function ($value) use ($wrapper) {
75
+        $this->mappings['format'] = function ($value) use ($wrapper)
76
+        {
70 77
             $wrapper->attributes['format'] = $value;
71 78
         };
72
-        $this->mappings['keywords'] = function ($value) use ($wrapper) {
79
+        $this->mappings['keywords'] = function ($value) use ($wrapper)
80
+        {
73 81
             $wrapper->object->getProperties()->setKeywords($value);
74 82
         };
75
-        $this->mappings['lastModifiedBy'] = function ($value) use ($wrapper) {
83
+        $this->mappings['lastModifiedBy'] = function ($value) use ($wrapper)
84
+        {
76 85
             $wrapper->object->getProperties()->setLastModifiedBy($value);
77 86
         };
78
-        $this->mappings['manager'] = function ($value) use ($wrapper) {
87
+        $this->mappings['manager'] = function ($value) use ($wrapper)
88
+        {
79 89
             $wrapper->object->getProperties()->setManager($value);
80 90
         };
81
-        $this->mappings['modified'] = function ($value) use ($wrapper) {
91
+        $this->mappings['modified'] = function ($value) use ($wrapper)
92
+        {
82 93
             $wrapper->object->getProperties()->setModified($value);
83 94
         };
84
-        $this->mappings['security']['lockRevision'] = function ($value) use ($wrapper) {
95
+        $this->mappings['security']['lockRevision'] = function ($value) use ($wrapper)
96
+        {
85 97
             $wrapper->object->getSecurity()->setLockRevision($value);
86 98
         };
87
-        $this->mappings['security']['lockStructure'] = function ($value) use ($wrapper) {
99
+        $this->mappings['security']['lockStructure'] = function ($value) use ($wrapper)
100
+        {
88 101
             $wrapper->object->getSecurity()->setLockStructure($value);
89 102
         };
90
-        $this->mappings['security']['lockWindows'] = function ($value) use ($wrapper) {
103
+        $this->mappings['security']['lockWindows'] = function ($value) use ($wrapper)
104
+        {
91 105
             $wrapper->object->getSecurity()->setLockWindows($value);
92 106
         };
93
-        $this->mappings['security']['revisionsPassword'] = function ($value) use ($wrapper) {
107
+        $this->mappings['security']['revisionsPassword'] = function ($value) use ($wrapper)
108
+        {
94 109
             $wrapper->object->getSecurity()->setRevisionsPassword($value);
95 110
         };
96
-        $this->mappings['security']['workbookPassword'] = function ($value) use ($wrapper) {
111
+        $this->mappings['security']['workbookPassword'] = function ($value) use ($wrapper)
112
+        {
97 113
             $wrapper->object->getSecurity()->setWorkbookPassword($value);
98 114
         };
99
-        $this->mappings['subject'] = function ($value) use ($wrapper) {
115
+        $this->mappings['subject'] = function ($value) use ($wrapper)
116
+        {
100 117
             $wrapper->object->getProperties()->setSubject($value);
101 118
         };
102
-        $this->mappings['title'] = function ($value) use ($wrapper) {
119
+        $this->mappings['title'] = function ($value) use ($wrapper)
120
+        {
103 121
             $wrapper->object->getProperties()->setTitle($value);
104 122
         };
105 123
     }
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
             $format = $this->attributes['format'];
141 141
         }
142 142
 
143
-         // try Symfony request
143
+            // try Symfony request
144 144
         else if (array_key_exists('app', $this->context)) {
145 145
             /**
146 146
              * @var $appVariable AppVariable
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -50,58 +50,58 @@
 block discarded – undo
50 50
     {
51 51
         $wrapper = $this; // PHP 5.3 fix
52 52
 
53
-        $this->mappings['category'] = function ($value) use ($wrapper) {
53
+        $this->mappings['category'] = function($value) use ($wrapper) {
54 54
             $wrapper->object->getProperties()->setCategory($value);
55 55
         };
56
-        $this->mappings['company'] = function ($value) use ($wrapper) {
56
+        $this->mappings['company'] = function($value) use ($wrapper) {
57 57
             $wrapper->object->getProperties()->setCompany($value);
58 58
         };
59
-        $this->mappings['created'] = function ($value) use ($wrapper) {
59
+        $this->mappings['created'] = function($value) use ($wrapper) {
60 60
             $wrapper->object->getProperties()->setCreated($value);
61 61
         };
62
-        $this->mappings['creator'] = function ($value) use ($wrapper) {
62
+        $this->mappings['creator'] = function($value) use ($wrapper) {
63 63
             $wrapper->object->getProperties()->setCreator($value);
64 64
         };
65
-        $this->mappings['defaultStyle'] = function ($value) use ($wrapper) {
65
+        $this->mappings['defaultStyle'] = function($value) use ($wrapper) {
66 66
             $wrapper->object->getDefaultStyle()->applyFromArray($value);
67 67
         };
68
-        $this->mappings['description'] = function ($value) use ($wrapper) {
68
+        $this->mappings['description'] = function($value) use ($wrapper) {
69 69
             $wrapper->object->getProperties()->setDescription($value);
70 70
         };
71
-        $this->mappings['format'] = function ($value) use ($wrapper) {
71
+        $this->mappings['format'] = function($value) use ($wrapper) {
72 72
             $wrapper->attributes['format'] = $value;
73 73
         };
74
-        $this->mappings['keywords'] = function ($value) use ($wrapper) {
74
+        $this->mappings['keywords'] = function($value) use ($wrapper) {
75 75
             $wrapper->object->getProperties()->setKeywords($value);
76 76
         };
77
-        $this->mappings['lastModifiedBy'] = function ($value) use ($wrapper) {
77
+        $this->mappings['lastModifiedBy'] = function($value) use ($wrapper) {
78 78
             $wrapper->object->getProperties()->setLastModifiedBy($value);
79 79
         };
80
-        $this->mappings['manager'] = function ($value) use ($wrapper) {
80
+        $this->mappings['manager'] = function($value) use ($wrapper) {
81 81
             $wrapper->object->getProperties()->setManager($value);
82 82
         };
83
-        $this->mappings['modified'] = function ($value) use ($wrapper) {
83
+        $this->mappings['modified'] = function($value) use ($wrapper) {
84 84
             $wrapper->object->getProperties()->setModified($value);
85 85
         };
86
-        $this->mappings['security']['lockRevision'] = function ($value) use ($wrapper) {
86
+        $this->mappings['security']['lockRevision'] = function($value) use ($wrapper) {
87 87
             $wrapper->object->getSecurity()->setLockRevision($value);
88 88
         };
89
-        $this->mappings['security']['lockStructure'] = function ($value) use ($wrapper) {
89
+        $this->mappings['security']['lockStructure'] = function($value) use ($wrapper) {
90 90
             $wrapper->object->getSecurity()->setLockStructure($value);
91 91
         };
92
-        $this->mappings['security']['lockWindows'] = function ($value) use ($wrapper) {
92
+        $this->mappings['security']['lockWindows'] = function($value) use ($wrapper) {
93 93
             $wrapper->object->getSecurity()->setLockWindows($value);
94 94
         };
95
-        $this->mappings['security']['revisionsPassword'] = function ($value) use ($wrapper) {
95
+        $this->mappings['security']['revisionsPassword'] = function($value) use ($wrapper) {
96 96
             $wrapper->object->getSecurity()->setRevisionsPassword($value);
97 97
         };
98
-        $this->mappings['security']['workbookPassword'] = function ($value) use ($wrapper) {
98
+        $this->mappings['security']['workbookPassword'] = function($value) use ($wrapper) {
99 99
             $wrapper->object->getSecurity()->setWorkbookPassword($value);
100 100
         };
101
-        $this->mappings['subject'] = function ($value) use ($wrapper) {
101
+        $this->mappings['subject'] = function($value) use ($wrapper) {
102 102
             $wrapper->object->getProperties()->setSubject($value);
103 103
         };
104
-        $this->mappings['title'] = function ($value) use ($wrapper) {
104
+        $this->mappings['title'] = function($value) use ($wrapper) {
105 105
             $wrapper->object->getProperties()->setTitle($value);
106 106
         };
107 107
     }
Please login to merge, or discard this patch.
Wrapper/XlsDrawingWrapper.php 2 patches
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -57,52 +57,52 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $wrapper = $this; // PHP 5.3 fix
59 59
 
60
-        $this->mappings['coordinates'] = function ($value) use ($wrapper) {
60
+        $this->mappings['coordinates'] = function($value) use ($wrapper) {
61 61
             $wrapper->object->setCoordinates($value);
62 62
         };
63
-        $this->mappings['description'] = function ($value) use ($wrapper) {
63
+        $this->mappings['description'] = function($value) use ($wrapper) {
64 64
             $wrapper->object->setDescription($value);
65 65
         };
66
-        $this->mappings['height'] = function ($value) use ($wrapper) {
66
+        $this->mappings['height'] = function($value) use ($wrapper) {
67 67
             $wrapper->object->setHeight($value);
68 68
         };
69
-        $this->mappings['name'] = function ($value) use ($wrapper) {
69
+        $this->mappings['name'] = function($value) use ($wrapper) {
70 70
             $wrapper->object->setName($value);
71 71
         };
72
-        $this->mappings['offsetX'] = function ($value) use ($wrapper) {
72
+        $this->mappings['offsetX'] = function($value) use ($wrapper) {
73 73
             $wrapper->object->setOffsetX($value);
74 74
         };
75
-        $this->mappings['offsetY'] = function ($value) use ($wrapper) {
75
+        $this->mappings['offsetY'] = function($value) use ($wrapper) {
76 76
             $wrapper->object->setOffsetY($value);
77 77
         };
78
-        $this->mappings['resizeProportional'] = function ($value) use ($wrapper) {
78
+        $this->mappings['resizeProportional'] = function($value) use ($wrapper) {
79 79
             $wrapper->object->setResizeProportional($value);
80 80
         };
81
-        $this->mappings['rotation'] = function ($value) use ($wrapper) {
81
+        $this->mappings['rotation'] = function($value) use ($wrapper) {
82 82
             $wrapper->object->setRotation($value);
83 83
         };
84
-        $this->mappings['shadow']['alignment'] = function ($value) use ($wrapper) {
84
+        $this->mappings['shadow']['alignment'] = function($value) use ($wrapper) {
85 85
             $wrapper->object->getShadow()->setAlignment($value);
86 86
         };
87
-        $this->mappings['shadow']['alpha'] = function ($value) use ($wrapper) {
87
+        $this->mappings['shadow']['alpha'] = function($value) use ($wrapper) {
88 88
             $wrapper->object->getShadow()->setAlpha($value);
89 89
         };
90
-        $this->mappings['shadow']['blurRadius'] = function ($value) use ($wrapper) {
90
+        $this->mappings['shadow']['blurRadius'] = function($value) use ($wrapper) {
91 91
             $wrapper->object->getShadow()->setBlurRadius($value);
92 92
         };
93
-        $this->mappings['shadow']['color'] = function ($value) use ($wrapper) {
93
+        $this->mappings['shadow']['color'] = function($value) use ($wrapper) {
94 94
             $wrapper->object->getShadow()->getColor()->setRGB($value);
95 95
         };
96
-        $this->mappings['shadow']['direction'] = function ($value) use ($wrapper) {
96
+        $this->mappings['shadow']['direction'] = function($value) use ($wrapper) {
97 97
             $wrapper->object->getShadow()->setDirection($value);
98 98
         };
99
-        $this->mappings['shadow']['distance'] = function ($value) use ($wrapper) {
99
+        $this->mappings['shadow']['distance'] = function($value) use ($wrapper) {
100 100
             $wrapper->object->getShadow()->setDistance($value);
101 101
         };
102
-        $this->mappings['shadow']['visible'] = function ($value) use ($wrapper) {
102
+        $this->mappings['shadow']['visible'] = function($value) use ($wrapper) {
103 103
             $wrapper->object->getShadow()->setVisible($value);
104 104
         };
105
-        $this->mappings['width'] = function ($value) use ($wrapper) {
105
+        $this->mappings['width'] = function($value) use ($wrapper) {
106 106
             $wrapper->object->setWidth($value);
107 107
         };
108 108
     }
@@ -197,21 +197,21 @@  discard block
 block discarded – undo
197 197
     {
198 198
         // create temp path
199 199
         $pathExtension = pathinfo($path, PATHINFO_EXTENSION);
200
-        $tempPath = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'xlsdrawing' . '_' . md5($path) . ($pathExtension ? '.' . $pathExtension : '');
200
+        $tempPath = sys_get_temp_dir().DIRECTORY_SEPARATOR.'xlsdrawing'.'_'.md5($path).($pathExtension ? '.'.$pathExtension : '');
201 201
 
202 202
         // create local copy
203 203
         if (!file_exists($tempPath)) {
204 204
             $data = file_get_contents($path);
205 205
             if ($data === false) {
206
-                throw new \InvalidArgumentException($path . ' does not exist.');
206
+                throw new \InvalidArgumentException($path.' does not exist.');
207 207
             }
208 208
             $temp = fopen($tempPath, 'w+');
209 209
             if ($temp === false) {
210
-                throw new \RuntimeException('Cannot open ' . $tempPath);
210
+                throw new \RuntimeException('Cannot open '.$tempPath);
211 211
             }
212 212
             fwrite($temp, $data);
213 213
             if (fclose($temp) === false) {
214
-                throw new \RuntimeException('Cannot close ' . $tempPath);
214
+                throw new \RuntimeException('Cannot close '.$tempPath);
215 215
             }
216 216
             unset($data, $temp);
217 217
         }
Please login to merge, or discard this patch.
Braces   +32 added lines, -16 removed lines patch added patch discarded remove patch
@@ -57,52 +57,68 @@
 block discarded – undo
57 57
     {
58 58
         $wrapper = $this; // PHP 5.3 fix
59 59
 
60
-        $this->mappings['coordinates'] = function ($value) use ($wrapper) {
60
+        $this->mappings['coordinates'] = function ($value) use ($wrapper)
61
+        {
61 62
             $wrapper->object->setCoordinates($value);
62 63
         };
63
-        $this->mappings['description'] = function ($value) use ($wrapper) {
64
+        $this->mappings['description'] = function ($value) use ($wrapper)
65
+        {
64 66
             $wrapper->object->setDescription($value);
65 67
         };
66
-        $this->mappings['height'] = function ($value) use ($wrapper) {
68
+        $this->mappings['height'] = function ($value) use ($wrapper)
69
+        {
67 70
             $wrapper->object->setHeight($value);
68 71
         };
69
-        $this->mappings['name'] = function ($value) use ($wrapper) {
72
+        $this->mappings['name'] = function ($value) use ($wrapper)
73
+        {
70 74
             $wrapper->object->setName($value);
71 75
         };
72
-        $this->mappings['offsetX'] = function ($value) use ($wrapper) {
76
+        $this->mappings['offsetX'] = function ($value) use ($wrapper)
77
+        {
73 78
             $wrapper->object->setOffsetX($value);
74 79
         };
75
-        $this->mappings['offsetY'] = function ($value) use ($wrapper) {
80
+        $this->mappings['offsetY'] = function ($value) use ($wrapper)
81
+        {
76 82
             $wrapper->object->setOffsetY($value);
77 83
         };
78
-        $this->mappings['resizeProportional'] = function ($value) use ($wrapper) {
84
+        $this->mappings['resizeProportional'] = function ($value) use ($wrapper)
85
+        {
79 86
             $wrapper->object->setResizeProportional($value);
80 87
         };
81
-        $this->mappings['rotation'] = function ($value) use ($wrapper) {
88
+        $this->mappings['rotation'] = function ($value) use ($wrapper)
89
+        {
82 90
             $wrapper->object->setRotation($value);
83 91
         };
84
-        $this->mappings['shadow']['alignment'] = function ($value) use ($wrapper) {
92
+        $this->mappings['shadow']['alignment'] = function ($value) use ($wrapper)
93
+        {
85 94
             $wrapper->object->getShadow()->setAlignment($value);
86 95
         };
87
-        $this->mappings['shadow']['alpha'] = function ($value) use ($wrapper) {
96
+        $this->mappings['shadow']['alpha'] = function ($value) use ($wrapper)
97
+        {
88 98
             $wrapper->object->getShadow()->setAlpha($value);
89 99
         };
90
-        $this->mappings['shadow']['blurRadius'] = function ($value) use ($wrapper) {
100
+        $this->mappings['shadow']['blurRadius'] = function ($value) use ($wrapper)
101
+        {
91 102
             $wrapper->object->getShadow()->setBlurRadius($value);
92 103
         };
93
-        $this->mappings['shadow']['color'] = function ($value) use ($wrapper) {
104
+        $this->mappings['shadow']['color'] = function ($value) use ($wrapper)
105
+        {
94 106
             $wrapper->object->getShadow()->getColor()->setRGB($value);
95 107
         };
96
-        $this->mappings['shadow']['direction'] = function ($value) use ($wrapper) {
108
+        $this->mappings['shadow']['direction'] = function ($value) use ($wrapper)
109
+        {
97 110
             $wrapper->object->getShadow()->setDirection($value);
98 111
         };
99
-        $this->mappings['shadow']['distance'] = function ($value) use ($wrapper) {
112
+        $this->mappings['shadow']['distance'] = function ($value) use ($wrapper)
113
+        {
100 114
             $wrapper->object->getShadow()->setDistance($value);
101 115
         };
102
-        $this->mappings['shadow']['visible'] = function ($value) use ($wrapper) {
116
+        $this->mappings['shadow']['visible'] = function ($value) use ($wrapper)
117
+        {
103 118
             $wrapper->object->getShadow()->setVisible($value);
104 119
         };
105
-        $this->mappings['width'] = function ($value) use ($wrapper) {
120
+        $this->mappings['width'] = function ($value) use ($wrapper)
121
+        {
106 122
             $wrapper->object->setWidth($value);
107 123
         };
108 124
     }
Please login to merge, or discard this patch.
Wrapper/XlsHeaderFooterWrapper.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,10 +58,10 @@
 block discarded – undo
58 58
     {
59 59
         $wrapper = $this; // PHP 5.3 fix
60 60
 
61
-        $this->mappings['scaleWithDocument'] = function ($value) use ($wrapper) {
61
+        $this->mappings['scaleWithDocument'] = function($value) use ($wrapper) {
62 62
             $wrapper->object->setScaleWithDocument($value);
63 63
         };
64
-        $this->mappings['alignWithMargins'] = function ($value) use ($wrapper) {
64
+        $this->mappings['alignWithMargins'] = function($value) use ($wrapper) {
65 65
             $wrapper->object->setAlignWithMargins($value);
66 66
         };
67 67
     }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,10 +58,12 @@
 block discarded – undo
58 58
     {
59 59
         $wrapper = $this; // PHP 5.3 fix
60 60
 
61
-        $this->mappings['scaleWithDocument'] = function ($value) use ($wrapper) {
61
+        $this->mappings['scaleWithDocument'] = function ($value) use ($wrapper)
62
+        {
62 63
             $wrapper->object->setScaleWithDocument($value);
63 64
         };
64
-        $this->mappings['alignWithMargins'] = function ($value) use ($wrapper) {
65
+        $this->mappings['alignWithMargins'] = function ($value) use ($wrapper)
66
+        {
65 67
             $wrapper->object->setAlignWithMargins($value);
66 68
         };
67 69
     }
Please login to merge, or discard this patch.
Wrapper/XlsSheetWrapper.php 2 patches
Spacing   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -73,167 +73,167 @@
 block discarded – undo
73 73
         $wrapper = $this; // PHP 5.3 fix
74 74
 
75 75
         $this->mappings['columnDimension']['__multi'] = true;
76
-        $this->mappings['columnDimension']['__object'] = function ($key = 'default') use ($wrapper) {
76
+        $this->mappings['columnDimension']['__object'] = function($key = 'default') use ($wrapper) {
77 77
             return $key === 'default' ? $wrapper->object->getDefaultColumnDimension() : $wrapper->object->getColumnDimension($key);
78 78
         };
79
-        $this->mappings['columnDimension']['autoSize'] = function ($key, $value) use ($wrapper) {
79
+        $this->mappings['columnDimension']['autoSize'] = function($key, $value) use ($wrapper) {
80 80
             $wrapper->mappings['columnDimension']['__object']($key)->setAutoSize($value);
81 81
         };
82
-        $this->mappings['columnDimension']['collapsed'] = function ($key, $value) use ($wrapper) {
82
+        $this->mappings['columnDimension']['collapsed'] = function($key, $value) use ($wrapper) {
83 83
             $wrapper->mappings['columnDimension']['__object']($key)->setCollapsed($value);
84 84
         };
85
-        $this->mappings['columnDimension']['columnIndex'] = function ($key, $value) use ($wrapper) {
85
+        $this->mappings['columnDimension']['columnIndex'] = function($key, $value) use ($wrapper) {
86 86
             $wrapper->mappings['columnDimension']['__object']($key)->setColumnIndex($value);
87 87
         };
88
-        $this->mappings['columnDimension']['outlineLevel'] = function ($key, $value) use ($wrapper) {
88
+        $this->mappings['columnDimension']['outlineLevel'] = function($key, $value) use ($wrapper) {
89 89
             $wrapper->mappings['columnDimension']['__object']($key)->setOutlineLevel($value);
90 90
         };
91
-        $this->mappings['columnDimension']['visible'] = function ($key, $value) use ($wrapper) {
91
+        $this->mappings['columnDimension']['visible'] = function($key, $value) use ($wrapper) {
92 92
             $wrapper->mappings['columnDimension']['__object']($key)->setVisible($value);
93 93
         };
94
-        $this->mappings['columnDimension']['width'] = function ($key, $value) use ($wrapper) {
94
+        $this->mappings['columnDimension']['width'] = function($key, $value) use ($wrapper) {
95 95
             $wrapper->mappings['columnDimension']['__object']($key)->setWidth($value);
96 96
         };
97
-        $this->mappings['columnDimension']['xfIndex'] = function ($key, $value) use ($wrapper) {
97
+        $this->mappings['columnDimension']['xfIndex'] = function($key, $value) use ($wrapper) {
98 98
             $wrapper->mappings['columnDimension']['__object']($key)->setXfIndex($value);
99 99
         };
100
-        $this->mappings['pageMargins']['top'] = function ($value) use ($wrapper) {
100
+        $this->mappings['pageMargins']['top'] = function($value) use ($wrapper) {
101 101
             $wrapper->object->getPageMargins()->setTop($value);
102 102
         };
103
-        $this->mappings['pageMargins']['bottom'] = function ($value) use ($wrapper) {
103
+        $this->mappings['pageMargins']['bottom'] = function($value) use ($wrapper) {
104 104
             $wrapper->object->getPageMargins()->setBottom($value);
105 105
         };
106
-        $this->mappings['pageMargins']['left'] = function ($value) use ($wrapper) {
106
+        $this->mappings['pageMargins']['left'] = function($value) use ($wrapper) {
107 107
             $wrapper->object->getPageMargins()->setLeft($value);
108 108
         };
109
-        $this->mappings['pageMargins']['right'] = function ($value) use ($wrapper) {
109
+        $this->mappings['pageMargins']['right'] = function($value) use ($wrapper) {
110 110
             $wrapper->object->getPageMargins()->setRight($value);
111 111
         };
112
-        $this->mappings['pageMargins']['header'] = function ($value) use ($wrapper) {
112
+        $this->mappings['pageMargins']['header'] = function($value) use ($wrapper) {
113 113
             $wrapper->object->getPageMargins()->setHeader($value);
114 114
         };
115
-        $this->mappings['pageMargins']['footer'] = function ($value) use ($wrapper) {
115
+        $this->mappings['pageMargins']['footer'] = function($value) use ($wrapper) {
116 116
             $wrapper->object->getPageMargins()->setFooter($value);
117 117
         };
118
-        $this->mappings['pageSetup']['fitToHeight'] = function ($value) use ($wrapper) {
118
+        $this->mappings['pageSetup']['fitToHeight'] = function($value) use ($wrapper) {
119 119
             $wrapper->object->getPageSetup()->setFitToHeight($value);
120 120
         };
121
-        $this->mappings['pageSetup']['fitToPage'] = function ($value) use ($wrapper) {
121
+        $this->mappings['pageSetup']['fitToPage'] = function($value) use ($wrapper) {
122 122
             $wrapper->object->getPageSetup()->setFitToPage($value);
123 123
         };
124
-        $this->mappings['pageSetup']['fitToWidth'] = function ($value) use ($wrapper) {
124
+        $this->mappings['pageSetup']['fitToWidth'] = function($value) use ($wrapper) {
125 125
             $wrapper->object->getPageSetup()->setFitToWidth($value);
126 126
         };
127
-        $this->mappings['pageSetup']['horizontalCentered'] = function ($value) use ($wrapper) {
127
+        $this->mappings['pageSetup']['horizontalCentered'] = function($value) use ($wrapper) {
128 128
             $wrapper->object->getPageSetup()->setHorizontalCentered($value);
129 129
         };
130
-        $this->mappings['pageSetup']['orientation'] = function ($value) use ($wrapper) {
130
+        $this->mappings['pageSetup']['orientation'] = function($value) use ($wrapper) {
131 131
             $wrapper->object->getPageSetup()->setOrientation($value);
132 132
         };
133
-        $this->mappings['pageSetup']['paperSize'] = function ($value) use ($wrapper) {
133
+        $this->mappings['pageSetup']['paperSize'] = function($value) use ($wrapper) {
134 134
             $wrapper->object->getPageSetup()->setPaperSize($value);
135 135
         };
136
-        $this->mappings['pageSetup']['printArea'] = function ($value) use ($wrapper) {
136
+        $this->mappings['pageSetup']['printArea'] = function($value) use ($wrapper) {
137 137
             $wrapper->object->getPageSetup()->setPrintArea($value);
138 138
         };
139
-        $this->mappings['pageSetup']['scale'] = function ($value) use ($wrapper) {
139
+        $this->mappings['pageSetup']['scale'] = function($value) use ($wrapper) {
140 140
             $wrapper->object->getPageSetup()->setScale($value);
141 141
         };
142
-        $this->mappings['pageSetup']['verticalCentered'] = function ($value) use ($wrapper) {
142
+        $this->mappings['pageSetup']['verticalCentered'] = function($value) use ($wrapper) {
143 143
             $wrapper->object->getPageSetup()->setVerticalCentered($value);
144 144
         };
145
-        $this->mappings['printGridlines'] = function ($value) use ($wrapper) {
145
+        $this->mappings['printGridlines'] = function($value) use ($wrapper) {
146 146
             $wrapper->object->setPrintGridlines($value);
147 147
         };
148
-        $this->mappings['protection']['autoFilter'] = function ($value) use ($wrapper) {
148
+        $this->mappings['protection']['autoFilter'] = function($value) use ($wrapper) {
149 149
             $wrapper->object->getProtection()->setAutoFilter($value);
150 150
         };
151
-        $this->mappings['protection']['deleteColumns'] = function ($value) use ($wrapper) {
151
+        $this->mappings['protection']['deleteColumns'] = function($value) use ($wrapper) {
152 152
             $wrapper->object->getProtection()->setDeleteColumns($value);
153 153
         };
154
-        $this->mappings['protection']['deleteRows'] = function ($value) use ($wrapper) {
154
+        $this->mappings['protection']['deleteRows'] = function($value) use ($wrapper) {
155 155
             $wrapper->object->getProtection()->setDeleteRows($value);
156 156
         };
157
-        $this->mappings['protection']['formatCells'] = function ($value) use ($wrapper) {
157
+        $this->mappings['protection']['formatCells'] = function($value) use ($wrapper) {
158 158
             $wrapper->object->getProtection()->setFormatCells($value);
159 159
         };
160
-        $this->mappings['protection']['formatColumns'] = function ($value) use ($wrapper) {
160
+        $this->mappings['protection']['formatColumns'] = function($value) use ($wrapper) {
161 161
             $wrapper->object->getProtection()->setFormatColumns($value);
162 162
         };
163
-        $this->mappings['protection']['formatRows'] = function ($value) use ($wrapper) {
163
+        $this->mappings['protection']['formatRows'] = function($value) use ($wrapper) {
164 164
             $wrapper->object->getProtection()->setFormatRows($value);
165 165
         };
166
-        $this->mappings['protection']['insertColumns'] = function ($value) use ($wrapper) {
166
+        $this->mappings['protection']['insertColumns'] = function($value) use ($wrapper) {
167 167
             $wrapper->object->getProtection()->setInsertColumns($value);
168 168
         };
169
-        $this->mappings['protection']['insertHyperlinks'] = function ($value) use ($wrapper) {
169
+        $this->mappings['protection']['insertHyperlinks'] = function($value) use ($wrapper) {
170 170
             $wrapper->object->getProtection()->setInsertHyperlinks($value);
171 171
         };
172
-        $this->mappings['protection']['insertRows'] = function ($value) use ($wrapper) {
172
+        $this->mappings['protection']['insertRows'] = function($value) use ($wrapper) {
173 173
             $wrapper->object->getProtection()->setInsertRows($value);
174 174
         };
175
-        $this->mappings['protection']['objects'] = function ($value) use ($wrapper) {
175
+        $this->mappings['protection']['objects'] = function($value) use ($wrapper) {
176 176
             $wrapper->object->getProtection()->setObjects($value);
177 177
         };
178
-        $this->mappings['protection']['password'] = function ($value) use ($wrapper) {
178
+        $this->mappings['protection']['password'] = function($value) use ($wrapper) {
179 179
             $wrapper->object->getProtection()->setPassword($value);
180 180
         };
181
-        $this->mappings['protection']['pivotTables'] = function ($value) use ($wrapper) {
181
+        $this->mappings['protection']['pivotTables'] = function($value) use ($wrapper) {
182 182
             $wrapper->object->getProtection()->setPivotTables($value);
183 183
         };
184
-        $this->mappings['protection']['scenarios'] = function ($value) use ($wrapper) {
184
+        $this->mappings['protection']['scenarios'] = function($value) use ($wrapper) {
185 185
             $wrapper->object->getProtection()->setScenarios($value);
186 186
         };
187
-        $this->mappings['protection']['selectLockedCells'] = function ($value) use ($wrapper) {
187
+        $this->mappings['protection']['selectLockedCells'] = function($value) use ($wrapper) {
188 188
             $wrapper->object->getProtection()->setSelectLockedCells($value);
189 189
         };
190
-        $this->mappings['protection']['selectUnlockedCells'] = function ($value) use ($wrapper) {
190
+        $this->mappings['protection']['selectUnlockedCells'] = function($value) use ($wrapper) {
191 191
             $wrapper->object->getProtection()->setSelectUnlockedCells($value);
192 192
         };
193
-        $this->mappings['protection']['sheet'] = function ($value) use ($wrapper) {
193
+        $this->mappings['protection']['sheet'] = function($value) use ($wrapper) {
194 194
             $wrapper->object->getProtection()->setSheet($value);
195 195
         };
196
-        $this->mappings['protection']['sort'] = function ($value) use ($wrapper) {
196
+        $this->mappings['protection']['sort'] = function($value) use ($wrapper) {
197 197
             $wrapper->object->getProtection()->setSort($value);
198 198
         };
199
-        $this->mappings['rightToLeft'] = function ($value) use ($wrapper) {
199
+        $this->mappings['rightToLeft'] = function($value) use ($wrapper) {
200 200
             $wrapper->object->setRightToLeft($value);
201 201
         };
202 202
         $this->mappings['rowDimension']['__multi'] = true;
203
-        $this->mappings['rowDimension']['__object'] = function ($key) use ($wrapper) {
203
+        $this->mappings['rowDimension']['__object'] = function($key) use ($wrapper) {
204 204
             return $key === 'default' ? $wrapper->object->getDefaultRowDimension() : $wrapper->object->getRowDimension($key);
205 205
         };
206
-        $this->mappings['rowDimension']['collapsed'] = function ($key, $value) use ($wrapper) {
206
+        $this->mappings['rowDimension']['collapsed'] = function($key, $value) use ($wrapper) {
207 207
             $wrapper->mappings['rowDimension']['__object']($key)->setCollapsed($value);
208 208
         };
209
-        $this->mappings['rowDimension']['outlineLevel'] = function ($key, $value) use ($wrapper) {
209
+        $this->mappings['rowDimension']['outlineLevel'] = function($key, $value) use ($wrapper) {
210 210
             $wrapper->mappings['rowDimension']['__object']($key)->setOutlineLevel($value);
211 211
         };
212
-        $this->mappings['rowDimension']['rowHeight'] = function ($key, $value) use ($wrapper) {
212
+        $this->mappings['rowDimension']['rowHeight'] = function($key, $value) use ($wrapper) {
213 213
             $wrapper->mappings['rowDimension']['__object']($key)->setRowHeight($value);
214 214
         };
215
-        $this->mappings['rowDimension']['rowIndex'] = function ($key, $value) use ($wrapper) {
215
+        $this->mappings['rowDimension']['rowIndex'] = function($key, $value) use ($wrapper) {
216 216
             $wrapper->mappings['rowDimension']['__object']($key)->setRowIndex($value);
217 217
         };
218
-        $this->mappings['rowDimension']['visible'] = function ($key, $value) use ($wrapper) {
218
+        $this->mappings['rowDimension']['visible'] = function($key, $value) use ($wrapper) {
219 219
             $wrapper->mappings['rowDimension']['__object']($key)->setVisible($value);
220 220
         };
221
-        $this->mappings['rowDimension']['xfIndex'] = function ($key, $value) use ($wrapper) {
221
+        $this->mappings['rowDimension']['xfIndex'] = function($key, $value) use ($wrapper) {
222 222
             $wrapper->mappings['rowDimension']['__object']($key)->setXfIndex($value);
223 223
         };
224
-        $this->mappings['rowDimension']['zeroHeight'] = function ($key, $value) use ($wrapper) {
224
+        $this->mappings['rowDimension']['zeroHeight'] = function($key, $value) use ($wrapper) {
225 225
             $wrapper->mappings['rowDimension']['__object']($key)->setZeroHeight($value);
226 226
         };
227
-        $this->mappings['sheetState'] = function ($value) use ($wrapper) {
227
+        $this->mappings['sheetState'] = function($value) use ($wrapper) {
228 228
             $wrapper->object->setSheetState($value);
229 229
         };
230
-        $this->mappings['showGridlines'] = function ($value) use ($wrapper) {
230
+        $this->mappings['showGridlines'] = function($value) use ($wrapper) {
231 231
             $wrapper->object->setShowGridlines($value);
232 232
         };
233
-        $this->mappings['tabColor'] = function ($value) use ($wrapper) {
233
+        $this->mappings['tabColor'] = function($value) use ($wrapper) {
234 234
             $wrapper->object->getTabColor()->setRGB($value);
235 235
         };
236
-        $this->mappings['zoomScale'] = function ($value) use ($wrapper) {
236
+        $this->mappings['zoomScale'] = function($value) use ($wrapper) {
237 237
             $wrapper->object->getSheetView()->setZoomScale($value);
238 238
         };
239 239
     }
Please login to merge, or discard this patch.
Braces   +108 added lines, -54 removed lines patch added patch discarded remove patch
@@ -73,167 +73,221 @@
 block discarded – undo
73 73
         $wrapper = $this; // PHP 5.3 fix
74 74
 
75 75
         $this->mappings['columnDimension']['__multi'] = true;
76
-        $this->mappings['columnDimension']['__object'] = function ($key = 'default') use ($wrapper) {
76
+        $this->mappings['columnDimension']['__object'] = function ($key = 'default') use ($wrapper)
77
+        {
77 78
             return $key === 'default' ? $wrapper->object->getDefaultColumnDimension() : $wrapper->object->getColumnDimension($key);
78 79
         };
79
-        $this->mappings['columnDimension']['autoSize'] = function ($key, $value) use ($wrapper) {
80
+        $this->mappings['columnDimension']['autoSize'] = function ($key, $value) use ($wrapper)
81
+        {
80 82
             $wrapper->mappings['columnDimension']['__object']($key)->setAutoSize($value);
81 83
         };
82
-        $this->mappings['columnDimension']['collapsed'] = function ($key, $value) use ($wrapper) {
84
+        $this->mappings['columnDimension']['collapsed'] = function ($key, $value) use ($wrapper)
85
+        {
83 86
             $wrapper->mappings['columnDimension']['__object']($key)->setCollapsed($value);
84 87
         };
85
-        $this->mappings['columnDimension']['columnIndex'] = function ($key, $value) use ($wrapper) {
88
+        $this->mappings['columnDimension']['columnIndex'] = function ($key, $value) use ($wrapper)
89
+        {
86 90
             $wrapper->mappings['columnDimension']['__object']($key)->setColumnIndex($value);
87 91
         };
88
-        $this->mappings['columnDimension']['outlineLevel'] = function ($key, $value) use ($wrapper) {
92
+        $this->mappings['columnDimension']['outlineLevel'] = function ($key, $value) use ($wrapper)
93
+        {
89 94
             $wrapper->mappings['columnDimension']['__object']($key)->setOutlineLevel($value);
90 95
         };
91
-        $this->mappings['columnDimension']['visible'] = function ($key, $value) use ($wrapper) {
96
+        $this->mappings['columnDimension']['visible'] = function ($key, $value) use ($wrapper)
97
+        {
92 98
             $wrapper->mappings['columnDimension']['__object']($key)->setVisible($value);
93 99
         };
94
-        $this->mappings['columnDimension']['width'] = function ($key, $value) use ($wrapper) {
100
+        $this->mappings['columnDimension']['width'] = function ($key, $value) use ($wrapper)
101
+        {
95 102
             $wrapper->mappings['columnDimension']['__object']($key)->setWidth($value);
96 103
         };
97
-        $this->mappings['columnDimension']['xfIndex'] = function ($key, $value) use ($wrapper) {
104
+        $this->mappings['columnDimension']['xfIndex'] = function ($key, $value) use ($wrapper)
105
+        {
98 106
             $wrapper->mappings['columnDimension']['__object']($key)->setXfIndex($value);
99 107
         };
100
-        $this->mappings['pageMargins']['top'] = function ($value) use ($wrapper) {
108
+        $this->mappings['pageMargins']['top'] = function ($value) use ($wrapper)
109
+        {
101 110
             $wrapper->object->getPageMargins()->setTop($value);
102 111
         };
103
-        $this->mappings['pageMargins']['bottom'] = function ($value) use ($wrapper) {
112
+        $this->mappings['pageMargins']['bottom'] = function ($value) use ($wrapper)
113
+        {
104 114
             $wrapper->object->getPageMargins()->setBottom($value);
105 115
         };
106
-        $this->mappings['pageMargins']['left'] = function ($value) use ($wrapper) {
116
+        $this->mappings['pageMargins']['left'] = function ($value) use ($wrapper)
117
+        {
107 118
             $wrapper->object->getPageMargins()->setLeft($value);
108 119
         };
109
-        $this->mappings['pageMargins']['right'] = function ($value) use ($wrapper) {
120
+        $this->mappings['pageMargins']['right'] = function ($value) use ($wrapper)
121
+        {
110 122
             $wrapper->object->getPageMargins()->setRight($value);
111 123
         };
112
-        $this->mappings['pageMargins']['header'] = function ($value) use ($wrapper) {
124
+        $this->mappings['pageMargins']['header'] = function ($value) use ($wrapper)
125
+        {
113 126
             $wrapper->object->getPageMargins()->setHeader($value);
114 127
         };
115
-        $this->mappings['pageMargins']['footer'] = function ($value) use ($wrapper) {
128
+        $this->mappings['pageMargins']['footer'] = function ($value) use ($wrapper)
129
+        {
116 130
             $wrapper->object->getPageMargins()->setFooter($value);
117 131
         };
118
-        $this->mappings['pageSetup']['fitToHeight'] = function ($value) use ($wrapper) {
132
+        $this->mappings['pageSetup']['fitToHeight'] = function ($value) use ($wrapper)
133
+        {
119 134
             $wrapper->object->getPageSetup()->setFitToHeight($value);
120 135
         };
121
-        $this->mappings['pageSetup']['fitToPage'] = function ($value) use ($wrapper) {
136
+        $this->mappings['pageSetup']['fitToPage'] = function ($value) use ($wrapper)
137
+        {
122 138
             $wrapper->object->getPageSetup()->setFitToPage($value);
123 139
         };
124
-        $this->mappings['pageSetup']['fitToWidth'] = function ($value) use ($wrapper) {
140
+        $this->mappings['pageSetup']['fitToWidth'] = function ($value) use ($wrapper)
141
+        {
125 142
             $wrapper->object->getPageSetup()->setFitToWidth($value);
126 143
         };
127
-        $this->mappings['pageSetup']['horizontalCentered'] = function ($value) use ($wrapper) {
144
+        $this->mappings['pageSetup']['horizontalCentered'] = function ($value) use ($wrapper)
145
+        {
128 146
             $wrapper->object->getPageSetup()->setHorizontalCentered($value);
129 147
         };
130
-        $this->mappings['pageSetup']['orientation'] = function ($value) use ($wrapper) {
148
+        $this->mappings['pageSetup']['orientation'] = function ($value) use ($wrapper)
149
+        {
131 150
             $wrapper->object->getPageSetup()->setOrientation($value);
132 151
         };
133
-        $this->mappings['pageSetup']['paperSize'] = function ($value) use ($wrapper) {
152
+        $this->mappings['pageSetup']['paperSize'] = function ($value) use ($wrapper)
153
+        {
134 154
             $wrapper->object->getPageSetup()->setPaperSize($value);
135 155
         };
136
-        $this->mappings['pageSetup']['printArea'] = function ($value) use ($wrapper) {
156
+        $this->mappings['pageSetup']['printArea'] = function ($value) use ($wrapper)
157
+        {
137 158
             $wrapper->object->getPageSetup()->setPrintArea($value);
138 159
         };
139
-        $this->mappings['pageSetup']['scale'] = function ($value) use ($wrapper) {
160
+        $this->mappings['pageSetup']['scale'] = function ($value) use ($wrapper)
161
+        {
140 162
             $wrapper->object->getPageSetup()->setScale($value);
141 163
         };
142
-        $this->mappings['pageSetup']['verticalCentered'] = function ($value) use ($wrapper) {
164
+        $this->mappings['pageSetup']['verticalCentered'] = function ($value) use ($wrapper)
165
+        {
143 166
             $wrapper->object->getPageSetup()->setVerticalCentered($value);
144 167
         };
145
-        $this->mappings['printGridlines'] = function ($value) use ($wrapper) {
168
+        $this->mappings['printGridlines'] = function ($value) use ($wrapper)
169
+        {
146 170
             $wrapper->object->setPrintGridlines($value);
147 171
         };
148
-        $this->mappings['protection']['autoFilter'] = function ($value) use ($wrapper) {
172
+        $this->mappings['protection']['autoFilter'] = function ($value) use ($wrapper)
173
+        {
149 174
             $wrapper->object->getProtection()->setAutoFilter($value);
150 175
         };
151
-        $this->mappings['protection']['deleteColumns'] = function ($value) use ($wrapper) {
176
+        $this->mappings['protection']['deleteColumns'] = function ($value) use ($wrapper)
177
+        {
152 178
             $wrapper->object->getProtection()->setDeleteColumns($value);
153 179
         };
154
-        $this->mappings['protection']['deleteRows'] = function ($value) use ($wrapper) {
180
+        $this->mappings['protection']['deleteRows'] = function ($value) use ($wrapper)
181
+        {
155 182
             $wrapper->object->getProtection()->setDeleteRows($value);
156 183
         };
157
-        $this->mappings['protection']['formatCells'] = function ($value) use ($wrapper) {
184
+        $this->mappings['protection']['formatCells'] = function ($value) use ($wrapper)
185
+        {
158 186
             $wrapper->object->getProtection()->setFormatCells($value);
159 187
         };
160
-        $this->mappings['protection']['formatColumns'] = function ($value) use ($wrapper) {
188
+        $this->mappings['protection']['formatColumns'] = function ($value) use ($wrapper)
189
+        {
161 190
             $wrapper->object->getProtection()->setFormatColumns($value);
162 191
         };
163
-        $this->mappings['protection']['formatRows'] = function ($value) use ($wrapper) {
192
+        $this->mappings['protection']['formatRows'] = function ($value) use ($wrapper)
193
+        {
164 194
             $wrapper->object->getProtection()->setFormatRows($value);
165 195
         };
166
-        $this->mappings['protection']['insertColumns'] = function ($value) use ($wrapper) {
196
+        $this->mappings['protection']['insertColumns'] = function ($value) use ($wrapper)
197
+        {
167 198
             $wrapper->object->getProtection()->setInsertColumns($value);
168 199
         };
169
-        $this->mappings['protection']['insertHyperlinks'] = function ($value) use ($wrapper) {
200
+        $this->mappings['protection']['insertHyperlinks'] = function ($value) use ($wrapper)
201
+        {
170 202
             $wrapper->object->getProtection()->setInsertHyperlinks($value);
171 203
         };
172
-        $this->mappings['protection']['insertRows'] = function ($value) use ($wrapper) {
204
+        $this->mappings['protection']['insertRows'] = function ($value) use ($wrapper)
205
+        {
173 206
             $wrapper->object->getProtection()->setInsertRows($value);
174 207
         };
175
-        $this->mappings['protection']['objects'] = function ($value) use ($wrapper) {
208
+        $this->mappings['protection']['objects'] = function ($value) use ($wrapper)
209
+        {
176 210
             $wrapper->object->getProtection()->setObjects($value);
177 211
         };
178
-        $this->mappings['protection']['password'] = function ($value) use ($wrapper) {
212
+        $this->mappings['protection']['password'] = function ($value) use ($wrapper)
213
+        {
179 214
             $wrapper->object->getProtection()->setPassword($value);
180 215
         };
181
-        $this->mappings['protection']['pivotTables'] = function ($value) use ($wrapper) {
216
+        $this->mappings['protection']['pivotTables'] = function ($value) use ($wrapper)
217
+        {
182 218
             $wrapper->object->getProtection()->setPivotTables($value);
183 219
         };
184
-        $this->mappings['protection']['scenarios'] = function ($value) use ($wrapper) {
220
+        $this->mappings['protection']['scenarios'] = function ($value) use ($wrapper)
221
+        {
185 222
             $wrapper->object->getProtection()->setScenarios($value);
186 223
         };
187
-        $this->mappings['protection']['selectLockedCells'] = function ($value) use ($wrapper) {
224
+        $this->mappings['protection']['selectLockedCells'] = function ($value) use ($wrapper)
225
+        {
188 226
             $wrapper->object->getProtection()->setSelectLockedCells($value);
189 227
         };
190
-        $this->mappings['protection']['selectUnlockedCells'] = function ($value) use ($wrapper) {
228
+        $this->mappings['protection']['selectUnlockedCells'] = function ($value) use ($wrapper)
229
+        {
191 230
             $wrapper->object->getProtection()->setSelectUnlockedCells($value);
192 231
         };
193
-        $this->mappings['protection']['sheet'] = function ($value) use ($wrapper) {
232
+        $this->mappings['protection']['sheet'] = function ($value) use ($wrapper)
233
+        {
194 234
             $wrapper->object->getProtection()->setSheet($value);
195 235
         };
196
-        $this->mappings['protection']['sort'] = function ($value) use ($wrapper) {
236
+        $this->mappings['protection']['sort'] = function ($value) use ($wrapper)
237
+        {
197 238
             $wrapper->object->getProtection()->setSort($value);
198 239
         };
199
-        $this->mappings['rightToLeft'] = function ($value) use ($wrapper) {
240
+        $this->mappings['rightToLeft'] = function ($value) use ($wrapper)
241
+        {
200 242
             $wrapper->object->setRightToLeft($value);
201 243
         };
202 244
         $this->mappings['rowDimension']['__multi'] = true;
203
-        $this->mappings['rowDimension']['__object'] = function ($key) use ($wrapper) {
245
+        $this->mappings['rowDimension']['__object'] = function ($key) use ($wrapper)
246
+        {
204 247
             return $key === 'default' ? $wrapper->object->getDefaultRowDimension() : $wrapper->object->getRowDimension($key);
205 248
         };
206
-        $this->mappings['rowDimension']['collapsed'] = function ($key, $value) use ($wrapper) {
249
+        $this->mappings['rowDimension']['collapsed'] = function ($key, $value) use ($wrapper)
250
+        {
207 251
             $wrapper->mappings['rowDimension']['__object']($key)->setCollapsed($value);
208 252
         };
209
-        $this->mappings['rowDimension']['outlineLevel'] = function ($key, $value) use ($wrapper) {
253
+        $this->mappings['rowDimension']['outlineLevel'] = function ($key, $value) use ($wrapper)
254
+        {
210 255
             $wrapper->mappings['rowDimension']['__object']($key)->setOutlineLevel($value);
211 256
         };
212
-        $this->mappings['rowDimension']['rowHeight'] = function ($key, $value) use ($wrapper) {
257
+        $this->mappings['rowDimension']['rowHeight'] = function ($key, $value) use ($wrapper)
258
+        {
213 259
             $wrapper->mappings['rowDimension']['__object']($key)->setRowHeight($value);
214 260
         };
215
-        $this->mappings['rowDimension']['rowIndex'] = function ($key, $value) use ($wrapper) {
261
+        $this->mappings['rowDimension']['rowIndex'] = function ($key, $value) use ($wrapper)
262
+        {
216 263
             $wrapper->mappings['rowDimension']['__object']($key)->setRowIndex($value);
217 264
         };
218
-        $this->mappings['rowDimension']['visible'] = function ($key, $value) use ($wrapper) {
265
+        $this->mappings['rowDimension']['visible'] = function ($key, $value) use ($wrapper)
266
+        {
219 267
             $wrapper->mappings['rowDimension']['__object']($key)->setVisible($value);
220 268
         };
221
-        $this->mappings['rowDimension']['xfIndex'] = function ($key, $value) use ($wrapper) {
269
+        $this->mappings['rowDimension']['xfIndex'] = function ($key, $value) use ($wrapper)
270
+        {
222 271
             $wrapper->mappings['rowDimension']['__object']($key)->setXfIndex($value);
223 272
         };
224
-        $this->mappings['rowDimension']['zeroHeight'] = function ($key, $value) use ($wrapper) {
273
+        $this->mappings['rowDimension']['zeroHeight'] = function ($key, $value) use ($wrapper)
274
+        {
225 275
             $wrapper->mappings['rowDimension']['__object']($key)->setZeroHeight($value);
226 276
         };
227
-        $this->mappings['sheetState'] = function ($value) use ($wrapper) {
277
+        $this->mappings['sheetState'] = function ($value) use ($wrapper)
278
+        {
228 279
             $wrapper->object->setSheetState($value);
229 280
         };
230
-        $this->mappings['showGridlines'] = function ($value) use ($wrapper) {
281
+        $this->mappings['showGridlines'] = function ($value) use ($wrapper)
282
+        {
231 283
             $wrapper->object->setShowGridlines($value);
232 284
         };
233
-        $this->mappings['tabColor'] = function ($value) use ($wrapper) {
285
+        $this->mappings['tabColor'] = function ($value) use ($wrapper)
286
+        {
234 287
             $wrapper->object->getTabColor()->setRGB($value);
235 288
         };
236
-        $this->mappings['zoomScale'] = function ($value) use ($wrapper) {
289
+        $this->mappings['zoomScale'] = function ($value) use ($wrapper)
290
+        {
237 291
             $wrapper->object->getSheetView()->setZoomScale($value);
238 292
         };
239 293
     }
Please login to merge, or discard this patch.
Tests/Functional/AbstractControllerTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,12 +45,12 @@  discard block
 block discarded – undo
45 45
         $source = static::$client->getResponse()->getContent();
46 46
 
47 47
         // create source directory if necessary
48
-        if (!file_exists(__DIR__ . static::$TEMP_PATH)) {
49
-            mkdir(__DIR__ . static::$TEMP_PATH);
48
+        if (!file_exists(__DIR__.static::$TEMP_PATH)) {
49
+            mkdir(__DIR__.static::$TEMP_PATH);
50 50
         }
51 51
 
52 52
         // save source
53
-        file_put_contents(__DIR__ . static::$TEMP_PATH . 'simple' . '.' . $format, $source);
53
+        file_put_contents(__DIR__.static::$TEMP_PATH.'simple'.'.'.$format, $source);
54 54
 
55 55
         // load source
56 56
         switch ($format) {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 throw new InvalidArgumentException();
68 68
         }
69 69
 
70
-        return $reader->load(__DIR__ . static::$TEMP_PATH . 'simple' . '.' . $format);
70
+        return $reader->load(__DIR__.static::$TEMP_PATH.'simple'.'.'.$format);
71 71
     }
72 72
 
73 73
     //
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
     {
87 87
         try {
88 88
             $fs = new Filesystem();
89
-            $fs->remove(__DIR__ . static::$TEMP_PATH);
90
-        } catch(\Exception $e) {
89
+            $fs->remove(__DIR__.static::$TEMP_PATH);
90
+        } catch (\Exception $e) {
91 91
             if (!in_array(getenv('IGNORE_DELETE_EXCEPTIONS'), ['true', '1', 1, true], true)) {
92 92
                 throw $e;
93 93
             }
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
         if (in_array(getenv('DELETE_TEMP_FILES'), ['true', '1', 1, true], true)) {
106 106
             try {
107 107
                 $fs = new Filesystem();
108
-                $fs->remove(__DIR__ . static::$TEMP_PATH);
109
-            } catch(\Exception $e) {
108
+                $fs->remove(__DIR__.static::$TEMP_PATH);
109
+            } catch (\Exception $e) {
110 110
                 if (!in_array(getenv('IGNORE_DELETE_EXCEPTIONS'), ['true', '1', 1, true], true)) {
111 111
                     throw $e;
112 112
                 }
Please login to merge, or discard this patch.
Tests/Functional/TestBundle/Controller/DefaultController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function defaultAction($templateName)
22 22
     {
23 23
         return $this->render(
24
-            '@Test/Default/' . $templateName . '.twig',
24
+            '@Test/Default/'.$templateName.'.twig',
25 25
             [
26 26
                 'data' => [
27 27
                     ['name' => 'Everette Grim', 'salary' => 5458.0],
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $response = new Response(
60 60
             $this->render(
61
-                '@Test/Default/' . $templateName . '.twig',
61
+                '@Test/Default/'.$templateName.'.twig',
62 62
                 [
63 63
                     'data' => [
64 64
                         ['name' => 'Everette Grim', 'salary' => 5458.0],
Please login to merge, or discard this patch.