Completed
Push — develop ( bf3457...467bab )
by
unknown
09:08
created
src/PhpSpreadsheet/Writer/PDF/Core.php 1 patch
Spacing   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -72,135 +72,135 @@
 block discarded – undo
72 72
      */
73 73
     protected static $paperSizes = array(
74 74
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_LETTER
75
-            => 'LETTER',                 //    (8.5 in. by 11 in.)
75
+            => 'LETTER', //    (8.5 in. by 11 in.)
76 76
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_LETTER_SMALL
77
-            => 'LETTER',                 //    (8.5 in. by 11 in.)
77
+            => 'LETTER', //    (8.5 in. by 11 in.)
78 78
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_TABLOID
79
-            => array(792.00, 1224.00),   //    (11 in. by 17 in.)
79
+            => array(792.00, 1224.00), //    (11 in. by 17 in.)
80 80
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_LEDGER
81
-            => array(1224.00, 792.00),   //    (17 in. by 11 in.)
81
+            => array(1224.00, 792.00), //    (17 in. by 11 in.)
82 82
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_LEGAL
83
-            => 'LEGAL',                  //    (8.5 in. by 14 in.)
83
+            => 'LEGAL', //    (8.5 in. by 14 in.)
84 84
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_STATEMENT
85
-            => array(396.00, 612.00),    //    (5.5 in. by 8.5 in.)
85
+            => array(396.00, 612.00), //    (5.5 in. by 8.5 in.)
86 86
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_EXECUTIVE
87
-            => 'EXECUTIVE',              //    (7.25 in. by 10.5 in.)
87
+            => 'EXECUTIVE', //    (7.25 in. by 10.5 in.)
88 88
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A3
89
-            => 'A3',                     //    (297 mm by 420 mm)
89
+            => 'A3', //    (297 mm by 420 mm)
90 90
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A4
91
-            => 'A4',                     //    (210 mm by 297 mm)
91
+            => 'A4', //    (210 mm by 297 mm)
92 92
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A4_SMALL
93
-            => 'A4',                     //    (210 mm by 297 mm)
93
+            => 'A4', //    (210 mm by 297 mm)
94 94
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A5
95
-            => 'A5',                     //    (148 mm by 210 mm)
95
+            => 'A5', //    (148 mm by 210 mm)
96 96
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_B4
97
-            => 'B4',                     //    (250 mm by 353 mm)
97
+            => 'B4', //    (250 mm by 353 mm)
98 98
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_B5
99
-            => 'B5',                     //    (176 mm by 250 mm)
99
+            => 'B5', //    (176 mm by 250 mm)
100 100
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_FOLIO
101
-            => 'FOLIO',                  //    (8.5 in. by 13 in.)
101
+            => 'FOLIO', //    (8.5 in. by 13 in.)
102 102
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_QUARTO
103
-            => array(609.45, 779.53),    //    (215 mm by 275 mm)
103
+            => array(609.45, 779.53), //    (215 mm by 275 mm)
104 104
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_STANDARD_1
105
-            => array(720.00, 1008.00),   //    (10 in. by 14 in.)
105
+            => array(720.00, 1008.00), //    (10 in. by 14 in.)
106 106
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_STANDARD_2
107
-            => array(792.00, 1224.00),   //    (11 in. by 17 in.)
107
+            => array(792.00, 1224.00), //    (11 in. by 17 in.)
108 108
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_NOTE
109
-            => 'LETTER',                 //    (8.5 in. by 11 in.)
109
+            => 'LETTER', //    (8.5 in. by 11 in.)
110 110
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_NO9_ENVELOPE
111
-            => array(279.00, 639.00),    //    (3.875 in. by 8.875 in.)
111
+            => array(279.00, 639.00), //    (3.875 in. by 8.875 in.)
112 112
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_NO10_ENVELOPE
113
-            => array(297.00, 684.00),    //    (4.125 in. by 9.5 in.)
113
+            => array(297.00, 684.00), //    (4.125 in. by 9.5 in.)
114 114
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_NO11_ENVELOPE
115
-            => array(324.00, 747.00),    //    (4.5 in. by 10.375 in.)
115
+            => array(324.00, 747.00), //    (4.5 in. by 10.375 in.)
116 116
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_NO12_ENVELOPE
117
-            => array(342.00, 792.00),    //    (4.75 in. by 11 in.)
117
+            => array(342.00, 792.00), //    (4.75 in. by 11 in.)
118 118
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_NO14_ENVELOPE
119
-            => array(360.00, 828.00),    //    (5 in. by 11.5 in.)
119
+            => array(360.00, 828.00), //    (5 in. by 11.5 in.)
120 120
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_C
121
-            => array(1224.00, 1584.00),  //    (17 in. by 22 in.)
121
+            => array(1224.00, 1584.00), //    (17 in. by 22 in.)
122 122
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_D
123
-            => array(1584.00, 2448.00),  //    (22 in. by 34 in.)
123
+            => array(1584.00, 2448.00), //    (22 in. by 34 in.)
124 124
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_E
125
-            => array(2448.00, 3168.00),  //    (34 in. by 44 in.)
125
+            => array(2448.00, 3168.00), //    (34 in. by 44 in.)
126 126
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_DL_ENVELOPE
127
-            => array(311.81, 623.62),    //    (110 mm by 220 mm)
127
+            => array(311.81, 623.62), //    (110 mm by 220 mm)
128 128
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_C5_ENVELOPE
129
-            => 'C5',                     //    (162 mm by 229 mm)
129
+            => 'C5', //    (162 mm by 229 mm)
130 130
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_C3_ENVELOPE
131
-            => 'C3',                     //    (324 mm by 458 mm)
131
+            => 'C3', //    (324 mm by 458 mm)
132 132
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_C4_ENVELOPE
133
-            => 'C4',                     //    (229 mm by 324 mm)
133
+            => 'C4', //    (229 mm by 324 mm)
134 134
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_C6_ENVELOPE
135
-            => 'C6',                     //    (114 mm by 162 mm)
135
+            => 'C6', //    (114 mm by 162 mm)
136 136
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_C65_ENVELOPE
137
-            => array(323.15, 649.13),    //    (114 mm by 229 mm)
137
+            => array(323.15, 649.13), //    (114 mm by 229 mm)
138 138
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_B4_ENVELOPE
139
-            => 'B4',                     //    (250 mm by 353 mm)
139
+            => 'B4', //    (250 mm by 353 mm)
140 140
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_B5_ENVELOPE
141
-            => 'B5',                     //    (176 mm by 250 mm)
141
+            => 'B5', //    (176 mm by 250 mm)
142 142
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_B6_ENVELOPE
143
-            => array(498.90, 354.33),    //    (176 mm by 125 mm)
143
+            => array(498.90, 354.33), //    (176 mm by 125 mm)
144 144
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_ITALY_ENVELOPE
145
-            => array(311.81, 651.97),    //    (110 mm by 230 mm)
145
+            => array(311.81, 651.97), //    (110 mm by 230 mm)
146 146
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_MONARCH_ENVELOPE
147
-            => array(279.00, 540.00),    //    (3.875 in. by 7.5 in.)
147
+            => array(279.00, 540.00), //    (3.875 in. by 7.5 in.)
148 148
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_6_3_4_ENVELOPE
149
-            => array(261.00, 468.00),    //    (3.625 in. by 6.5 in.)
149
+            => array(261.00, 468.00), //    (3.625 in. by 6.5 in.)
150 150
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_US_STANDARD_FANFOLD
151
-            => array(1071.00, 792.00),   //    (14.875 in. by 11 in.)
151
+            => array(1071.00, 792.00), //    (14.875 in. by 11 in.)
152 152
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_GERMAN_STANDARD_FANFOLD
153
-            => array(612.00, 864.00),    //    (8.5 in. by 12 in.)
153
+            => array(612.00, 864.00), //    (8.5 in. by 12 in.)
154 154
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_GERMAN_LEGAL_FANFOLD
155
-            => 'FOLIO',                  //    (8.5 in. by 13 in.)
155
+            => 'FOLIO', //    (8.5 in. by 13 in.)
156 156
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_ISO_B4
157
-            => 'B4',                     //    (250 mm by 353 mm)
157
+            => 'B4', //    (250 mm by 353 mm)
158 158
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_JAPANESE_DOUBLE_POSTCARD
159
-            => array(566.93, 419.53),    //    (200 mm by 148 mm)
159
+            => array(566.93, 419.53), //    (200 mm by 148 mm)
160 160
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_STANDARD_PAPER_1
161
-            => array(648.00, 792.00),    //    (9 in. by 11 in.)
161
+            => array(648.00, 792.00), //    (9 in. by 11 in.)
162 162
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_STANDARD_PAPER_2
163
-            => array(720.00, 792.00),    //    (10 in. by 11 in.)
163
+            => array(720.00, 792.00), //    (10 in. by 11 in.)
164 164
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_STANDARD_PAPER_3
165
-            => array(1080.00, 792.00),   //    (15 in. by 11 in.)
165
+            => array(1080.00, 792.00), //    (15 in. by 11 in.)
166 166
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_INVITE_ENVELOPE
167
-            => array(623.62, 623.62),    //    (220 mm by 220 mm)
167
+            => array(623.62, 623.62), //    (220 mm by 220 mm)
168 168
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_LETTER_EXTRA_PAPER
169
-            => array(667.80, 864.00),    //    (9.275 in. by 12 in.)
169
+            => array(667.80, 864.00), //    (9.275 in. by 12 in.)
170 170
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_LEGAL_EXTRA_PAPER
171
-            => array(667.80, 1080.00),   //    (9.275 in. by 15 in.)
171
+            => array(667.80, 1080.00), //    (9.275 in. by 15 in.)
172 172
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_TABLOID_EXTRA_PAPER
173
-            => array(841.68, 1296.00),   //    (11.69 in. by 18 in.)
173
+            => array(841.68, 1296.00), //    (11.69 in. by 18 in.)
174 174
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A4_EXTRA_PAPER
175
-            => array(668.98, 912.76),    //    (236 mm by 322 mm)
175
+            => array(668.98, 912.76), //    (236 mm by 322 mm)
176 176
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_LETTER_TRANSVERSE_PAPER
177
-            => array(595.80, 792.00),    //    (8.275 in. by 11 in.)
177
+            => array(595.80, 792.00), //    (8.275 in. by 11 in.)
178 178
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A4_TRANSVERSE_PAPER
179
-            => 'A4',                     //    (210 mm by 297 mm)
179
+            => 'A4', //    (210 mm by 297 mm)
180 180
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_LETTER_EXTRA_TRANSVERSE_PAPER
181
-            => array(667.80, 864.00),    //    (9.275 in. by 12 in.)
181
+            => array(667.80, 864.00), //    (9.275 in. by 12 in.)
182 182
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_SUPERA_SUPERA_A4_PAPER
183
-            => array(643.46, 1009.13),   //    (227 mm by 356 mm)
183
+            => array(643.46, 1009.13), //    (227 mm by 356 mm)
184 184
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_SUPERB_SUPERB_A3_PAPER
185
-            => array(864.57, 1380.47),   //    (305 mm by 487 mm)
185
+            => array(864.57, 1380.47), //    (305 mm by 487 mm)
186 186
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_LETTER_PLUS_PAPER
187
-            => array(612.00, 913.68),    //    (8.5 in. by 12.69 in.)
187
+            => array(612.00, 913.68), //    (8.5 in. by 12.69 in.)
188 188
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A4_PLUS_PAPER
189
-            => array(595.28, 935.43),    //    (210 mm by 330 mm)
189
+            => array(595.28, 935.43), //    (210 mm by 330 mm)
190 190
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A5_TRANSVERSE_PAPER
191
-            => 'A5',                     //    (148 mm by 210 mm)
191
+            => 'A5', //    (148 mm by 210 mm)
192 192
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_JIS_B5_TRANSVERSE_PAPER
193
-            => array(515.91, 728.50),    //    (182 mm by 257 mm)
193
+            => array(515.91, 728.50), //    (182 mm by 257 mm)
194 194
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A3_EXTRA_PAPER
195
-            => array(912.76, 1261.42),   //    (322 mm by 445 mm)
195
+            => array(912.76, 1261.42), //    (322 mm by 445 mm)
196 196
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A5_EXTRA_PAPER
197
-            => array(493.23, 666.14),    //    (174 mm by 235 mm)
197
+            => array(493.23, 666.14), //    (174 mm by 235 mm)
198 198
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_ISO_B5_EXTRA_PAPER
199
-            => array(569.76, 782.36),    //    (201 mm by 276 mm)
199
+            => array(569.76, 782.36), //    (201 mm by 276 mm)
200 200
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A2_PAPER
201
-            => 'A2',                     //    (420 mm by 594 mm)
201
+            => 'A2', //    (420 mm by 594 mm)
202 202
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A3_TRANSVERSE_PAPER
203
-            => 'A3',                     //    (297 mm by 420 mm)
203
+            => 'A3', //    (297 mm by 420 mm)
204 204
         \PHPExcel\Worksheet\PageSetup::PAPERSIZE_A3_EXTRA_TRANSVERSE_PAPER
205 205
             => array(912.76, 1261.42)    //    (322 mm by 445 mm)
206 206
     );
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/PDF/DomPDF.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $fileHandle = parent::prepareForSave($pFilename);
59 59
 
