Code Duplication    Length = 13-13 lines in 2 locations

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

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

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

@@ 112-124 (lines=13) @@
109
     * @param int|string $count
110
     * @return int
111
     */
112
    protected function getCount($count)
113
    {
114
        switch (trim($count)) {
115
            case '':
116
                return 1;
117
            case 'one':
118
                return 1;
119
            case 'two':
120
                return 2;
121
            default:
122
                return (int) $count;
123
        }
124
    }
125
}
126