Code Duplication    Length = 13-13 lines in 2 locations

src/OroCRM/Bundle/AccountBundle/Tests/Behat/Context/FeatureContext.php 1 location

@@ 94-106 (lines=13) @@
91
     * @param int|string $count
92
     * @return int
93
     */
94
    protected function getCount($count)
95
    {
96
        switch (trim($count)) {
97
            case '':
98
                return 1;
99
            case 'one':
100
                return 1;
101
            case 'two':
102
                return 2;
103
            default:
104
                return (int) $count;
105
        }
106
    }
107
}
108

src/OroCRM/Bundle/ContactBundle/Tests/Behat/Context/FeatureContext.php 1 location

@@ 253-265 (lines=13) @@
250
     * @param int|string $count
251
     * @return int
252
     */
253
    protected function getCount($count)
254
    {
255
        switch (trim($count)) {
256
            case '':
257
                return 1;
258
            case 'one':
259
                return 1;
260
            case 'two':
261
                return 2;
262
            default:
263
                return (int) $count;
264
        }
265
    }
266
}
267