60 60
         //  Default PDF paper size
61
-        $paperSize = 'LETTER';    //    Letter    (8.5 in. by 11 in.)
61
+        $paperSize = 'LETTER'; //    Letter    (8.5 in. by 11 in.)
62 62
 
63 63
         //  Check for paper size and page orientation
64 64
         if (is_null($this->getSheetIndex())) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/BaseWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      *
59 59
      * @var string
60 60
      */
61
-    protected $_diskCachingDirectory    = './';
61
+    protected $_diskCachingDirectory = './';
62 62
 
63 63
     /**
64 64
      * Write charts in workbook?
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/CSV.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -41,28 +41,28 @@  discard block
 block discarded – undo
41 41
      *
42 42
      * @var string
43 43
      */
44
-    private $delimiter    = ',';
44
+    private $delimiter = ',';
45 45
 
46 46
     /**
47 47
      * Enclosure
48 48
      *
49 49
      * @var string
50 50
      */
51
-    private $enclosure    = '"';
51
+    private $enclosure = '"';
52 52
 
53 53
     /**
54 54
      * Line ending
55 55
      *
56 56
      * @var string
57 57
      */
58
-    private $lineEnding    = PHP_EOL;
58
+    private $lineEnding = PHP_EOL;
59 59
 
60 60
     /**
61 61
      * Sheet index to write
62 62
      *
63 63
      * @var int
64 64
      */
