Rewrite tabulation #14

Merged
okorpheus merged 43 commits from rewrite-tabulation into master 2024-07-14 05:36:29 +00:00
8 changed files with 6 additions and 14 deletions
Showing only changes of commit 120eaedeb5 - Show all commits

View File

@ -2,7 +2,7 @@
/** @noinspection PhpUnhandledExceptionInspection */ /** @noinspection PhpUnhandledExceptionInspection */
namespace App\Actions; namespace App\Actions\Tabulation;
use App\Exceptions\TabulationException; use App\Exceptions\TabulationException;
use App\Models\Entry; use App\Models\Entry;

View File

@ -4,7 +4,7 @@
/** @noinspection PhpMissingReturnTypeInspection */ /** @noinspection PhpMissingReturnTypeInspection */
namespace App\Actions; namespace App\Actions\Tabulation;
use App\Exceptions\ScoreEntryException; use App\Exceptions\ScoreEntryException;
use App\Models\Entry; use App\Models\Entry;

View File

@ -21,11 +21,4 @@ class ScoreService
return $requiredJudges === $scoreSheets; return $requiredJudges === $scoreSheets;
} }
public function scoreSheetTotal(string $mode, User $judge, Entry $entry): float
{
}
} }

View File

@ -1,6 +1,6 @@
<?php <?php
use App\Actions\EnterScore; use App\Actions\Tabulation\EnterScore;
use App\Exceptions\ScoreEntryException; use App\Exceptions\ScoreEntryException;
use App\Models\Entry; use App\Models\Entry;
use App\Models\User; use App\Models\User;

View File

@ -2,7 +2,7 @@
/** @noinspection PhpUnhandledExceptionInspection */ /** @noinspection PhpUnhandledExceptionInspection */
use App\Actions\CalculateScoreSheetTotal; use App\Actions\Tabulation\CalculateScoreSheetTotal;
use App\Exceptions\TabulationException; use App\Exceptions\TabulationException;
use App\Models\Entry; use App\Models\Entry;
use App\Models\Room; use App\Models\Room;

View File

@ -2,7 +2,7 @@
/** @noinspection PhpUnhandledExceptionInspection */ /** @noinspection PhpUnhandledExceptionInspection */
use App\Actions\EnterScore; use App\Actions\Tabulation\EnterScore;
use App\Exceptions\ScoreEntryException; use App\Exceptions\ScoreEntryException;
use App\Models\Entry; use App\Models\Entry;
use App\Models\Room; use App\Models\Room;

View File

@ -48,7 +48,7 @@ it('has appropriate students in JS array for select', function () {
'id: ', 'id: ',
$student->id, $student->id,
'name: ', 'name: ',
$student->full_name(true), e($student->full_name(true)),
], false); // The false parameter makes the assertion case-sensitive and allows for HTML tags ], false); // The false parameter makes the assertion case-sensitive and allows for HTML tags
}); });

View File

@ -7,7 +7,6 @@ use App\Models\ScoreSheet;
use App\Models\User; use App\Models\User;
use App\Services\ScoreService; use App\Services\ScoreService;
use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\RefreshDatabase;
use function Pest\Laravel\artisan;
uses(RefreshDatabase::class); uses(RefreshDatabase::class);