Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mako321 committed Aug 2, 2023
1 parent 42a88cd commit 142f821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/StatsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getAvailableStats($model = null): array
public function export($model, string $stat): BinaryFileResponse
{
$available = $this->getAvailableStats($model);
$exportClass = 'EscolaLms\Reports\Exports\Stats\\' . str_after($stat, 'Stats\\') . 'Export';
$exportClass = 'EscolaLms\Reports\Exports\Stats\\' . Str::after($stat, 'Stats\\') . 'Export';

if (!in_array($stat, $available) || !class_exists($exportClass)) {
throw new ExportNotExistsException();
Expand Down

0 comments on commit 142f821

Please sign in to comment.