65
-    private $sheetIndex    = 0;
65
+    private $sheetIndex = 0;
66 66
 
67 67
     /**
68 68
      * Whether to write a BOM (for UTF8).
@@ -119,10 +119,10 @@  discard block
 block discarded – undo
119 119
         }
120 120
 
121 121
         if ($this->excelCompatibility) {
122
-            $this->setUseBOM(true);                //  Enforce UTF-8 BOM Header
123
-            $this->setIncludeSeparatorLine(true);  //  Set separator line
124
-            $this->setEnclosure('"');              //  Set enclosure to "
125
-            $this->setDelimiter(";");              //  Set delimiter to a semi-colon
122
+            $this->setUseBOM(true); //  Enforce UTF-8 BOM Header
123
+            $this->setIncludeSeparatorLine(true); //  Set separator line
124
+            $this->setEnclosure('"'); //  Set enclosure to "
125
+            $this->setDelimiter(";"); //  Set delimiter to a semi-colon
126 126
             $this->setLineEnding("\r\n");
127 127
         }
128 128
         if ($this->useBOM) {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         // Write rows to file
142 142
         for ($row = 1; $row <= $maxRow; ++$row) {
143 143
             // Convert the row to an array...
144
-            $cellsArray = $sheet->rangeToArray('A'.$row.':'.$maxCol.$row, '', $this->preCalculateFormulas);
144
+            $cellsArray = $sheet->rangeToArray('A' . $row . ':' . $maxCol . $row, '', $this->preCalculateFormulas);
145 145
             // ... and write to the file
146 146
             $this->writeLine($fileHandle, $cellsArray[0]);
147 147
         }
Please login to merge, or discard this patch.
Documentation/Examples/Reader/exampleReader18.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 //	$inputFileType = 'Gnumeric';
34 34
 $inputFileName = './sampleData/example1.xls';
35 35
 
36
-echo 'Loading file ',pathinfo($inputFileName,PATHINFO_BASENAME),' information using IOFactory with a defined reader type of ',$inputFileType,'<br />';
36
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' information using IOFactory with a defined reader type of ', $inputFileType, '<br />';
37 37
 
38 38
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
39 39
 $worksheetData = $objReader->listWorksheetInfo($inputFileName);
Please login to merge, or discard this patch.
Documentation/Examples/Reader/exampleReader03.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 //	$inputFileType = 'Gnumeric';
34 34
 $inputFileName = './sampleData/example1.xls';
35 35
 
36
-echo 'Loading file ',pathinfo($inputFileName,PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />';
36
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />';
37 37
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
38 38
 echo 'Turning Formatting off for Load<br />';
39 39
 $objReader->setReadDataOnly(true);
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
 echo '<hr />';
44 44
 
45
-$sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true);
45
+$sheetData = $objPHPExcel->getActiveSheet()->toArray(null, true, true, true);
46 46
 var_dump($sheetData);
47 47
 
48 48
 
Please login to merge, or discard this patch.
Documentation/Examples/Calculations/Database/DPRODUCT.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -32,21 +32,21 @@  discard block
 block discarded – undo
32 32
 $worksheet = $objPHPExcel->getActiveSheet();
33 33
 
34 34
 // Add some data
35
-$database = array( array( 'Tree',  'Height', 'Age', 'Yield', 'Profit' ),
36
-                   array( 'Apple',  18,       20,    14,      105.00  ),
37
-                   array( 'Pear',   12,       12,    10,       96.00  ),
38
-                   array( 'Cherry', 13,       14,     9,      105.00  ),
39
-                   array( 'Apple',  14,       15,    10,       75.00  ),
40
-                   array( 'Pear',    9,        8,     8,       76.80  ),
41
-                   array( 'Apple',   8,        9,     6,       45.00  ),
35
+$database = array(array('Tree', 'Height', 'Age', 'Yield', 'Profit'),
36
+                   array('Apple', 18, 20, 14, 105.00),
37
+                   array('Pear', 12, 12, 10, 96.00),
38
+                   array('Cherry', 13, 14, 9, 105.00),
39
+                   array('Apple', 14, 15, 10, 75.00),
40
+                   array('Pear', 9, 8, 8, 76.80),
41
+                   array('Apple', 8, 9, 6, 45.00),
42 42
                  );
43
-$criteria = array( array( 'Tree',      'Height', 'Age', 'Yield', 'Profit', 'Height' ),
44
-                   array( '="=Apple"', '>10',    NULL,  NULL,    NULL,     '<16'    ),
45
-                   array( '="=Pear"',  NULL,     NULL,  NULL,    NULL,     NULL     )
43
+$criteria = array(array('Tree', 'Height', 'Age', 'Yield', 'Profit', 'Height'),
44
+                   array('="=Apple"', '>10', NULL, NULL, NULL, '<16'),
45
+                   array('="=Pear"', NULL, NULL, NULL, NULL, NULL)
46 46
                  );
47 47
 
48
-$worksheet->fromArray( $criteria, NULL, 'A1' );
49
-$worksheet->fromArray( $database, NULL, 'A4' );
48
+$worksheet->fromArray($criteria, NULL, 'A1');
49
+$worksheet->fromArray($database, NULL, 'A4');
50 50
 
51 51
 $worksheet->setCellValue('A12', 'The height of the Apple tree between 10\' and 16\' tall');
52 52
 $worksheet->setCellValue('B12', '=DGET(A4:E10,"Height",A1:F2)');
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
 echo '<h4>Database</h4>';
59 59
 
60
-$databaseData = $worksheet->rangeToArray('A4:E10',null,true,true,true);
60
+$databaseData = $worksheet->rangeToArray('A4:E10', null, true, true, true);
61 61
 var_dump($databaseData);
62 62
 
63 63
 
@@ -69,15 +69,15 @@  discard block
 block discarded – undo
69 69
 
70 70
 echo 'ALL' . '<br /><br />';
71 71
 
72
-echo $worksheet->getCell("A12")->getValue() .'<br />';
73
-echo 'DMAX() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() .'<br /><br />';
72
+echo $worksheet->getCell("A12")->getValue() . '<br />';
73
+echo 'DMAX() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() . '<br /><br />';
74 74
 
75 75
 echo '<h4>Criteria</h4>';
76 76
 
77
-$criteriaData = $worksheet->rangeToArray('A1:A2',null,true,true,true);
77
+$criteriaData = $worksheet->rangeToArray('A1:A2', null, true, true, true);
78 78
 var_dump($criteriaData);
79 79
 
80
-echo $worksheet->getCell("A13")->getValue() .'<br />';
80
+echo $worksheet->getCell("A13")->getValue() . '<br />';
81 81
 echo 'DMAX() Result is ' . $worksheet->getCell("B13")->getCalculatedValue();
82 82
 
83 83
 
Please login to merge, or discard this patch.
Documentation/Examples/Calculations/Database/DMAX.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -32,21 +32,21 @@  discard block
 block discarded – undo
32 32
 $worksheet = $objPHPExcel->getActiveSheet();
33 33
 
34 34
 // Add some data
35
-$database = array( array( 'Tree',  'Height', 'Age', 'Yield', 'Profit' ),
36
-                   array( 'Apple',  18,       20,    14,      105.00  ),
37
-                   array( 'Pear',   12,       12,    10,       96.00  ),
38
-                   array( 'Cherry', 13,       14,     9,      105.00  ),
39
-                   array( 'Apple',  14,       15,    10,       75.00  ),
40
-                   array( 'Pear',    9,        8,     8,       76.80  ),
41
-                   array( 'Apple',   8,        9,     6,       45.00  ),
35
+$database = array(array('Tree', 'Height', 'Age', 'Yield', 'Profit'),
36
+                   array('Apple', 18, 20, 14, 105.00),
37
+                   array('Pear', 12, 12, 10, 96.00),
38
+                   array('Cherry', 13, 14, 9, 105.00),
39
+                   array('Apple', 14, 15, 10, 75.00),
40
+                   array('Pear', 9, 8, 8, 76.80),
41
+                   array('Apple', 8, 9, 6, 45.00),
42 42
                  );
43
-$criteria = array( array( 'Tree',      'Height', 'Age', 'Yield', 'Profit', 'Height' ),
44
-                   array( '="=Apple"', '>10',    NULL,  NULL,    NULL,     '<16'    ),
45
-                   array( '="=Pear"',  NULL,     NULL,  NULL,    NULL,     NULL     )
43
+$criteria = array(array('Tree', 'Height', 'Age', 'Yield', 'Profit', 'Height'),
44
+                   array('="=Apple"', '>10', NULL, NULL, NULL, '<16'),
45
+                   array('="=Pear"', NULL, NULL, NULL, NULL, NULL)
46 46
                  );
47 47
 
48
-$worksheet->fromArray( $criteria, NULL, 'A1' );
49
-$worksheet->fromArray( $database, NULL, 'A4' );
48
+$worksheet->fromArray($criteria, NULL, 'A1');
49
+$worksheet->fromArray($database, NULL, 'A4');
50 50
 
51 51
 $worksheet->setCellValue('A12', 'The height of the Apple tree between 10\' and 16\' tall');
52 52
 $worksheet->setCellValue('B12', '=DGET(A4:E10,"Height",A1:F2)');
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
 echo '<h4>Database</h4>';
59 59
 
60
-$databaseData = $worksheet->rangeToArray('A4:E10',null,true,true,true);
60
+$databaseData = $worksheet->rangeToArray('A4:E10', null, true, true, true);
61 61
 var_dump($databaseData);
62 62
 
63 63
 
@@ -69,15 +69,15 @@  discard block
 block discarded – undo
69 69
 
70 70
 echo 'ALL' . '<br /><br />';
71 71
 
72
-echo $worksheet->getCell("A12")->getValue() .'<br />';
73
-echo 'DMAX() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() .'<br /><br />';
72
+echo $worksheet->getCell("A12")->getValue() . '<br />';
73
+echo 'DMAX() Result is ' . $worksheet->getCell("B12")->getCalculatedValue() . '<br /><br />';
74 74
 
75 75
 echo '<h4>Criteria</h4>';
76 76
 
77
-$criteriaData = $worksheet->rangeToArray('A1:A2',null,true,true,true);
77
+$criteriaData = $worksheet->rangeToArray('A1:A2', null, true, true, true);
78 78
 var_dump($criteriaData);
79 79
 
80
-echo $worksheet->getCell("A13")->getValue() .'<br />';
80
+echo $worksheet->getCell("A13")->getValue() . '<br />';
81 81
 echo 'DMAX() Result is ' . $worksheet->getCell("B13")->getCalculatedValue();
82 82
 
83 83
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTime.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -129,10 +129,10 @@  discard block
 block discarded – undo
129 129
 
130 130
         $adjustmentMonthsString = (string) $adjustmentMonths;
131 131
         if ($adjustmentMonths > 0) {
132
-            $adjustmentMonthsString = '+'.$adjustmentMonths;
132
+            $adjustmentMonthsString = '+' . $adjustmentMonths;
133 133
         }
134 134
         if ($adjustmentMonths != 0) {
135
-            $PHPDateObject->modify($adjustmentMonthsString.' months');
135
+            $PHPDateObject->modify($adjustmentMonthsString . ' months');
136 136
         }
137 137
         $nMonth = (int) $PHPDateObject->format('m');
138 138
         $nYear = (int) $PHPDateObject->format('Y');
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         $monthDiff = ($nMonth - $oMonth) + (($nYear - $oYear) * 12);
141 141
         if ($monthDiff != $adjustmentMonths) {
142 142
             $adjustDays = (int) $PHPDateObject->format('d');
143
-            $adjustDaysString = '-'.$adjustDays.' days';
143
+            $adjustDaysString = '-' . $adjustDays . ' days';
144 144
             $PHPDateObject->modify($adjustDaysString);
145 145
         }
146 146
         return $PHPDateObject;
@@ -302,20 +302,20 @@  discard block
 block discarded – undo
302 302
             (!is_numeric($day))) {
303 303
             return Functions::VALUE();
304 304
         }
305
-        $year    = (integer) $year;
305
+        $year = (integer) $year;
306 306
         $month    = (integer) $month;
307
-        $day    = (integer) $day;
307
+        $day = (integer) $day;
308 308
 
309 309
         $baseYear = \PHPExcel\Shared\Date::getExcelCalendar();
310 310
         // Validate parameters
311
-        if ($year < ($baseYear-1900)) {
311
+        if ($year < ($baseYear - 1900)) {
312 312
             return Functions::NAN();
313 313
         }
314
-        if ((($baseYear-1900) != 0) && ($year < $baseYear) && ($year >= 1900)) {
314
+        if ((($baseYear - 1900) != 0) && ($year < $baseYear) && ($year >= 1900)) {
315 315
             return Functions::NAN();
316 316
         }
317 317
 
318
-        if (($year < $baseYear) && ($year >= ($baseYear-1900))) {
318
+        if (($year < $baseYear) && ($year >= ($baseYear - 1900))) {
319 319
             $year += 1900;
320 320
         }
321 321
 
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
                 }
436 436
                 return (float) \PHPExcel\Shared\Date::formattedPHPToExcel($calendar, 1, $date, $hour, $minute, $second);
437 437
             case Functions::RETURNDATE_PHP_NUMERIC:
438
-                return (integer) \PHPExcel\Shared\Date::excelToTimestamp(\PHPExcel\Shared\Date::formattedPHPToExcel(1970, 1, 1, $hour, $minute, $second));    // -2147468400; //    -2147472000 + 3600
438
+                return (integer) \PHPExcel\Shared\Date::excelToTimestamp(\PHPExcel\Shared\Date::formattedPHPToExcel(1970, 1, 1, $hour, $minute, $second)); // -2147468400; //    -2147472000 + 3600
439 439
             case Functions::RETURNDATE_PHP_OBJECT:
440 440
                 $dayAdjust = 0;
441 441
                 if ($hour < 0) {
@@ -448,9 +448,9 @@  discard block
 block discarded – undo
448 448
                     $dayAdjust = floor($hour / 24);
449 449
                     $hour = $hour % 24;
450 450
                 }
451
-                $phpDateObject = new \DateTime('1900-01-01 '.$hour.':'.$minute.':'.$second);
451
+                $phpDateObject = new \DateTime('1900-01-01 ' . $hour . ':' . $minute . ':' . $second);
452 452
                 if ($dayAdjust != 0) {
453
-                    $phpDateObject->modify($dayAdjust.' days');
453
+                    $phpDateObject->modify($dayAdjust . ' days');
454 454
                 }
455 455
                 return $phpDateObject;
456 456
         }
@@ -485,12 +485,12 @@  discard block
 block discarded – undo
485 485
      */
