Ignore classes for code coverage
This commit is contained in:
parent
409aa939c3
commit
db34a86545
|
|
@ -4,9 +4,11 @@ namespace App\Rules;
|
|||
|
||||
use App\Settings;
|
||||
use Closure;
|
||||
use Hamcrest\Core\Set;
|
||||
use Illuminate\Contracts\Validation\ValidationRule;
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class ValidRegistrationCode implements ValidationRule
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -6,8 +6,20 @@ use Closure;
|
|||
use Illuminate\Contracts\Validation\ValidationRule;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class ValidateAuditionKey implements ValidationRule
|
||||
{
|
||||
/**
|
||||
* Validates the given attribute and value to ensure they correspond
|
||||
* to an existing audition in the database. If the audition ID does
|
||||
* not exist, the validation will fail with the provided message.
|
||||
*
|
||||
* @param string $attribute The attribute being validated.
|
||||
* @param mixed $value The value of the attribute.
|
||||
* @param Closure $fail Callback function to indicate validation failure.
|
||||
*/
|
||||
public function validate(string $attribute, mixed $value, Closure $fail): void
|
||||
{
|
||||
// Extract the key from the attribute
|
||||
|
|
|
|||
Loading…
Reference in New Issue