for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace XLaravel\ValidationTrTaxNumberExtend\Rules;
use Illuminate\Contracts\Validation\Rule;
use XAdam\TrTaxNumberValidation;
class TrTaxNumberRule implements Rule
{
public function passes($attribute, $value): bool
return TrTaxNumberValidation::validate($value);
}
public function message(): string
return trans('X-Laravel::validationTrTaxNumberExtend.error');
trans
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return /** @scrutinizer ignore-call */ trans('X-Laravel::validationTrTaxNumberExtend.error');