diff --git a/app/Actions/CalculateScoreSheetTotal.php b/app/Actions/Tabulation/CalculateScoreSheetTotal.php similarity index 98% rename from app/Actions/CalculateScoreSheetTotal.php rename to app/Actions/Tabulation/CalculateScoreSheetTotal.php index 7a72c90..1f814d5 100644 --- a/app/Actions/CalculateScoreSheetTotal.php +++ b/app/Actions/Tabulation/CalculateScoreSheetTotal.php @@ -2,7 +2,7 @@ /** @noinspection PhpUnhandledExceptionInspection */ -namespace App\Actions; +namespace App\Actions\Tabulation; use App\Exceptions\TabulationException; use App\Models\Entry; diff --git a/app/Actions/EnterScore.php b/app/Actions/Tabulation/EnterScore.php similarity index 99% rename from app/Actions/EnterScore.php rename to app/Actions/Tabulation/EnterScore.php index 25c357b..b8c01ad 100644 --- a/app/Actions/EnterScore.php +++ b/app/Actions/Tabulation/EnterScore.php @@ -4,7 +4,7 @@ /** @noinspection PhpMissingReturnTypeInspection */ -namespace App\Actions; +namespace App\Actions\Tabulation; use App\Exceptions\ScoreEntryException; use App\Models\Entry; diff --git a/app/Services/ScoreService.php b/app/Services/ScoreService.php index 25d7dc7..afd29c2 100644 --- a/app/Services/ScoreService.php +++ b/app/Services/ScoreService.php @@ -21,11 +21,4 @@ class ScoreService return $requiredJudges === $scoreSheets; } - - public function scoreSheetTotal(string $mode, User $judge, Entry $entry): float - { - - } - - } diff --git a/app/helpers.php b/app/helpers.php index 22f435f..abe2a72 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -1,6 +1,6 @@ id, 'name: ', - $student->full_name(true), + e($student->full_name(true)), ], false); // The false parameter makes the assertion case-sensitive and allows for HTML tags }); diff --git a/tests/Feature/Services/ScoreServiceTest.php b/tests/Feature/Services/ScoreServiceTest.php index 3c19f15..64f544f 100644 --- a/tests/Feature/Services/ScoreServiceTest.php +++ b/tests/Feature/Services/ScoreServiceTest.php @@ -7,7 +7,6 @@ use App\Models\ScoreSheet; use App\Models\User; use App\Services\ScoreService; use Illuminate\Foundation\Testing\RefreshDatabase; -use function Pest\Laravel\artisan; uses(RefreshDatabase::class);