Skip to content

Commit 46feaf6

Browse files
committed
chore: run make cs and test
1 parent 6de211b commit 46feaf6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/Provider/ar_EG/PhoneNumber.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,17 @@
33
namespace Faker\Provider\ar_EG;
44

55
class PhoneNumber extends \Faker\Provider\PhoneNumber
6-
# References:
7-
# https://en.wikipedia.org/wiki/Telephone_numbers_in_Egypt
8-
# https://krispcall.com/blog/egypt-phone-number-format/
6+
// References:
7+
// https://en.wikipedia.org/wiki/Telephone_numbers_in_Egypt
8+
// https://krispcall.com/blog/egypt-phone-number-format/
99
{
10-
1110
protected static $formats = [
1211
'0{{areaCode}}#######',
1312
'+20{{areaCode}}#######',
1413
'0{{areaCode}} ### ####',
1514
'+20 {{areaCode}} ### ####',
1615
];
1716

18-
1917
protected static $mobileFormats = [
2018
'010########',
2119
'011########',
@@ -67,6 +65,7 @@ public static function areaCode()
6765
{
6866
return static::numerify(static::randomElement(static::$areaCodes));
6967
}
68+
7069
public static function mobileNumber()
7170
{
7271
return static::numerify(static::randomElement(static::$mobileFormats));

test/Provider/ar_EG/PhoneNumberTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Faker\Provider\ar_EG\PhoneNumber;
88
use Faker\Test\TestCase;
99

10-
1110
final class PhoneNumberTest extends TestCase
1211
{
1312
public function testPhoneNumber(): void
@@ -20,7 +19,6 @@ public function testMobileNumber(): void
2019
self::assertMatchesRegularExpression('/^(\+20\s?)?(010|011|012|015)\s?\d{3,4}\s?\d{4}$|^(\+20\s?)?(010|011|012|015)\d{8}$/', $this->faker->mobileNumber());
2120
}
2221

23-
2422
protected function getProviders(): iterable
2523
{
2624
yield new PhoneNumber($this->faker);

0 commit comments

Comments
 (0)