Skip to content
This repository was archived by the owner on Apr 12, 2022. It is now read-only.

Commit e121dda

Browse files
authored
Dep update (#16)
1 parent 3e96bd7 commit e121dda

9 files changed

+21
-50
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/tests export-ignore
33
.gitattributes export-ignore
44
.gitignore export-ignore
5-
.php_cs export-ignore
5+
.php-cs-fixer.php export-ignore
66
Makefile export-ignore
77
phpstan.neon export-ignore
88
phpunit.xml export-ignore

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.idea/
22
vendor/
3-
.php_cs.cache
3+
.php-cs-fixer.cache
44
.phpunit.result.cache
55
composer.lock
File renamed without changes.

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"require-dev": {
1818
"malukenho/mcbumpface": "^1.1.5",
1919
"mikey179/vfsstream": "^1.6.8",
20-
"phpoffice/phpspreadsheet": "^1.16.0",
21-
"phpstan/phpstan": "^0.12.71",
22-
"phpstan/phpstan-phpunit": "^0.12.17",
23-
"phpunit/phpunit": "^9.5.2",
24-
"slam/php-cs-fixer-extensions": "^2.2.0",
20+
"phpoffice/phpspreadsheet": "^1.17.1",
21+
"phpstan/phpstan": "^0.12.86",
22+
"phpstan/phpstan-phpunit": "^0.12.18",
23+
"phpunit/phpunit": "^9.5.4",
24+
"slam/php-cs-fixer-extensions": "^3.0.1",
2525
"slam/php-debug-r": "^1.7.0",
2626
"slam/phpstan-extensions": "^5.1.0"
2727
},

lib/Helper/TableWorkbook.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ private function writeRow(Table $table, array $row, ?string $type = null): void
170170
$format = null;
171171
if (isset($this->formats[$key])) {
172172
if (null === $type) {
173-
$type = (($table->getRowCurrent() % 2)
173+
$type = (
174+
($table->getRowCurrent() % 2)
174175
? 'zebra_light'
175176
: 'zebra_dark'
176177
);

tests/Helper/ColumnCollectionTest.php

+3-9
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,9 @@
1010

1111
final class ColumnCollectionTest extends TestCase
1212
{
13-
/**
14-
* @var Helper\Column
15-
*/
16-
private $column;
17-
18-
/**
19-
* @var Helper\ColumnCollection
20-
*/
21-
private $collection;
13+
private Helper\Column $column;
14+
15+
private Helper\ColumnCollection $collection;
2216

2317
protected function setUp(): void
2418
{

tests/Helper/MainTest.php

+3-12
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,11 @@
1010

1111
final class MainTest extends TestCase
1212
{
13-
/**
14-
* @var vfs\vfsStreamDirectory
15-
*/
16-
private $vfs;
13+
private vfs\vfsStreamDirectory $vfs;
1714

18-
/**
19-
* @var string
20-
*/
21-
private $filename;
15+
private string $filename;
2216

23-
/**
24-
* @var Excel\Pear\Writer\Workbook
25-
*/
26-
private $xls;
17+
private Excel\Pear\Writer\Workbook $xls;
2718

2819
protected function setUp(): void
2920
{

tests/Helper/TableTest.php

+4-13
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,16 @@
1010

1111
final class TableTest extends TestCase
1212
{
13-
/**
14-
* @var Excel\Pear\Writer\Workbook
15-
*/
16-
private $phpExcel;
13+
private Excel\Pear\Writer\Workbook $phpExcel;
1714

18-
/**
19-
* @var Excel\Pear\Writer\Worksheet
20-
*/
21-
private $activeSheet;
15+
private Excel\Pear\Writer\Worksheet $activeSheet;
2216

2317
/**
2418
* @var ArrayIterator<int, string>
2519
*/
26-
private $data;
20+
private ArrayIterator $data;
2721

28-
/**
29-
* @var Excel\Helper\Table
30-
*/
31-
private $table;
22+
private Excel\Helper\Table $table;
3223

3324
protected function setUp(): void
3425
{

tests/Helper/TableWorkbookTest.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,9 @@
1212

1313
final class TableWorkbookTest extends TestCase
1414
{
15-
/**
16-
* @var vfs\vfsStreamDirectory
17-
*/
18-
private $vfs;
15+
private vfs\vfsStreamDirectory $vfs;
1916

20-
/**
21-
* @var string
22-
*/
23-
private $filename;
17+
private string $filename;
2418

2519
protected function setUp(): void
2620
{

0 commit comments

Comments
 (0)