Skip to content

Commit

Permalink
Covert tab to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
TS committed Apr 6, 2024
1 parent 330f5c3 commit 7621fc3
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 52 deletions.
73 changes: 35 additions & 38 deletions examples/demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@
print_r($numbers);

$faker = Faker::init([
'vowels' => 'iea',
'consonants' => 'dlm',
'nextChar' => [
'sameChar' => 0, // percent between 0-100
'sameType' => 0, // percent between 0-100
'double' => 50, // percent between 0-100
]
'vowels' => 'iea',
'consonants' => 'dlm',
'nextChar' => [
'sameChar' => 0, // percent between 0-100
'sameType' => 0, // percent between 0-100
'double' => 50, // percent between 0-100
]
]);

$words = [];
Expand All @@ -98,13 +98,13 @@


$faker = Faker::init([
'vowels' => 'ao',
'consonants' => 'klmnpr',
'nextChar' => [
'sameChar' => 0, // percent between 0-100
'sameType' => 0, // percent between 0-100
'double' => 0 // percent between 0-100
],
'vowels' => 'ao',
'consonants' => 'klmnpr',
'nextChar' => [
'sameChar' => 0, // percent between 0-100
'sameType' => 0, // percent between 0-100
'double' => 0 // percent between 0-100
],
]);

$names = [];
Expand All @@ -114,13 +114,13 @@


$faker = Faker::init([
'vowels' => 'io',
'consonants' => 'bdrstv',
'nextChar' => [
'sameChar' => 0, // percent between 0-100
'sameType' => 0, // percent between 0-100
'double' => 0 // percent between 0-100
],
'vowels' => 'io',
'consonants' => 'bdrstv',
'nextChar' => [
'sameChar' => 0, // percent between 0-100
'sameType' => 0, // percent between 0-100
'double' => 0 // percent between 0-100
],
]);

$names = [];
Expand All @@ -130,13 +130,13 @@


$faker = Faker::init([
'vowels' => 'e',
'consonants' => 'bhdlmnkpstvz',
'nextChar' => [
'sameChar' => 0, // percent between 0-100
'sameType' => 0, // percent between 0-100
'double' => 0 // percent between 0-100
],
'vowels' => 'e',
'consonants' => 'bhdlmnkpstvz',
'nextChar' => [
'sameChar' => 0, // percent between 0-100
'sameType' => 0, // percent between 0-100
'double' => 0 // percent between 0-100
],
]);

$sentence = [];
Expand All @@ -147,19 +147,16 @@


$faker = Faker::init([
'vowels' => 'io',
'consonants' => 'bd',
'nextChar' => [
'sameChar' => 0, // percent between 0-100
'sameType' => 0, // percent between 0-100
'double' => 0 // percent between 0-100
],
'vowels' => 'io',
'consonants' => 'bd',
'nextChar' => [
'sameChar' => 0, // percent between 0-100
'sameType' => 0, // percent between 0-100
'double' => 0 // percent between 0-100
],
]);

$words = [];
$words[] = strtoupper($faker->words(14, '.', 2, 4));

print_r($words);



28 changes: 14 additions & 14 deletions examples/readme.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,26 @@
$items[] = $faker->date('2024-01-01', '2024-12-31', 'Y.m.'); // 2024.02.

$faker = Faker::init([
'vowels' => 'e',
'consonants' => 'bhdlmnkpstvz',
'nextChar' => [
'sameChar' => 0, // percent between 0-100
'sameType' => 0, // percent between 0-100
'double' => 0 // percent between 0-100
],
'vowels' => 'e',
'consonants' => 'bhdlmnkpstvz',
'nextChar' => [
'sameChar' => 0, // percent between 0-100
'sameType' => 0, // percent between 0-100
'double' => 0 // percent between 0-100
],
]);

$items[] = $faker->text(20, 3, 10); // Sedev emeze evekem ez denebebekepep


$faker = Faker::init([
'vowels' => 'ioue',
'consonants' => 'nm',
'nextChar' => [
'sameChar' => 70, // percent between 0-100
'sameType' => 70, // percent between 0-100
'double' => 0 // percent between 0-100
],
'vowels' => 'ioue',
'consonants' => 'nm',
'nextChar' => [
'sameChar' => 70, // percent between 0-100
'sameType' => 70, // percent between 0-100
'double' => 0 // percent between 0-100
],
]);

$items[] = $faker->text(20, 3, 10); // Sedev emeze evekem ez denebebekepep
Expand Down

0 comments on commit 7621fc3

Please sign in to comment.