Completed
Push — master ( 5f3c96...974b7f )
by Mewes
02:23
created
Twig/Node/XlsHeaderNode.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,16 +33,16 @@
 block discarded – undo
33 33
         $compiler->addDebugInfo($this)
34 34
             ->write('$headerType = ')
35 35
             ->subcompile($this->getNode('type'))
36
-            ->raw(';' . PHP_EOL)
37
-            ->write('$headerType = $headerType ? $headerType : \'header\';' . PHP_EOL)
36
+            ->raw(';'.PHP_EOL)
37
+            ->write('$headerType = $headerType ? $headerType : \'header\';'.PHP_EOL)
38 38
             ->write('$headerProperties = ')
39 39
             ->subcompile($this->getNode('properties'))
40
-            ->raw(';' . PHP_EOL)
41
-            ->write('$context[\'phpExcel\']->startHeaderFooter($headerType, $headerProperties);' . PHP_EOL)
42
-            ->write('unset($headerType, $headerProperties);' . PHP_EOL)
40
+            ->raw(';'.PHP_EOL)
41
+            ->write('$context[\'phpExcel\']->startHeaderFooter($headerType, $headerProperties);'.PHP_EOL)
42
+            ->write('unset($headerType, $headerProperties);'.PHP_EOL)
43 43
             ->subcompile($this->getNode('body'))
44 44
             ->addDebugInfo($this)
45
-            ->write('$context[\'phpExcel\']->endHeaderFooter();' . PHP_EOL);
45
+            ->write('$context[\'phpExcel\']->endHeaderFooter();'.PHP_EOL);
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
Twig/Node/XlsLeftNode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
     public function compile(Twig_Compiler $compiler)
29 29
     {
30 30
         $compiler->addDebugInfo($this)
31
-            ->write('$context[\'phpExcel\']->startAlignment(\'left\');' . PHP_EOL)
31
+            ->write('$context[\'phpExcel\']->startAlignment(\'left\');'.PHP_EOL)
32 32
             ->write("ob_start();\n")
33 33
             ->subcompile($this->getNode('body'))
34
-            ->write('$leftValue = trim(ob_get_clean());' . PHP_EOL)
35
-            ->write('$context[\'phpExcel\']->endAlignment($leftValue);' . PHP_EOL)
36
-            ->write('unset($leftValue);' . PHP_EOL);
34
+            ->write('$leftValue = trim(ob_get_clean());'.PHP_EOL)
35
+            ->write('$context[\'phpExcel\']->endAlignment($leftValue);'.PHP_EOL)
36
+            ->write('unset($leftValue);'.PHP_EOL);
37 37
     }
38 38
 
