@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
2 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
3 | 3 | |
4 | 4 | $start = microtime(true); |
5 | 5 | $header = [ |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
2 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
3 | 3 | |
4 | 4 | $start = microtime(true); |
5 | 5 | $header = [ |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
2 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
3 | 3 | |
4 | 4 | $start = microtime(true); |
5 | 5 | $header = [ |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
2 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
3 | 3 | |
4 | 4 | use Ellumilel\ExcelWriter; |
5 | 5 | |
@@ -20,6 +20,6 @@ discard block |
||
20 | 20 | $writer->writeToFile("unit_test_output_one.xlsx"); |
21 | 21 | |
22 | 22 | |
23 | - $this->assertEquals(true, file_exists(__DIR__ . "/../unit_test_output_one.xlsx")); |
|
23 | + $this->assertEquals(true, file_exists(__DIR__."/../unit_test_output_one.xlsx")); |
|
24 | 24 | } |
25 | 25 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | return 60 + $seconds; |
41 | 41 | } |
42 | 42 | |
43 | - $range = $year - $epoch; |
|
43 | + $range = $year - $epoch; |
|
44 | 44 | // check leapDay |
45 | 45 | $leap = (new \DateTime($dateInput))->format('L'); |
46 | 46 | $mDays = [31, ($leap ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | $days = $day + ($range * 365) + array_sum(array_slice($mDays, 0, $month - 1)); |
53 | - $days += intval(($range) / 4) - intval(($range + $offset) / 100); |
|
53 | + $days += intval(($range) / 4) - intval(($range + $offset) / 100); |
|
54 | 54 | $days += intval(($range + $offset + $norm) / 400) - intval($leap); |
55 | 55 | |
56 | 56 | if ($days > 59) { |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | class ExcelWriter |
19 | 19 | { |
20 | 20 | /** @var string */ |
21 | - protected $author ='Unknown Author'; |
|
21 | + protected $author = 'Unknown Author'; |
|
22 | 22 | /** @var array */ |
23 | 23 | protected $sheets = []; |
24 | 24 | /** @var array */ |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | return; |
185 | 185 | } |
186 | 186 | $sheetFilename = $this->tempFilename(); |
187 | - $sheetXmlName = 'sheet' . (count($this->sheets) + 1).".xml"; |
|
187 | + $sheetXmlName = 'sheet'.(count($this->sheets) + 1).".xml"; |
|
188 | 188 | $sheetObj = new Sheet(); |
189 | 189 | $sheetObj |
190 | 190 | ->setFilename($sheetFilename) |