Code Duplication    Length = 4-4 lines in 2 locations

src/EntityRepository.php 2 locations

@@ 221-224 (lines=4) @@
218
    public function __call($method, $arguments)
219
    {
220
        switch (true) {
221
            case (0 === strpos($method, 'findBy')):
222
                $fieldName = strtolower(substr($method, 6));
223
                $methodName = 'findBy';
224
                break;
225
226
            case (0 === strpos($method, 'findOneBy')):
227
                $fieldName = strtolower(substr($method, 9));
@@ 226-229 (lines=4) @@
223
                $methodName = 'findBy';
224
                break;
225
226
            case (0 === strpos($method, 'findOneBy')):
227
                $fieldName = strtolower(substr($method, 9));
228
                $methodName = 'findOneBy';
229
                break;
230
231
            default:
232
                throw new \BadMethodCallException(