Code Duplication    Length = 4-4 lines in 2 locations

src/EntityRepository.php 2 locations

@@ 186-189 (lines=4) @@
183
    public function __call($method, $arguments)
184
    {
185
        switch (true) {
186
            case (0 === strpos($method, 'findBy')):
187
                $fieldName = strtolower(substr($method, 6));
188
                $methodName = 'findBy';
189
                break;
190
191
            case (0 === strpos($method, 'findOneBy')):
192
                $fieldName = strtolower(substr($method, 9));
@@ 191-194 (lines=4) @@
188
                $methodName = 'findBy';
189
                break;
190
191
            case (0 === strpos($method, 'findOneBy')):
192
                $fieldName = strtolower(substr($method, 9));
193
                $methodName = 'findOneBy';
194
                break;
195
196
            default:
197
                throw new \BadMethodCallException(