486 486
     public static function DATEVALUE($dateValue = 1)
487 487
     {
488
-        $dateValueOrig= $dateValue;
488
+        $dateValueOrig = $dateValue;
489 489
         $dateValue = trim(Functions::flattenSingleValue($dateValue), '"');
490 490
         //    Strip any ordinals because they're allowed in Excel (English only)
491 491
         $dateValue = preg_replace('/(\d)(st|nd|rd|th)([ -\/])/Ui', '$1$3', $dateValue);
492 492
         //    Convert separators (/ . or space) to hyphens (should also handle dot used for ordinals in some countries, e.g. Denmark, Germany)
493
-        $dateValue    = str_replace(array('/', '.', '-', '  '), array(' ', ' ', ' ', ' '), $dateValue);
493
+        $dateValue = str_replace(array('/', '.', '-', '  '), array(' ', ' ', ' ', ' '), $dateValue);
494 494
 
495 495
         $yearFound = false;
496 496
         $t1 = explode(' ', $dateValue);
@@ -544,9 +544,9 @@  discard block
 block discarded – undo
544 544
             if ($testVal1 < 31 && $testVal2 < 12 && $testVal3 < 12 && strlen($testVal3) == 2) {
545 545
                 $testVal3 += 2000;
546 546
             }
547
-            $PHPDateArray = date_parse($testVal1.'-'.$testVal2.'-'.$testVal3);
547
+            $PHPDateArray = date_parse($testVal1 . '-' . $testVal2 . '-' . $testVal3);
548 548
             if (($PHPDateArray === false) || ($PHPDateArray['error_count'] > 0)) {
549
-                $PHPDateArray = date_parse($testVal2.'-'.$testVal1.'-'.$testVal3);
549
+                $PHPDateArray = date_parse($testVal2 . '-' . $testVal1 . '-' . $testVal3);
550 550
                 if (($PHPDateArray === false) || ($PHPDateArray['error_count'] > 0)) {
551 551
                     return Functions::VALUE();
552 552
                 }
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
                 case Functions::RETURNDATE_PHP_NUMERIC:
587 587
                     return (integer) \PHPExcel\Shared\Date::excelToTimestamp($excelDateValue);
588 588
                 case Functions::RETURNDATE_PHP_OBJECT:
589
-                    return new \DateTime($PHPDateArray['year'].'-'.$PHPDateArray['month'].'-'.$PHPDateArray['day'].' 00:00:00');
589
+                    return new \DateTime($PHPDateArray['year'] . '-' . $PHPDateArray['month'] . '-' . $PHPDateArray['day'] . ' 00:00:00');
590 590
             }
591 591
         }
