Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
iamfarhad committed Feb 27, 2023
2 parents b7a03f4 + bd77a56 commit c3707f8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to `iamfarhad/validation` will be documented in this file

## v3.1.0 - 2023-02-27

**Full Changelog**: https://github.com/iamfarhad/validation/compare/v3.0.0...v3.1.0

- Added Laravel Pint
- Added PHP Rector
- Added username validation

## v3.0.0 - 2023-02-21

### What's Changed
Expand Down
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 c3707f8

Please sign in to comment.