1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-19 06:49:50 +01:00

Fix code highlighting

This commit is contained in:
Francois Zaninotto 2014-03-21 18:25:22 +01:00
parent 98f400afc8
commit 3da8c930ed

View File

@ -372,10 +372,12 @@ echo $faker->name; // 'Jess Mraz I';
> **Tip**: DateTime formatters won't reproduce the same fake data if you don't fix the `$max` value:
>
> // even when seeded, this line will return different results because $max varies
> $faker->dateTime(); // equivalent to $faker->dateTime($max = 'now')
> // make sure you fix the $max parameter
> $faker->dateTime('2014-02-25 08:37:17'); // will return always the same date when seeded
> ```php
> <?php
> // even when seeded, this line will return different results because $max varies
> $faker->dateTime(); // equivalent to $faker->dateTime($max = 'now')
> // make sure you fix the $max parameter
> $faker->dateTime('2014-02-25 08:37:17'); // will return always the same date when seeded
## Faker Internals: Understanding Providers