592 592
         return Functions::VALUE();
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
         $timeValue = str_replace(array('/', '.'), array('-', '-'), $timeValue);
622 622
 
623 623
         $arraySplit = preg_split('/[\/:\-\s]/', $timeValue);
624
-        if ((count($arraySplit) == 2 ||count($arraySplit) == 3) && $arraySplit[0] > 24) {
624
+        if ((count($arraySplit) == 2 || count($arraySplit) == 3) && $arraySplit[0] > 24) {
625 625
             $arraySplit[0] = ($arraySplit[0] % 24);
626 626
             $timeValue = implode(':', $arraySplit);
627 627
         }
@@ -645,9 +645,9 @@  discard block
 block discarded – undo
645 645
                 case Functions::RETURNDATE_EXCEL:
646 646
                     return (float) $excelDateValue;
647 647
                 case Functions::RETURNDATE_PHP_NUMERIC:
648
-                    return (integer) $phpDateValue = \PHPExcel\Shared\Date::excelToTimestamp($excelDateValue+25569) - 3600;
648
+                    return (integer) $phpDateValue = \PHPExcel\Shared\Date::excelToTimestamp($excelDateValue + 25569) - 3600;
649 649
                 case Functions::RETURNDATE_PHP_OBJECT:
650
-                    return new \DateTime('1900-01-01 '.$PHPDateArray['hour'].':'.$PHPDateArray['minute'].':'.$PHPDateArray['second']);
650
+                    return new \DateTime('1900-01-01 ' . $PHPDateArray['hour'] . ':' . $PHPDateArray['minute'] . ':' . $PHPDateArray['second']);
651 651
             }
