Skip to content

Commit 7d35aa8

Browse files
committed
Fix: The closing brace for the class change to the next line of body
1 parent 1ee3a51 commit 7d35aa8

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

src/Faker/Provider/zh_TW/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Faker\Provider\zh_TW;
44

5-
class Address extends \Faker\Provider\Address
5+
class Address extends \Faker\Provider\Address
66
{
77

88
protected static $cites = array(

src/Faker/Provider/zh_TW/Company.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Faker\Provider\zh_TW;
44

5-
class Company extends \Faker\Provider\Company
5+
class Company extends \Faker\Provider\Company
66
{
77
protected static $formats = array(
88
'{{companyPrefix}}{{companySuffix}}'
@@ -12,7 +12,8 @@ class Company extends \Faker\Provider\Company
1212
'松川精密', '聯華', '財進', '亞力克', '龍漢', '亞克', '久代', '群光', '偉福', '汎宸', '普泰', '連結精密', '大詳', '信強', '欣融', '勤正', '南都', '上正', '今盛', '元成', '新苗', '長源', '和碩', '宏全', '全景', '奧立', '上奇'
1313
);
1414

15-
protected static $companySuffix = array('', '科技', '電子', '網路', '設計', '傳播', '資訊', '軟體', '電器', '塑膠工業', '自動控制','國際飲食','實業','機械', '工程', '育樂事業', '自動控制', '汽車');
15+
protected static $companySuffix = array('', '科技', '電子', '網路', '設計', '傳播', '資訊', '軟體', '電器', '塑膠工業', '自動控制','國際飲食','實業','機械', '工程', '育樂事業', '自動控制', '汽車'
16+
);
1617

1718
public static function companyPrefix()
1819
{

src/Faker/Provider/zh_TW/Person.php

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,33 @@
22

33
namespace Faker\Provider\zh_TW;
44

5-
class Person extends \Faker\Provider\Person
5+
class Person extends \Faker\Provider\Person
66
{
7+
78
protected static $maleNameFormats = array(
89
'{{lastName}}{{firstNameMale}}',
9-
// '{{firstNameMale}}{{$lastName1Male}}{{$lastName2Male}}',
1010
);
1111

1212
protected static $femaleNameFormats = array(
1313
'{{lastName}}{{firstNameFemale}}',
1414
);
1515

16-
16+
/**
17+
* Override firstNameMail()
18+
**/
1719
public static function firstNameMale()
1820
{
1921
return static::randomElement(static::$firstName1Male) . static::randomElement(static::$firstName2Male);
2022
}
2123

24+
/**
25+
* Override firstNameFemale()
26+
**/
2227
public static function firstNameFemale()
2328
{
24-
// return static::randomElement(static::$firstNameFemale);
2529
return static::randomElement(static::$firstName1Female) . static::randomElement(static::$firstName2Female);
2630
}
2731

28-
29-
3032
protected static $lastName = array(
3133
//百家姓
3234
'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','',
@@ -50,6 +52,7 @@ public static function firstNameFemale()
5052
'', '', '', '', '', '', '', '', '',
5153
'', '', '', '', ''
5254
);
55+
5356
protected static $firstName2Male = array(
5457
'', '', '', '', '', '', '', '', '', '', '', '',
5558
'', '', '', '', '', '', '', '',
@@ -106,16 +109,14 @@ public static function firstNameFemale()
106109
'', '', '', '', '', '', '', '', '', '',
107110
'', '', '', '', '',
108111
'' , '', '', ''
109-
110112
);
113+
111114
protected static $firstName2Female = array(
112115
'','','','','','','','','','','','',
113116
'','','','','','','','','','','','',
114117
'','','','','','','','','','','','',
115118
'','','','','','','','','','','','',
116119
'','','','','','','','','','','','',
117120
'','','','','','',''
118-
119121
);
120-
121-
}
122+
}

src/Faker/Provider/zh_TW/PhoneNumber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class PhoneNumber extends \Faker\Provider\PhoneNumber
66
{
77
protected static $operators = array(
8-
950, 951, 952, 953, 954, 955, 956, 957, 958,
8+
950, 951, 952, 953, 954, 955, 956, 957, 958,931,932,933,934,935,981,982,983,984,985,911,912,913,914,915,916,917
99
);
1010

1111
protected static $formats = array('###-###');

0 commit comments

Comments
 (0)