Completed
Push — master ( cc4cee...40bddf )
by Mewes
09:51
created
Twig/TokenParser/AbstractTokenParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
      */
21 21
     protected function parseBody()
22 22
     {
23
-        $body = $this->parser->subparse(function (Twig_Token $token) {
24
-            return $token->test('end' . $this->getTag());
23
+        $body = $this->parser->subparse(function(Twig_Token $token) {
24
+            return $token->test('end'.$this->getTag());
25 25
         },
26 26
             true);
27 27
         $this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);
Please login to merge, or discard this patch.
Twig/NodeVisitor/SyntaxCheckNodeVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
              */
45 45
             try {
46 46
                 NodeHelper::checkAllowedParents($node, $this->path);
47
-            } catch(Twig_Error_Syntax $e) {
47
+            } catch (Twig_Error_Syntax $e) {
48 48
                 // reset path since throwing an error prevents doLeaveNode to be called
49 49
                 $this->path = [];
50 50
                 throw $e;
Please login to merge, or discard this patch.
Wrapper/XlsDrawingWrapper.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -55,52 +55,52 @@  discard block
 block discarded – undo
55 55
 
56 56
     protected function initializeMappings()
57 57
     {
58
-        $this->mappings['coordinates'] = function ($value) {
58
+        $this->mappings['coordinates'] = function($value) {
59 59
             $this->object->setCoordinates($value);
60 60
         };
61
-        $this->mappings['description'] = function ($value) {
61
+        $this->mappings['description'] = function($value) {
62 62
             $this->object->setDescription($value);
63 63
         };
64
-        $this->mappings['height'] = function ($value) {
64
+        $this->mappings['height'] = function($value) {
65 65
             $this->object->setHeight($value);
66 66
         };
67
-        $this->mappings['name'] = function ($value) {
67
+        $this->mappings['name'] = function($value) {
68 68
             $this->object->setName($value);
69 69
         };
70
-        $this->mappings['offsetX'] = function ($value) {
70
+        $this->mappings['offsetX'] = function($value) {
71 71
             $this->object->setOffsetX($value);
72 72
         };
73
-        $this->mappings['offsetY'] = function ($value) {
73
+        $this->mappings['offsetY'] = function($value) {
74 74
             $this->object->setOffsetY($value);
75 75
         };
76
-        $this->mappings['resizeProportional'] = function ($value) {
76
+        $this->mappings['resizeProportional'] = function($value) {
77 77
             $this->object->setResizeProportional($value);
78 78
         };
79
-        $this->mappings['rotation'] = function ($value) {
79
+        $this->mappings['rotation'] = function($value) {
80 80
             $this->object->setRotation($value);
81 81
         };
82
-        $this->mappings['shadow']['alignment'] = function ($value) {
82
+        $this->mappings['shadow']['alignment'] = function($value) {
83 83
             $this->object->getShadow()->setAlignment($value);
84 84
         };
85
-        $this->mappings['shadow']['alpha'] = function ($value) {
85
+        $this->mappings['shadow']['alpha'] = function($value) {
86 86
             $this->object->getShadow()->setAlpha($value);
87 87
         };
88
-        $this->mappings['shadow']['blurRadius'] = function ($value) {
88
+        $this->mappings['shadow']['blurRadius'] = function($value) {
89 89
             $this->object->getShadow()->setBlurRadius($value);
90 90
         };
91
-        $this->mappings['shadow']['color'] = function ($value) {
91
+        $this->mappings['shadow']['color'] = function($value) {
92 92
             $this->object->getShadow()->getColor()->setRGB($value);
93 93
         };
94
-        $this->mappings['shadow']['direction'] = function ($value) {
94
+        $this->mappings['shadow']['direction'] = function($value) {
95 95
             $this->object->getShadow()->setDirection($value);
96 96
         };
97
-        $this->mappings['shadow']['distance'] = function ($value) {
97
+        $this->mappings['shadow']['distance'] = function($value) {
98 98
             $this->object->getShadow()->setDistance($value);
99 99
         };
100
-        $this->mappings['shadow']['visible'] = function ($value) {
100
+        $this->mappings['shadow']['visible'] = function($value) {
101 101
             $this->object->getShadow()->setVisible($value);
102 102
         };
103
-        $this->mappings['width'] = function ($value) {
103
+        $this->mappings['width'] = function($value) {
104 104
             $this->object->setWidth($value);
105 105
         };
106 106
     }
@@ -194,21 +194,21 @@  discard block
 block discarded – undo
194 194
     {
195 195
         // create temp path
196 196
         $pathExtension = pathinfo($path, PATHINFO_EXTENSION);
197
-        $tempPath = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'xlsdrawing' . '_' . md5($path) . ($pathExtension ? '.' . $pathExtension : '');
197
+        $tempPath = sys_get_temp_dir().DIRECTORY_SEPARATOR.'xlsdrawing'.'_'.md5($path).($pathExtension ? '.'.$pathExtension : '');
198 198
 
199 199
         // create local copy
200 200
         if (!file_exists($tempPath)) {
201 201
             $data = file_get_contents($path);
202 202
             if ($data === false) {
203
-                throw new \InvalidArgumentException($path . ' does not exist.');
203
+                throw new \InvalidArgumentException($path.' does not exist.');
204 204
             }
205 205
             $temp = fopen($tempPath, 'w+');
206 206
             if ($temp === false) {
207
-                throw new \RuntimeException('Cannot open ' . $tempPath);
207
+                throw new \RuntimeException('Cannot open '.$tempPath);
208 208
             }
209 209
             fwrite($temp, $data);
210 210
             if (fclose($temp) === false) {
211
-                throw new \RuntimeException('Cannot close ' . $tempPath);
211
+                throw new \RuntimeException('Cannot close '.$tempPath);
212 212
             }
213 213
             unset($data, $temp);
214 214
         }
Please login to merge, or discard this patch.
Wrapper/XlsHeaderFooterWrapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,10 +56,10 @@
 block discarded – undo
56 56
 
57 57
     protected function initializeMappings()
58 58
     {
59
-        $this->mappings['scaleWithDocument'] = function ($value) {
59
+        $this->mappings['scaleWithDocument'] = function($value) {
60 60
             $this->object->setScaleWithDocument($value);
61 61
         };
62
-        $this->mappings['alignWithMargins'] = function ($value) {
62
+        $this->mappings['alignWithMargins'] = function($value) {
63 63
             $this->object->setAlignWithMargins($value);
64 64
         };
65 65
     }
Please login to merge, or discard this patch.
Wrapper/XlsDocumentWrapper.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -58,61 +58,61 @@  discard block
 block discarded – undo
58 58
 
59 59
     protected function initializeMappings()
60 60
     {
61
-        $this->mappings['category'] = function ($value) {
61
+        $this->mappings['category'] = function($value) {
62 62
             $this->object->getProperties()->setCategory($value);
63 63
         };
64
-        $this->mappings['company'] = function ($value) {
64
+        $this->mappings['company'] = function($value) {
65 65
             $this->object->getProperties()->setCompany($value);
66 66
         };
67
-        $this->mappings['created'] = function ($value) {
67
+        $this->mappings['created'] = function($value) {
68 68
             $this->object->getProperties()->setCreated($value);
69 69
         };
70
-        $this->mappings['creator'] = function ($value) {
70
+        $this->mappings['creator'] = function($value) {
71 71
             $this->object->getProperties()->setCreator($value);
72 72
         };
73
-        $this->mappings['defaultStyle'] = function ($value) {
73
+        $this->mappings['defaultStyle'] = function($value) {
74 74
             $this->object->getDefaultStyle()->applyFromArray($value);
75 75
         };
76
-        $this->mappings['description'] = function ($value) {
76
+        $this->mappings['description'] = function($value) {
77 77
             $this->object->getProperties()->setDescription($value);
78 78
         };
79
-        $this->mappings['format'] = function ($value) {
79
+        $this->mappings['format'] = function($value) {
80 80
             $this->attributes['format'] = $value;
81 81
         };
82
-        $this->mappings['keywords'] = function ($value) {
82
+        $this->mappings['keywords'] = function($value) {
83 83
             $this->object->getProperties()->setKeywords($value);
84 84
         };
85
-        $this->mappings['lastModifiedBy'] = function ($value) {
85
+        $this->mappings['lastModifiedBy'] = function($value) {
86 86
             $this->object->getProperties()->setLastModifiedBy($value);
87 87
         };
88
-        $this->mappings['manager'] = function ($value) {
88
+        $this->mappings['manager'] = function($value) {
89 89
             $this->object->getProperties()->setManager($value);
90 90
         };
91
-        $this->mappings['modified'] = function ($value) {
91
+        $this->mappings['modified'] = function($value) {
92 92
             $this->object->getProperties()->setModified($value);
93 93
         };
94
-        $this->mappings['security']['lockRevision'] = function ($value) {
94
+        $this->mappings['security']['lockRevision'] = function($value) {
95 95
             $this->object->getSecurity()->setLockRevision($value);
96 96
         };
97
-        $this->mappings['security']['lockStructure'] = function ($value) {
97
+        $this->mappings['security']['lockStructure'] = function($value) {
98 98
             $this->object->getSecurity()->setLockStructure($value);
99 99
         };
100
-        $this->mappings['security']['lockWindows'] = function ($value) {
100
+        $this->mappings['security']['lockWindows'] = function($value) {
101 101
             $this->object->getSecurity()->setLockWindows($value);
102 102
         };
103
-        $this->mappings['security']['revisionsPassword'] = function ($value) {
103
+        $this->mappings['security']['revisionsPassword'] = function($value) {
104 104
             $this->object->getSecurity()->setRevisionsPassword($value);
105 105
         };
106
-        $this->mappings['security']['workbookPassword'] = function ($value) {
106
+        $this->mappings['security']['workbookPassword'] = function($value) {
107 107
             $this->object->getSecurity()->setWorkbookPassword($value);
108 108
         };
109
-        $this->mappings['subject'] = function ($value) {
109
+        $this->mappings['subject'] = function($value) {
110 110
             $this->object->getProperties()->setSubject($value);
111 111
         };
112
-        $this->mappings['template'] = function ($value) {
112
+        $this->mappings['template'] = function($value) {
113 113
             $this->attributes['template'] = $value;
114 114
         };
115
-        $this->mappings['title'] = function ($value) {
115
+        $this->mappings['title'] = function($value) {
116 116
             $this->object->getProperties()->setTitle($value);
117 117
         };
118 118
     }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             foreach ($loader->getNamespaces() as $namespace) {
240 240
                 if (strpos($path, $namespace) === 1) {
241 241
                     foreach ($loader->getPaths($namespace) as $namespacePath) {
242
-                        $expandedPathAttribute = str_replace('@' . $namespace, $namespacePath, $path);
242
+                        $expandedPathAttribute = str_replace('@'.$namespace, $namespacePath, $path);
243 243
                         if (file_exists($expandedPathAttribute)) {
244 244
                             return $expandedPathAttribute;
245 245
                         }
Please login to merge, or discard this patch.
Tests/Functional/AbstractControllerTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
         $source = static::$client->getResponse()->getContent();
53 53
         
54 54
         // create paths
55
-        $tempDirPath = __DIR__ . static::$TEMP_PATH;
56
-        $tempFilePath = $tempDirPath . 'simple' . '.' . $format;
55
+        $tempDirPath = __DIR__.static::$TEMP_PATH;
56
+        $tempFilePath = $tempDirPath.'simple'.'.'.$format;
57 57
 
58 58
         // save source
59 59
         static::$fileSystem->dumpFile($tempFilePath, $source);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                 throw new InvalidArgumentException();
74 74
         }
75 75
 
76
-        return $reader->load(__DIR__ . static::$TEMP_PATH . 'simple' . '.' . $format);
76
+        return $reader->load(__DIR__.static::$TEMP_PATH.'simple'.'.'.$format);
77 77
     }
78 78
 
79 79
     //
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public static function setUpBeforeClass()
114 114
     {
115 115
         static::$fileSystem = new Filesystem();
116
-        static::$fileSystem->remove(__DIR__ . static::$TEMP_PATH);
116
+        static::$fileSystem->remove(__DIR__.static::$TEMP_PATH);
117 117
     }
118 118
 
119 119
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     public static function tearDownAfterClass()
124 124
     {
125 125
         if (in_array(getenv('DELETE_TEMP_FILES'), ['true', '1', 1, true], true)) {
126
-            static::$fileSystem->remove(__DIR__ . static::$TEMP_PATH);
126
+            static::$fileSystem->remove(__DIR__.static::$TEMP_PATH);
127 127
         }
128 128
     }
129 129
 }
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
@@ -299,7 +299,7 @@
 block discarded – undo
299 299
      */
300 300
     public function testDocumentTemplate($format)
301 301
     {
302
-        $document = $this->getDocument('documentTemplate.' . $format, $format);
302
+        $document = $this->getDocument('documentTemplate.'.$format, $format);
303 303
         static::assertNotNull($document, 'Document does not exist');
304 304
 
305 305
         $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
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
         $appVariable->setRequestStack($requestStack);
61 61
 
62 62
         // generate source from template
63
-        $source = static::$environment->loadTemplate($templateName . '.twig')->render(['app' => $appVariable]);
63
+        $source = static::$environment->loadTemplate($templateName.'.twig')->render(['app' => $appVariable]);
64 64
 
65 65
         // create paths
66
-        $tempDirPath = __DIR__ . static::$TEMP_PATH;
67
-        $tempFilePath = $tempDirPath . $templateName . '.' . $format;
66
+        $tempDirPath = __DIR__.static::$TEMP_PATH;
67
+        $tempFilePath = $tempDirPath.$templateName.'.'.$format;
68 68
 
69 69
         // save source
70 70
         static::$fileSystem->dumpFile($tempFilePath, $source);
@@ -107,12 +107,12 @@  discard block
 block discarded – undo
107 107
     {
108 108
         static::$fileSystem = new Filesystem();
109 109
         
110
-        $twigFileSystem = new Twig_Loader_Filesystem([__DIR__ . static::$RESOURCE_PATH]);
111
-        $twigFileSystem->addPath( __DIR__ . static::$TEMPLATE_PATH, 'templates');
110
+        $twigFileSystem = new Twig_Loader_Filesystem([__DIR__.static::$RESOURCE_PATH]);
111
+        $twigFileSystem->addPath(__DIR__.static::$TEMPLATE_PATH, 'templates');
112 112
         
113 113
         static::$environment = new Twig_Environment($twigFileSystem, ['strict_variables' => true]);
114 114
         static::$environment->addExtension(new TwigExcelExtension());
115
-        static::$environment->setCache(__DIR__ . static::$TEMP_PATH);
115
+        static::$environment->setCache(__DIR__.static::$TEMP_PATH);
116 116
     }
117 117
 
118 118
     /**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     public static function tearDownAfterClass()
123 123
     {
124 124
         if (in_array(getenv('DELETE_TEMP_FILES'), ['true', '1', 1, true], true)) {
125
-            static::$fileSystem->remove(__DIR__ . static::$TEMP_PATH);
125
+            static::$fileSystem->remove(__DIR__.static::$TEMP_PATH);
126 126
         }
127 127
     }
128 128
 }
Please login to merge, or discard this patch.
Wrapper/XlsCellWrapper.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -60,61 +60,61 @@
 block discarded – undo
60 60
 
61 61
     protected function initializeMappings()
62 62
     {
63
-        $this->mappings['break'] = function ($value) {
63
+        $this->mappings['break'] = function($value) {
64 64
             $this->sheetWrapper->getObject()->setBreak($this->object->getCoordinate(), $value);
65 65
         };
66
-        $this->mappings['dataType'] = function ($value) {
66
+        $this->mappings['dataType'] = function($value) {
67 67
             $this->object->setDataType($value);
68 68
         };
69
-        $this->mappings['dataValidation']['allowBlank'] = function ($value) {
69
+        $this->mappings['dataValidation']['allowBlank'] = function($value) {
70 70
             $this->object->getDataValidation()->setAllowBlank($value);
71 71
         };
72
-        $this->mappings['dataValidation']['error'] = function ($value) {
72
+        $this->mappings['dataValidation']['error'] = function($value) {
73 73
             $this->object->getDataValidation()->setError($value);
74 74
         };
75
-        $this->mappings['dataValidation']['errorStyle'] = function ($value) {
75
+        $this->mappings['dataValidation']['errorStyle'] = function($value) {
76 76
             $this->object->getDataValidation()->setErrorStyle($value);
77 77
         };
78
-        $this->mappings['dataValidation']['errorTitle'] = function ($value) {
78
+        $this->mappings['dataValidation']['errorTitle'] = function($value) {
79 79
             $this->object->getDataValidation()->setErrorTitle($value);
80 80
         };
81
-        $this->mappings['dataValidation']['formula1'] = function ($value) {
81
+        $this->mappings['dataValidation']['formula1'] = function($value) {
82 82
             $this->object->getDataValidation()->setFormula1($value);
83 83
         };
84
-        $this->mappings['dataValidation']['formula2'] = function ($value) {
84
+        $this->mappings['dataValidation']['formula2'] = function($value) {
85 85
             $this->object->getDataValidation()->setFormula2($value);
86 86
         };
87
-        $this->mappings['dataValidation']['operator'] = function ($value) {
87
+        $this->mappings['dataValidation']['operator'] = function($value) {
88 88
             $this->object->getDataValidation()->setOperator($value);
89 89
         };
90
-        $this->mappings['dataValidation']['prompt'] = function ($value) {
90
+        $this->mappings['dataValidation']['prompt'] = function($value) {
91 91
             $this->object->getDataValidation()->setPrompt($value);
92 92
         };
93
-        $this->mappings['dataValidation']['promptTitle'] = function ($value) {
93
+        $this->mappings['dataValidation']['promptTitle'] = function($value) {
94 94
             $this->object->getDataValidation()->setPromptTitle($value);
95 95
         };
96
-        $this->mappings['dataValidation']['showDropDown'] = function ($value) {
96
+        $this->mappings['dataValidation']['showDropDown'] = function($value) {
97 97
             $this->object->getDataValidation()->setShowDropDown($value);
98 98
         };
99
-        $this->mappings['dataValidation']['showErrorMessage'] = function ($value) {
99
+        $this->mappings['dataValidation']['showErrorMessage'] = function($value) {
100 100
             $this->object->getDataValidation()->setShowErrorMessage($value);
101 101
         };
102
-        $this->mappings['dataValidation']['showInputMessage'] = function ($value) {
102
+        $this->mappings['dataValidation']['showInputMessage'] = function($value) {
103 103
             $this->object->getDataValidation()->setShowInputMessage($value);
104 104
         };
105
-        $this->mappings['dataValidation']['type'] = function ($value) {
105
+        $this->mappings['dataValidation']['type'] = function($value) {
106 106
             $this->object->getDataValidation()->setType($value);
107 107
         };
108
-        $this->mappings['merge'] = function ($value) {
108
+        $this->mappings['merge'] = function($value) {
109 109
             if (is_int($value)) {
110
-                $value = PHPExcel_Cell::stringFromColumnIndex($value) . $this->sheetWrapper->getRow();
110
+                $value = PHPExcel_Cell::stringFromColumnIndex($value).$this->sheetWrapper->getRow();
111 111
             }
112 112
             $this->sheetWrapper->getObject()->mergeCells(sprintf('%s:%s', $this->object->getCoordinate(), $value));
113 113
         };
114
-        $this->mappings['style'] = function ($value) {
114
+        $this->mappings['style'] = function($value) {
115 115
             $this->sheetWrapper->getObject()->getStyle($this->object->getCoordinate())->applyFromArray($value);
116 116
         };
117
-        $this->mappings['url'] = function ($value) {
117
+        $this->mappings['url'] = function($value) {
118 118
             $this->object->getHyperlink()->setUrl($value);
119 119
         };
120 120
     }
Please login to merge, or discard this patch.