Skip to content

Commit

Permalink
Tidying up formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Caius Durling committed May 16, 2008
1 parent 6c6f1f5 commit d5fb987
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions lib/phone_number.php
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
<?php

/**
*
*/
*
*/
class Phone_Number extends Faker
{
/**
* Do nothing on being instanced
*
* @return void
* @author Caius Durling
*/
* Do nothing on being instanced
*
* @return void
* @author Caius Durling
*/
public function __construct()
{
}

public function __get($var)
{
return $this->$var();
}

public function phone_number()
{
$formats = array(
'+## (#) #### ### ###',
'+## (#) #### ######',
'0#### ######',
'0#### ### ###',
'###-###-####',
'(###)###-####',
'1-###-###-####',
'###.###.####',
'###-###-####',
'(###)###-####',
'1-###-###-####',
'###.###.####',
'###-###-#### x###',
'(###)###-#### x###',
'1-###-###-#### x###',
'###.###.#### x###',
'###-###-#### x####',
'(###)###-#### x####',
'1-###-###-#### x####',
'###.###.#### x####',
'###-###-#### x#####',
'(###)###-#### x#####',
'1-###-###-#### x#####',
'###.###.#### x#####'
);
'+## (#) #### ### ###',
'+## (#) #### ######',
'0#### ######',
'0#### ### ###',
'###-###-####',
'(###)###-####',
'1-###-###-####',
'###.###.####',
'###-###-####',
'(###)###-####',
'1-###-###-####',
'###.###.####',
'###-###-#### x###',
'(###)###-#### x###',
'1-###-###-#### x###',
'###.###.#### x###',
'###-###-#### x####',
'(###)###-#### x####',
'1-###-###-#### x####',
'###.###.#### x####',
'###-###-#### x#####',
'(###)###-#### x#####',
'1-###-###-#### x#####',
'###.###.#### x#####'
);
return parent::numerify( parent::random( $formats ) );
}
}
Expand Down

0 comments on commit d5fb987

Please sign in to comment.