652 652
         }
653 653
         return Functions::VALUE();
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
             case 'MD':
723 723
                 if ($endDays < $startDays) {
724 724
                     $retVal = $endDays;
725
-                    $PHPEndDateObject->modify('-'.$endDays.' days');
725
+                    $PHPEndDateObject->modify('-' . $endDays . ' days');
726 726
                     $adjustDays = $PHPEndDateObject->format('j');
727 727
                     $retVal += ($adjustDays - $startDays);
728 728
                 } else {
@@ -790,8 +790,8 @@  discard block
 block discarded – undo
790 790
      */
791 791
     public static function DAYS360($startDate = 0, $endDate = 0, $method = false)
792 792
     {
793
-        $startDate    = Functions::flattenSingleValue($startDate);
794
-        $endDate    = Functions::flattenSingleValue($endDate);
793
+        $startDate = Functions::flattenSingleValue($startDate);
794
+        $endDate = Functions::flattenSingleValue($endDate);
795 795
 
796 796
         if (is_string($startDate = self::getDateValue($startDate))) {
797 797
             return Functions::VALUE();
@@ -846,9 +846,9 @@  discard block
 block discarded – undo
846 846
      */
847 847
     public static function YEARFRAC($startDate = 0, $endDate = 0, $method = 0)
848 848
     {
849
-        $startDate    = Functions::flattenSingleValue($startDate);
850
-        $endDate    = Functions::flattenSingleValue($endDate);
851
-        $method        = Functions::flattenSingleValue($method);
849
+        $startDate = Functions::flattenSingleValue($startDate);
850
+        $endDate = Functions::flattenSingleValue($endDate);
851
+        $method = Functions::flattenSingleValue($method);
852 852
 
853 853
         if (is_string($startDate = self::getDateValue($startDate))) {
854 854
             return Functions::VALUE();
@@ -943,8 +943,8 @@  discard block
 block discarded – undo
943 943
     public static function NETWORKDAYS($startDate, $endDate)
944 944
     {
945 945
         //    Retrieve the mandatory start and end date that are referenced in the function definition
946
-        $startDate    = Functions::flattenSingleValue($startDate);
947
-        $endDate    = Functions::flattenSingleValue($endDate);
946
+        $startDate = Functions::flattenSingleValue($startDate);
947
+        $endDate = Functions::flattenSingleValue($endDate);
948 948
         //    Flush the mandatory start and end date that are referenced in the function definition, and get the optional days
949 949
         $dateArgs = Functions::flattenArray(func_get_args());
950 950
         array_shift($dateArgs);
@@ -1030,8 +1030,8 @@  discard block
 block discarded – undo
1030 1030
     public static function WORKDAY($startDate, $endDays)
1031 1031
     {
1032 1032
         //    Retrieve the mandatory start date and days that are referenced in the function definition
1033
-        $startDate    = Functions::flattenSingleValue($startDate);
1034
-        $endDays    = Functions::flattenSingleValue($endDays);
1033
+        $startDate = Functions::flattenSingleValue($startDate);
1034
+        $endDays = Functions::flattenSingleValue($endDays);
1035 1035
         //    Flush the mandatory start date and days that are referenced in the function definition, and get the optional days
1036 1036
         $dateArgs = Functions::flattenArray(func_get_args());
1037 1037
         array_shift($dateArgs);
@@ -1053,7 +1053,7 @@  discard block
 block discarded – undo
1053 1053
 
1054 1054
         $startDoW = self::DAYOFWEEK($startDate, 3);
1055 1055
         if (self::DAYOFWEEK($startDate, 3) >= 5) {
1056
-            $startDate += ($decrementing) ? -$startDoW + 4: 7 - $startDoW;
1056
+            $startDate += ($decrementing) ? -$startDoW + 4 : 7 - $startDoW;
1057 1057
             ($decrementing) ? $endDays++ : $endDays--;
1058 1058
         }
1059 1059
 
@@ -1063,7 +1063,7 @@  discard block
 block discarded – undo
1063 1063
         //    Adjust the calculated end date if it falls over a weekend
1064 1064
         $endDoW = self::DAYOFWEEK($endDate, 3);
1065 1065
         if ($endDoW >= 5) {
1066
-            $endDate += ($decrementing) ? -$endDoW + 4: 7 - $endDoW;
1066
+            $endDate += ($decrementing) ? -$endDoW + 4 : 7 - $endDoW;
1067 1067
         }
1068 1068
 
1069 1069
         //    Test any extra holiday parameters
@@ -1134,7 +1134,7 @@  discard block
 block discarded – undo
1134 1134
      */
1135 1135
     public static function DAYOFMONTH($dateValue = 1)
1136 1136
     {
1137
-        $dateValue    = Functions::flattenSingleValue($dateValue);
1137
+        $dateValue = Functions::flattenSingleValue($dateValue);
1138 1138
 
1139 1139
         if ($dateValue === null) {
1140 1140
             $dateValue = 1;
@@ -1248,8 +1248,8 @@  discard block
 block discarded – undo
1248 1248
      */
1249 1249
     public static function WEEKOFYEAR($dateValue = 1, $method = 1)
1250 1250
     {
1251
-        $dateValue    = Functions::flattenSingleValue($dateValue);
1252
-        $method        = Functions::flattenSingleValue($method);
1251
+        $dateValue = Functions::flattenSingleValue($dateValue);
1252
+        $method = Functions::flattenSingleValue($method);
1253 1253
 
1254 1254
         if (!is_numeric($method)) {
1255 1255
             return Functions::VALUE();
@@ -1294,7 +1294,7 @@  discard block
 block discarded – undo
1294 1294
      */
1295 1295
     public static function MONTHOFYEAR($dateValue = 1)
1296 1296
     {
1297
-        $dateValue    = Functions::flattenSingleValue($dateValue);
1297
+        $dateValue = Functions::flattenSingleValue($dateValue);
1298 1298
 
1299 1299
         if (empty($dateValue)) {
1300 1300
             $dateValue = 1;
@@ -1327,7 +1327,7 @@  discard block
 block discarded – undo
1327 1327
      */
1328 1328
     public static function YEAR($dateValue = 1)
1329 1329
     {
1330
-        $dateValue    = Functions::flattenSingleValue($dateValue);
1330
+        $dateValue = Functions::flattenSingleValue($dateValue);
1331 1331
 
1332 1332
         if ($dateValue === null) {
1333 1333
             $dateValue = 1;
@@ -1359,7 +1359,7 @@  discard block
 block discarded – undo
1359 1359
      */
1360 1360
     public static function HOUROFDAY($timeValue = 0)
1361 1361
     {
1362
-        $timeValue    = Functions::flattenSingleValue($timeValue);
1362
+        $timeValue = Functions::flattenSingleValue($timeValue);
1363 1363
 
1364 1364
         if (!is_numeric($timeValue)) {
1365 1365
             if (Functions::getCompatibilityMode() == Functions::COMPATIBILITY_GNUMERIC) {
@@ -1400,7 +1400,7 @@  discard block
 block discarded – undo
1400 1400
      */
1401 1401
     public static function MINUTEOFHOUR($timeValue = 0)
1402 1402
     {
1403
-        $timeValue = $timeTester    = Functions::flattenSingleValue($timeValue);
1403
+        $timeValue = $timeTester = Functions::flattenSingleValue($timeValue);
1404 1404
 
1405 1405
         if (!is_numeric($timeValue)) {
1406 1406
             if (Functions::getCompatibilityMode() == Functions::COMPATIBILITY_GNUMERIC) {
@@ -1441,7 +1441,7 @@  discard block
 block discarded – undo
1441 1441
      */
1442 1442
     public static function SECONDOFMINUTE($timeValue = 0)
1443 1443
     {
1444
-        $timeValue    = Functions::flattenSingleValue($timeValue);
1444
+        $timeValue = Functions::flattenSingleValue($timeValue);
1445 1445
 
1446 1446
         if (!is_numeric($timeValue)) {
1447 1447
             if (Functions::getCompatibilityMode() == Functions::COMPATIBILITY_GNUMERIC) {
@@ -1488,8 +1488,8 @@  discard block
 block discarded – undo
1488 1488
      */
1489 1489
     public static function EDATE($dateValue = 1, $adjustmentMonths = 0)
1490 1490
     {
1491
-        $dateValue            = Functions::flattenSingleValue($dateValue);
1492
-        $adjustmentMonths    = Functions::flattenSingleValue($adjustmentMonths);
1491
+        $dateValue = Functions::flattenSingleValue($dateValue);
1492
+        $adjustmentMonths = Functions::flattenSingleValue($adjustmentMonths);
1493 1493
 
1494 1494
         if (!is_numeric($adjustmentMonths)) {
1495 1495
             return Functions::VALUE();
@@ -1534,8 +1534,8 @@  discard block
 block discarded – undo
1534 1534
      */
1535 1535
     public static function EOMONTH($dateValue = 1, $adjustmentMonths = 0)
1536 1536
     {
1537
-        $dateValue            = Functions::flattenSingleValue($dateValue);
1538
-        $adjustmentMonths    = Functions::flattenSingleValue($adjustmentMonths);
1537
+        $dateValue = Functions::flattenSingleValue($dateValue);
1538
+        $adjustmentMonths = Functions::flattenSingleValue($adjustmentMonths);
1539 1539
 
1540 1540
         if (!is_numeric($adjustmentMonths)) {
1541 1541
             return Functions::VALUE();
@@ -1547,7 +1547,7 @@  discard block
 block discarded – undo
1547 1547
         }
1548 1548
 
1549 1549
         // Execute function
1550
-        $PHPDateObject = self::adjustDateByMonths($dateValue, $adjustmentMonths+1);
1550
+        $PHPDateObject = self::adjustDateByMonths($dateValue, $adjustmentMonths + 1);
1551 1551
         $adjustDays = (int) $PHPDateObject->format('d');
1552 1552
         $adjustDaysString = '-' . $adjustDays . ' days';
1553 1553
         $PHPDateObject->modify($adjustDaysString);
Please login to merge, or discard this patch.