Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tidying up formatting

  • Loading branch information...
commit 5a5ef830c6fc887b1824e211a03f3fc0ada45700 1 parent c21f322
Caius Durling authored
Showing with 31 additions and 35 deletions.
  1. +0 −1  faker.php
  2. +28 −28 index.php
  3. +1 −4 lib/address.php
  4. +2 −2 lib/phone_number.php
1  faker.php
View
@@ -115,7 +115,6 @@ public function bothify( $string )
return $result;
}
-
}
// Include the library files
56 index.php
View
@@ -56,44 +56,44 @@
);
?>
-<table>
- <legend>$f = new Faker</legend>
- <tr>
- <th>PHP Statement</th>
- <th>Output</th>
- </tr>
+ <table>
+ <legend>$f = new Faker</legend>
+ <tr>
+ <th>PHP Statement</th>
+ <th>Output</th>
+ </tr>
- <?php
+ <?php
- $f = new Faker;
+ $f = new Faker;
- foreach ($arr as $class => $methods) {
- foreach ($methods as $method) {
- if ( is_array( $method ) ) {
+ foreach ($arr as $class => $methods) {
+ foreach ($methods as $method) {
+ if ( is_array( $method ) ) {
+ ?>
+ <tr>
+ <td>$f-><?php echo $class ?>-><?php echo $method[0] ?>( <?php echo $method[1] ?> )</td>
+ <?php if ( strpos( $method[1], "'" ) ): ?>
+ <td><?php echo $f->$class->$method[0]( '$method[1]' ) ?></td>
+ <?php else: ?>
+ <td><?php echo $f->$class->$method[0]( $method[1] ) ?></td>
+ <?php endif ?>
+ </tr>
+ <?php
+ } else {
?>
<tr>
- <td>$f-><?php echo $class ?>-><?php echo $method[0] ?>( <?php echo $method[1] ?> )</td>
- <?php if ( strpos( $method[1], "'" ) ): ?>
- <td><?php echo $f->$class->$method[0]( '$method[1]' ) ?></td>
- <?php else: ?>
- <td><?php echo $f->$class->$method[0]( $method[1] ) ?></td>
- <?php endif ?>
+ <td>$f-><?php echo $class ?>-><?php echo $method ?></td>
+ <td><?php echo $f->$class->$method ?></td>
</tr>
<?php
- } else {
- ?>
- <tr>
- <td>$f-><?php echo $class ?>-><?php echo $method ?></td>
- <td><?php echo $f->$class->$method ?></td>
- </tr>
- <?php
+ }
}
}
- }
- ?>
+ ?>
-</table>
+ </table>
- </body>
+</body>
</html>
5 lib/address.php
View
@@ -22,9 +22,6 @@ public function __get( $var )
return $this->$var();
}
-
-
-
public function street_suffix()
{
$s = array( 'Alley', 'Avenue', 'Branch', 'Bridge', 'Brook', 'Brooks', 'Burg', 'Burgs', 'Bypass', 'Camp', 'Canyon', 'Cape', 'Causeway', 'Center', 'Centers', 'Circle', 'Circles', 'Cliff', 'Cliffs', 'Club', 'Common', 'Corner', 'Corners', 'Course', 'Court', 'Courts', 'Cove', 'Coves', 'Creek', 'Crescent', 'Crest', 'Crossing', 'Crossroad', 'Curve', 'Dale', 'Dam', 'Divide', 'Drive', 'Drive', 'Drives', 'Estate', 'Estates', 'Expressway', 'Extension', 'Extensions', 'Fall', 'Falls', 'Ferry', 'Field', 'Fields', 'Flat', 'Flats', 'Ford', 'Fords', 'Forest', 'Forge', 'Forges', 'Fork', 'Forks', 'Fort', 'Freeway', 'Garden', 'Gardens', 'Gateway', 'Glen', 'Glens', 'Green', 'Greens', 'Grove', 'Groves', 'Harbor', 'Harbors', 'Haven', 'Heights', 'Highway', 'Hill', 'Hills', 'Hollow', 'Inlet', 'Inlet', 'Island', 'Island', 'Islands', 'Islands', 'Isle', 'Isle', 'Junction', 'Junctions', 'Key', 'Keys', 'Knoll', 'Knolls', 'Lake', 'Lakes', 'Land', 'Landing', 'Lane', 'Light', 'Lights', 'Loaf', 'Lock', 'Locks', 'Locks', 'Lodge', 'Lodge', 'Loop', 'Mall', 'Manor', 'Manors', 'Meadow', 'Meadows', 'Mews', 'Mill', 'Mills', 'Mission', 'Mission', 'Motorway', 'Mount', 'Mountain', 'Mountain', 'Mountains', 'Mountains', 'Neck', 'Orchard', 'Oval', 'Overpass', 'Park', 'Parks', 'Parkway', 'Parkways', 'Pass', 'Passage', 'Path', 'Pike', 'Pine', 'Pines', 'Place', 'Plain', 'Plains', 'Plains', 'Plaza', 'Plaza', 'Point', 'Points', 'Port', 'Port', 'Ports', 'Ports', 'Prairie', 'Prairie', 'Radial', 'Ramp', 'Ranch', 'Rapid', 'Rapids', 'Rest', 'Ridge', 'Ridges', 'River', 'Road', 'Road', 'Roads', 'Roads', 'Route', 'Row', 'Rue', 'Run', 'Shoal', 'Shoals', 'Shore', 'Shores', 'Skyway', 'Spring', 'Springs', 'Springs', 'Spur', 'Spurs', 'Square', 'Square', 'Squares', 'Squares', 'Station', 'Station', 'Stravenue', 'Stravenue', 'Stream', 'Stream', 'Street', 'Street', 'Streets', 'Summit', 'Summit', 'Terrace', 'Throughway', 'Trace', 'Track', 'Trafficway', 'Trail', 'Trail', 'Tunnel', 'Tunnel', 'Turnpike', 'Turnpike', 'Underpass', 'Union', 'Unions', 'Valley', 'Valleys', 'Via', 'Viaduct', 'View', 'Views', 'Village', 'Village', 'Villages', 'Ville', 'Vista', 'Vista', 'Walk', 'Walks', 'Wall', 'Way', 'Ways', 'Well', 'Wells' );
@@ -67,7 +64,6 @@ public function abode_address( $include_street=false )
}
-
######### UK Only ###########
public function uk_county()
@@ -95,6 +91,7 @@ public function post_code()
return strtoupper($result);
}
+
###### American Only ########
public function us_state()
4 lib/phone_number.php
View
@@ -1,8 +1,8 @@
<?php
/**
- *
- */
+*
+*/
class Phone_Number extends Faker
{
/**
Please sign in to comment.
Something went wrong with that request. Please try again.