Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
iamfarhad authored and github-actions[bot] committed Feb 27, 2023
1 parent 92353a3 commit 5d5eb50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/Rules/NationalCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function passes($attribute, $value): bool
}

$control = ($sub % 11) < 2 ? $sub % 11 : 11 - ($sub % 11);

return $value[9] == $control;
}

Expand Down
1 change: 0 additions & 1 deletion tests/Rules/UsernameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Iamfarhad\Validation\Tests\Rules;

use Iamfarhad\Validation\Rules\Address;
use Iamfarhad\Validation\Rules\Username;
use Iamfarhad\Validation\Tests\TestCase;
use Illuminate\Support\Facades\Validator;
Expand Down

0 comments on commit 5d5eb50

Please sign in to comment.