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

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Jan 4, 2015
1 parent d65354d commit a64991c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 103 deletions.
17 changes: 0 additions & 17 deletions src/Faker/Provider/id_ID/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,21 +313,4 @@ public static function buildingNumber()
{
return static::numberBetween(1, 999);
}

/**
* Returns a valid (non-verified) single postal code
* @link http://nomor.net/_kodepos.php?_i=provinsi-kodepos&daerah=&jobs=&perhal=200&urut=&asc=000011111&sby=000000&no1=2
* @return String Postal Code
*/
// public static function postcode()
// {
// // Ended up using the second result on the first page of google search
// // Because the derelict, decrepit, and non user-friendly
// // Official Government site at:
// // http://kodepos.posindonesia.co.id/kodeposalamatindonesialist.php
// // just won't let you list all currently used postal codes

// // MAGIC NUMBERS!!!
// return static::numberBetween(10110, 99974);
// }
}
18 changes: 5 additions & 13 deletions src/Faker/Provider/id_ID/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
class PhoneNumber extends \Faker\Provider\PhoneNumber
{
protected static $formats = array(
// 8804 234
'#######',

// 7777 4444
'########',
'#######', // 8804 234

This comment has been minimized.

Copy link
@GrahamCampbell

GrahamCampbell Jan 4, 2015

Contributor

maybe align these comments too like the others?

This comment has been minimized.

Copy link
@fzaninotto

fzaninotto Jan 4, 2015

Author Owner

I simplified it instead - the Faker way of doing this is to uses masks.

'########', // 7777 4444
);

protected static $internationalPrefixes = array('+62', '(+62)');
Expand Down Expand Up @@ -66,14 +63,9 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
);

protected static $mobileNumberFormats = array(
// 0811 XXX XXX, 10 digits, very old
'######',

// 0811 XXXX XXX, 11 digits
'#######',

// 0811 XXXX XXXX, 12 digits
'########',
'######', // 0811 XXX XXX, 10 digits, very old
'#######', // 0811 XXXX XXX, 11 digits
'########', // 0811 XXXX XXXX, 12 digits
);

public static function internationalNumber()
Expand Down
37 changes: 0 additions & 37 deletions test/Faker/Provider/id_ID/AddressTest.php

This file was deleted.

36 changes: 0 additions & 36 deletions test/Faker/Provider/id_ID/PersonTest.php

This file was deleted.

0 comments on commit a64991c

Please sign in to comment.