39 39
     /**
Please login to merge, or discard this patch.
Twig/Node/XlsRightNode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
     public function compile(Twig_Compiler $compiler)
29 29
     {
30 30
         $compiler->addDebugInfo($this)
31
-            ->write('$context[\'phpExcel\']->startAlignment(\'right\');' . PHP_EOL)
31
+            ->write('$context[\'phpExcel\']->startAlignment(\'right\');'.PHP_EOL)
32 32
             ->write("ob_start();\n")
33 33
             ->subcompile($this->getNode('body'))
34
-            ->write('$rightValue = trim(ob_get_clean());' . PHP_EOL)
35
-            ->write('$context[\'phpExcel\']->endAlignment($rightValue);' . PHP_EOL)
36
-            ->write('unset($rightValue);' . PHP_EOL);
34
+            ->write('$rightValue = trim(ob_get_clean());'.PHP_EOL)
35
+            ->write('$context[\'phpExcel\']->endAlignment($rightValue);'.PHP_EOL)
36
+            ->write('unset($rightValue);'.PHP_EOL);
37 37
     }
38 38
 
39 39
     /**
Please login to merge, or discard this patch.
Twig/Node/XlsRowNode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
         $compiler->addDebugInfo($this)
33 33
             ->write('$context[\'phpExcel\']->setRowIndex(')
34 34
             ->subcompile($this->getNode('index'))
35
-            ->raw(');' . PHP_EOL)
36
-            ->write('$context[\'phpExcel\']->startRow($context[\'phpExcel\']->getRowIndex());' . PHP_EOL)
37
-            ->write('$context[\'phpExcel\']->setRowIndex(0);' . PHP_EOL)
35
+            ->raw(');'.PHP_EOL)
36
+            ->write('$context[\'phpExcel\']->startRow($context[\'phpExcel\']->getRowIndex());'.PHP_EOL)
37
+            ->write('$context[\'phpExcel\']->setRowIndex(0);'.PHP_EOL)
38 38
             ->subcompile($this->getNode('body'))
39 39
             ->addDebugInfo($this)
40
-            ->write('$context[\'phpExcel\']->endRow();' . PHP_EOL);
40
+            ->write('$context[\'phpExcel\']->endRow();'.PHP_EOL);
41 41
     }
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
Twig/Node/XlsSheetNode.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,18 +33,18 @@
 block discarded – undo
33 33
         $compiler->addDebugInfo($this)
34 34
             ->write('$sheetIndex = ')
35 35
             ->subcompile($this->getNode('index'))
36
-            ->raw(';' . PHP_EOL)
36
+            ->raw(';'.PHP_EOL)
37 37
             ->write('$sheetProperties = ')
38 38
             ->subcompile($this->getNode('properties'))
39
-            ->raw(';' . PHP_EOL)
40
-            ->write('$context[\'phpExcel\']->startSheet($sheetIndex, $sheetProperties);' . PHP_EOL)
41
-            ->write('unset($sheetIndex, $sheetProperties);' . PHP_EOL);
39
+            ->raw(';'.PHP_EOL)
40
+            ->write('$context[\'phpExcel\']->startSheet($sheetIndex, $sheetProperties);'.PHP_EOL)
41
+            ->write('unset($sheetIndex, $sheetProperties);'.PHP_EOL);
42 42
 
43 43
         if ($this->hasNode('body')) {
44 44
             $compiler->subcompile($this->getNode('body'));
45 45
         }
46 46
 
47
-        $compiler->addDebugInfo($this)->write('$context[\'phpExcel\']->endSheet();' . PHP_EOL);
47
+        $compiler->addDebugInfo($this)->write('$context[\'phpExcel\']->endSheet();'.PHP_EOL);
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.
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/XlsCellWrapper.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -49,55 +49,55 @@
 block discarded – undo
49 49
 
50 50
     protected function initializeMappings()
51 51
     {
52
-        $this->mappings['break'] = function ($value) {
52
+        $this->mappings['break'] = function($value) {
53 53
             $this->sheetWrapper->getObject()->setBreak($this->object->getCoordinate(), $value);
54 54
         };
55
-        $this->mappings['dataType'] = function ($value) {
55
+        $this->mappings['dataType'] = function($value) {
56 56
             $this->object->setDataType($value);
57 57
         };
58
-        $this->mappings['dataValidation']['allowBlank'] = function ($value) {
58
+        $this->mappings['dataValidation']['allowBlank'] = function($value) {
59 59
             $this->object->getDataValidation()->setAllowBlank($value);
60 60
         };
61
-        $this->mappings['dataValidation']['error'] = function ($value) {
61
+        $this->mappings['dataValidation']['error'] = function($value) {
62 62
             $this->object->getDataValidation()->setError($value);
63 63
         };
64
-        $this->mappings['dataValidation']['errorStyle'] = function ($value) {
64
+        $this->mappings['dataValidation']['errorStyle'] = function($value) {
65 65
             $this->object->getDataValidation()->setErrorStyle($value);
66 66
         };
67
-        $this->mappings['dataValidation']['errorTitle'] = function ($value) {
67
+        $this->mappings['dataValidation']['errorTitle'] = function($value) {
68 68
             $this->object->getDataValidation()->setErrorTitle($value);
69 69
         };
70
-        $this->mappings['dataValidation']['formula1'] = function ($value) {
70
+        $this->mappings['dataValidation']['formula1'] = function($value) {
71 71
             $this->object->getDataValidation()->setFormula1($value);
72 72
         };
73
-        $this->mappings['dataValidation']['formula2'] = function ($value) {
73
+        $this->mappings['dataValidation']['formula2'] = function($value) {
74 74
             $this->object->getDataValidation()->setFormula2($value);
75 75
         };
76
-        $this->mappings['dataValidation']['operator'] = function ($value) {
76
+        $this->mappings['dataValidation']['operator'] = function($value) {
77 77
             $this->object->getDataValidation()->setOperator($value);
78 78
         };
79
-        $this->mappings['dataValidation']['prompt'] = function ($value) {
79
+        $this->mappings['dataValidation']['prompt'] = function($value) {
80 80
             $this->object->getDataValidation()->setPrompt($value);
81 81
         };
82
-        $this->mappings['dataValidation']['promptTitle'] = function ($value) {
82
+        $this->mappings['dataValidation']['promptTitle'] = function($value) {
83 83
             $this->object->getDataValidation()->setPromptTitle($value);
84 84
         };
85
-        $this->mappings['dataValidation']['showDropDown'] = function ($value) {
85
+        $this->mappings['dataValidation']['showDropDown'] = function($value) {
86 86
             $this->object->getDataValidation()->setShowDropDown($value);
87 87
         };
88
-        $this->mappings['dataValidation']['showErrorMessage'] = function ($value) {
88
+        $this->mappings['dataValidation']['showErrorMessage'] = function($value) {
89 89
             $this->object->getDataValidation()->setShowErrorMessage($value);
90 90
         };
91
-        $this->mappings['dataValidation']['showInputMessage'] = function ($value) {
91
+        $this->mappings['dataValidation']['showInputMessage'] = function($value) {
92 92
             $this->object->getDataValidation()->setShowInputMessage($value);
93 93
         };
94
-        $this->mappings['dataValidation']['type'] = function ($value) {
94
+        $this->mappings['dataValidation']['type'] = function($value) {
95 95
             $this->object->getDataValidation()->setType($value);
96 96
         };
97
-        $this->mappings['style'] = function ($value) {
97
+        $this->mappings['style'] = function($value) {
98 98
             $this->sheetWrapper->getObject()->getStyle($this->object->getCoordinate())->applyFromArray($value);
99 99
         };
100
-        $this->mappings['url'] = function ($value) {
100
+        $this->mappings['url'] = function($value) {
101 101
             $this->object->getHyperlink()->setUrl($value);
102 102
         };
103 103
     }
Please login to merge, or discard this patch.
Wrapper/XlsDocumentWrapper.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -48,58 +48,58 @@
 block discarded – undo
48 48
 
49 49
     protected function initializeMappings()
50 50
     {
51
-        $this->mappings['category'] = function ($value) {
51
+        $this->mappings['category'] = function($value) {
52 52
             $this->object->getProperties()->setCategory($value);
53 53
         };
54
-        $this->mappings['company'] = function ($value) {
54
+        $this->mappings['company'] = function($value) {
55 55
             $this->object->getProperties()->setCompany($value);
56 56
         };
57
-        $this->mappings['created'] = function ($value) {
57
+        $this->mappings['created'] = function($value) {
58 58
             $this->object->getProperties()->setCreated($value);
59 59
         };
60
-        $this->mappings['creator'] = function ($value) {
60
+        $this->mappings['creator'] = function($value) {
61 61
             $this->object->getProperties()->setCreator($value);
62 62
         };
63
-        $this->mappings['defaultStyle'] = function ($value) {
63
+        $this->mappings['defaultStyle'] = function($value) {
64 64
             $this->object->getDefaultStyle()->applyFromArray($value);
65 65
         };
66
-        $this->mappings['description'] = function ($value) {
66
+        $this->mappings['description'] = function($value) {
67 67
             $this->object->getProperties()->setDescription($value);
68 68
         };
69
-        $this->mappings['format'] = function ($value) {
69
+        $this->mappings['format'] = function($value) {
70 70
             $this->attributes['format'] = $value;
71 71
         };
72
-        $this->mappings['keywords'] = function ($value) {
72
+        $this->mappings['keywords'] = function($value) {
73 73
             $this->object->getProperties()->setKeywords($value);
74 74
         };
75
-        $this->mappings['lastModifiedBy'] = function ($value) {
75
+        $this->mappings['lastModifiedBy'] = function($value) {
76 76
             $this->object->getProperties()->setLastModifiedBy($value);
77 77
         };
78
-        $this->mappings['manager'] = function ($value) {
78
+        $this->mappings['manager'] = function($value) {
79 79
             $this->object->getProperties()->setManager($value);
80 80
         };
81
-        $this->mappings['modified'] = function ($value) {
81
+        $this->mappings['modified'] = function($value) {
82 82
             $this->object->getProperties()->setModified($value);
83 83
         };
84
-        $this->mappings['security']['lockRevision'] = function ($value) {
84
+        $this->mappings['security']['lockRevision'] = function($value) {
85 85
             $this->object->getSecurity()->setLockRevision($value);
86 86
         };
87
-        $this->mappings['security']['lockStructure'] = function ($value) {
87
+        $this->mappings['security']['lockStructure'] = function($value) {
88 88
             $this->object->getSecurity()->setLockStructure($value);
89 89
         };
90
-        $this->mappings['security']['lockWindows'] = function ($value) {
90
+        $this->mappings['security']['lockWindows'] = function($value) {
91 91
             $this->object->getSecurity()->setLockWindows($value);
92 92
         };
93
-        $this->mappings['security']['revisionsPassword'] = function ($value) {
93
+        $this->mappings['security']['revisionsPassword'] = function($value) {
94 94
             $this->object->getSecurity()->setRevisionsPassword($value);
95 95
         };
96
-        $this->mappings['security']['workbookPassword'] = function ($value) {
96
+        $this->mappings['security']['workbookPassword'] = function($value) {
97 97
             $this->object->getSecurity()->setWorkbookPassword($value);
98 98
         };
99
-        $this->mappings['subject'] = function ($value) {
99
+        $this->mappings['subject'] = function($value) {
100 100
             $this->object->getProperties()->setSubject($value);
101 101
         };
102
-        $this->mappings['title'] = function ($value) {
102
+        $this->mappings['title'] = function($value) {
103 103
             $this->object->getProperties()->setTitle($value);
104 104
         };
105 105
     }
Please login to merge, or discard this patch.