Code Duplication    Length = 3-3 lines in 4 locations

application/helpers/array_helper.php 4 locations

@@ 141-143 (lines=3) @@
138
        }
139
140
        $numeric = (int) abs($count);
141
        if ($numeric % 100 == 1 || ($numeric % 100 > 20) && ($numeric % 10 == 1)) {
142
            return $words[0];
143
        }
144
        if ($numeric % 100 == 2 || ($numeric % 100 > 20) && ($numeric % 10 == 2)) {
145
            return $words[1];
146
        }
@@ 144-146 (lines=3) @@
141
        if ($numeric % 100 == 1 || ($numeric % 100 > 20) && ($numeric % 10 == 1)) {
142
            return $words[0];
143
        }
144
        if ($numeric % 100 == 2 || ($numeric % 100 > 20) && ($numeric % 10 == 2)) {
145
            return $words[1];
146
        }
147
        if ($numeric % 100 == 3 || ($numeric % 100 > 20) && ($numeric % 10 == 3)) {
148
            return $words[1];
149
        }
@@ 147-149 (lines=3) @@
144
        if ($numeric % 100 == 2 || ($numeric % 100 > 20) && ($numeric % 10 == 2)) {
145
            return $words[1];
146
        }
147
        if ($numeric % 100 == 3 || ($numeric % 100 > 20) && ($numeric % 10 == 3)) {
148
            return $words[1];
149
        }
150
        if ($numeric % 100 == 4 || ($numeric % 100 > 20) && ($numeric % 10 == 4)) {
151
            return $words[1];
152
        }
@@ 150-152 (lines=3) @@
147
        if ($numeric % 100 == 3 || ($numeric % 100 > 20) && ($numeric % 10 == 3)) {
148
            return $words[1];
149
        }
150
        if ($numeric % 100 == 4 || ($numeric % 100 > 20) && ($numeric % 10 == 4)) {
151
            return $words[1];
152
        }
153
        return $words[2];
154
    }
155