Skip to content

Commit

Permalink
style: fixed by styleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
tu6ge committed Aug 31, 2021
1 parent bbbd727 commit 849d214
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Actions/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function massAction($ids, $comingFrom)

if (isset($model->export_handler) && class_exists($model->export_handler)) {
$export = new $model->export_handler($this->dataType, $ids);

if (!($export instanceof AbstractExport)) {
throw new \Exception(sprintf('the %s model export_handler is not instanceof Tu6ge\VoyagerExcel\Exports\AbstractExport', get_class($model)));
}
Expand Down
2 changes: 1 addition & 1 deletion src/Exports/AbstractExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

abstract class AbstractExport
{
abstract function __construct($dataType, array $ids);
abstract public function __construct($dataType, array $ids);
}
1 change: 0 additions & 1 deletion tests/CustomExportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public function testExportPartRecord()
});
}


private function createBreadForFormfield($type, $name, $options = '')
{
Schema::dropIfExists('categories');
Expand Down
4 changes: 2 additions & 2 deletions tests/Models/CustomExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class CustomExport extends Model

class MyExport extends AbstractExport implements FromCollection
{
public function __construct($dataType, array $ids){

public function __construct($dataType, array $ids)
{
}

public function collection()
Expand Down

0 comments on commit 849d214

Please sign in to comment.