Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Fix PSR-2
Browse files Browse the repository at this point in the history
  • Loading branch information
tbordinat committed Aug 22, 2016
1 parent 9e386dc commit 8454ddc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Faker/Provider/fr_FR/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public static function prefix()
public function nir($gender = null, $formatted = false)
{
// Gender
if($gender === static::GENDER_MALE) {
if ($gender === static::GENDER_MALE) {
$nir = 1;
} elseif($gender === static::GENDER_FEMALE) {
} elseif ($gender === static::GENDER_FEMALE) {
$nir = 2;
} else {
$nir = $this->numberBetween(1, 2);
Expand All @@ -96,9 +96,9 @@ public function nir($gender = null, $formatted = false)
$nir .= $department;

// Town number, depends on department length
if(strlen($department) === 2) {
if (strlen($department) === 2) {
$nir .= $this->numerify('###');
} elseif(strlen($department) === 3) {
} elseif (strlen($department) === 3) {
$nir .= $this->numerify('##');
}

Expand All @@ -110,9 +110,9 @@ public function nir($gender = null, $formatted = false)
* NIR has to be an integer, so we have to do a little replacment
* for departments 2A and 2B
*/
if($department === '2A') {
if ($department === '2A') {
$nirInteger = str_replace('2A', '19', $nir);
} elseif($department === '2B') {
} elseif ($department === '2B') {
$nirInteger = str_replace('2B', '18', $nir);
} else {
$nirInteger = $nir;
Expand Down

0 comments on commit 8454ddc

Please sign in to comment.