Code Duplication    Length = 6-8 lines in 5 locations

locales/au_wa.php 1 location

@@ 42-48 (lines=7) @@
39
    '2007-10-1'  => 'Queens Birthday'
40
);
41
42
for ($y = 2001; $y < 2020; ++$y) {
43
    $this->holidays["$y-1-1"]   = 'New Years Day';
44
    $this->holidays["$y-1-26"]  = 'Australia Day';
45
    $this->holidays["$y-4-25"]  = 'Anzac Day';
46
    $this->holidays["$y-12-25"] = 'Christmas Day';
47
    $this->holidays["$y-12-26"] = 'Boxing Day';
48
}
49

locales/big5_taiwan.php 1 location

@@ 72-77 (lines=6) @@
69
    '2010-9-22' => '中秋節'
70
);
71
72
for ($y = 2001; $y < 2020; ++$y) {
73
    $this->holidays["$y-1-1"]   = '元旦';
74
    $this->holidays["$y-2-28"]  = '和平紀念日';
75
    $this->holidays["$y-4-5"]   = '清明節';
76
    $this->holidays["$y-10-10"] = '國慶日';
77
}
78

locales/newzealand.php 1 location

@@ 81-87 (lines=7) @@
78
    '2010-12-28' => 'Public Holiday'
79
);
80
81
for ($y = 2001; $y < 2020; ++$y) {
82
    $this->holidays["$y-1-1"]   = 'New Years Day';
83
    $this->holidays["$y-2-6"]   = 'Waitangi Day';
84
    $this->holidays["$y-4-25"]  = 'Anzac Day';
85
    $this->holidays["$y-12-25"] = 'Christmas Day';
86
    $this->holidays["$y-12-26"] = 'Boxing Day';
87
}
88

locales/russia.php 1 location

@@ 21-28 (lines=8) @@
18
 * @author       GIJ=CHECKMATE (PEAK Corp. http://www.peak.ne.jp/)
19
 */
20
21
for ($y = 2001; $y < 2020; ++$y) {
22
    $this->holidays["$y-1-1"]  = 'Новый Год';
23
    $this->holidays["$y-1-7"]  = 'Рождество';
24
    $this->holidays["$y-2-23"] = 'День Защитника Отечества';
25
    $this->holidays["$y-3-8"]  = 'Международный Женский День';
26
    $this->holidays["$y-5-9"]  = 'День Победы';
27
    $this->holidays["$y-6-12"] = 'День России';
28
}
29

locales/utf8_taiwan.php 1 location

@@ 74-79 (lines=6) @@
71
);
72
73
// 台灣國曆假期設定2001-2020 by Chia (http://www.cyai.net/)
74
for ($y = 2001; $y < 2020; ++$y) {
75
    $this->holidays["$y-1-1"]   = '元旦';
76
    $this->holidays["$y-2-28"]  = '和平紀念日';
77
    $this->holidays["$y-4-5"]   = '清明節';
78
    $this->holidays["$y-10-10"] = '國慶日';
79
}
80