Skip to content

Commit

Permalink
Apply fixes from StyleCI (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre authored May 31, 2019
1 parent 5ac0d64 commit 1731095
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Importable.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private function importSheet(SheetInterface $sheet, callable $callback = null)
$collection[] = $result;
}
} else {
$collection[] = $row;
$collection[] = $row;
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions tests/IssuesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,19 @@ public function testIssue72()
$this->assertInstanceOf(Collection::class, $collection);
}

public function testIssue93()
public function testIssue93()
{
(new FastExcel($this->collection()))->export(__DIR__.'/猫.xlsx');
$this->assertTrue(file_exists(__DIR__.'/猫.xlsx'));
unlink(__DIR__.'/猫.xlsx');
}

public function testIssue86()
public function testIssue86()
{
$users = (new FastExcel)->withoutHeaders()->import(__DIR__.'/test1.xlsx', function ($line) {
$users = (new FastExcel())->withoutHeaders()->import(__DIR__.'/test1.xlsx', function ($line) {
return $line;
});
$this->assertCount(4, $users);
$this->assertEquals($users[0], ["col1","col2"]);
$this->assertEquals($users[0], ['col1', 'col2']);
}
}

0 comments on commit 1731095

Please sign in to comment.