@@ -13,8 +13,8 @@ |
||
13 | 13 | ->disableOriginalConstructor() |
14 | 14 | ->getMock(); |
15 | 15 | $this->mockWorksheet->expects($this->any()) |
16 | - ->method('getHighestRow') |
|
17 | - ->will($this->returnValue(5)); |
|
16 | + ->method('getHighestRow') |
|
17 | + ->will($this->returnValue(5)); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 |
@@ -18,11 +18,11 @@ |
||
18 | 18 | ->getMock(); |
19 | 19 | |
20 | 20 | $this->mockWorksheet->expects($this->any()) |
21 | - ->method('getHighestColumn') |
|
22 | - ->will($this->returnValue('E')); |
|
21 | + ->method('getHighestColumn') |
|
22 | + ->will($this->returnValue('E')); |
|
23 | 23 | $this->mockWorksheet->expects($this->any()) |
24 | - ->method('getCellByColumnAndRow') |
|
25 | - ->will($this->returnValue($this->mockCell)); |
|
24 | + ->method('getCellByColumnAndRow') |
|
25 | + ->will($this->returnValue($this->mockCell)); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 |
@@ -45,22 +45,22 @@ |
||
45 | 45 | ->disableOriginalConstructor() |
46 | 46 | ->getMock(); |
47 | 47 | $cache->expects($this->any()) |
48 | - ->method('getParent') |
|
49 | - ->will($this->returnValue($sheet)); |
|
48 | + ->method('getParent') |
|
49 | + ->will($this->returnValue($sheet)); |
|
50 | 50 | |
51 | 51 | $sheet->expects($this->once()) |
52 | - ->method('getStyle') |
|
53 | - ->will($this->returnSelf()); |
|
52 | + ->method('getStyle') |
|
53 | + ->will($this->returnSelf()); |
|
54 | 54 | $sheet->expects($this->once()) |
55 | - ->method('getNumberFormat') |
|
56 | - ->will($this->returnSelf()); |
|
55 | + ->method('getNumberFormat') |
|
56 | + ->will($this->returnSelf()); |
|
57 | 57 | $sheet->expects($this->once()) |
58 | - ->method('setFormatCode') |
|
59 | - ->with($format) |
|
60 | - ->will($this->returnSelf()); |
|
58 | + ->method('setFormatCode') |
|
59 | + ->with($format) |
|
60 | + ->will($this->returnSelf()); |
|
61 | 61 | $sheet->expects($this->any()) |
62 | - ->method('getCellCacheController') |
|
63 | - ->will($this->returnValue($cache)); |
|
62 | + ->method('getCellCacheController') |
|
63 | + ->will($this->returnValue($cache)); |
|
64 | 64 | |
65 | 65 | \PHPExcel\Shared\StringHelper::setCurrencyCode($currencyCode); |
66 | 66 | \PHPExcel\Shared\StringHelper::setDecimalSeparator($decimalSeparator); |
@@ -24,8 +24,8 @@ |
||
24 | 24 | ->getMock(); |
25 | 25 | // Configure the stub. |
26 | 26 | $this->cellStub->expects($this->any()) |
27 | - ->method('setValueExplicit') |
|
28 | - ->will($this->returnValue(true)); |
|
27 | + ->method('setValueExplicit') |
|
28 | + ->will($this->returnValue(true)); |
|
29 | 29 | |
30 | 30 | } |
31 | 31 |
@@ -874,7 +874,7 @@ |
||
874 | 874 | $endDay = self::DAYOFMONTH($endDate); |
875 | 875 | if (($startMonth < 3) || |
876 | 876 | (($endMonth * 100 + $endDay) >= (2 * 100 + 29))) { |
877 | - $leapDays += 1; |
|
877 | + $leapDays += 1; |
|
878 | 878 | } |
879 | 879 | } |
880 | 880 | } else { |
@@ -1214,20 +1214,20 @@ |
||
1214 | 1214 | return $returnValue; |
1215 | 1215 | } |
1216 | 1216 | |
1217 | - /** |
|
1218 | - * SUMIFS |
|
1219 | - * |
|
1220 | - * Counts the number of cells that contain numbers within the list of arguments |
|
1221 | - * |
|
1222 | - * Excel Function: |
|
1223 | - * SUMIFS(value1[,value2[, ...]],condition) |
|
1224 | - * |
|
1225 | - * @access public |
|
1226 | - * @category Mathematical and Trigonometric Functions |
|
1227 | - * @param mixed $arg,... Data values |
|
1228 | - * @param string $condition The criteria that defines which cells will be summed. |
|
1229 | - * @return float |
|
1230 | - */ |
|
1217 | + /** |
|
1218 | + * SUMIFS |
|
1219 | + * |
|
1220 | + * Counts the number of cells that contain numbers within the list of arguments |
|
1221 | + * |
|
1222 | + * Excel Function: |
|
1223 | + * SUMIFS(value1[,value2[, ...]],condition) |
|
1224 | + * |
|
1225 | + * @access public |
|
1226 | + * @category Mathematical and Trigonometric Functions |
|
1227 | + * @param mixed $arg,... Data values |
|
1228 | + * @param string $condition The criteria that defines which cells will be summed. |
|
1229 | + * @return float |
|
1230 | + */ |
|
1231 | 1231 | public static function SUMIFS() |
1232 | 1232 | { |
1233 | 1233 | $arrayList = func_get_args(); |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | (($previousToken->getTokenType() == FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == FormulaToken::TOKEN_SUBTYPE_STOP)) || |
501 | 501 | (($previousToken->getTokenType() == FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == FormulaToken::TOKEN_SUBTYPE_STOP)) || |
502 | 502 | ($previousToken->getTokenType() == FormulaToken::TOKEN_TYPE_OPERAND) |
503 | - ) ) { |
|
503 | + ) ) { |
|
504 | 504 | continue; |
505 | 505 | } |
506 | 506 | |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | (($nextToken->getTokenType() == FormulaToken::TOKEN_TYPE_FUNCTION) && ($nextToken->getTokenSubType() == FormulaToken::TOKEN_SUBTYPE_START)) || |
513 | 513 | (($nextToken->getTokenType() == FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($nextToken->getTokenSubType() == FormulaToken::TOKEN_SUBTYPE_START)) || |
514 | 514 | ($nextToken->getTokenType() == FormulaToken::TOKEN_TYPE_OPERAND) |
515 | - ) ) { |
|
515 | + ) ) { |
|
516 | 516 | continue; |
517 | 517 | } |
518 | 518 |
@@ -174,26 +174,26 @@ |
||
174 | 174 | switch ($whence) { |
175 | 175 | case SEEK_SET: |
176 | 176 | if ($offset < strlen($this->data) && $offset >= 0) { |
177 | - $this->position = $offset; |
|
178 | - return true; |
|
177 | + $this->position = $offset; |
|
178 | + return true; |
|
179 | 179 | } else { |
180 | - return false; |
|
180 | + return false; |
|
181 | 181 | } |
182 | 182 | break; |
183 | 183 | case SEEK_CUR: |
184 | 184 | if ($offset >= 0) { |
185 | - $this->position += $offset; |
|
186 | - return true; |
|
185 | + $this->position += $offset; |
|
186 | + return true; |
|
187 | 187 | } else { |
188 | - return false; |
|
188 | + return false; |
|
189 | 189 | } |
190 | 190 | break; |
191 | 191 | case SEEK_END: |
192 | 192 | if (strlen($this->data) + $offset >= 0) { |
193 | - $this->position = strlen($this->data) + $offset; |
|
194 | - return true; |
|
193 | + $this->position = strlen($this->data) + $offset; |
|
194 | + return true; |
|
195 | 195 | } else { |
196 | - return false; |
|
196 | + return false; |
|
197 | 197 | } |
198 | 198 | break; |
199 | 199 | default: |
@@ -61,11 +61,11 @@ |
||
61 | 61 | |
62 | 62 | |
63 | 63 | /** |
64 | - * Verify if a file exists |
|
65 | - * |
|
66 | - * @param string $pFilename Filename |
|
67 | - * @return bool |
|
68 | - */ |
|
64 | + * Verify if a file exists |
|
65 | + * |
|
66 | + * @param string $pFilename Filename |
|
67 | + * @return bool |
|
68 | + */ |
|
69 | 69 | public static function fileExists($pFilename) |
70 | 70 | { |
71 | 71 | // Sick construction, but it seems that |