Code Duplication    Length = 3-3 lines in 2 locations

public/old/includes/functions.users.php 1 location

@@ 521-523 (lines=3) @@
518
        }
519
    } else {
520
        switch ($size) {
521
            case 'small': // 50px x 50px
522
                return '//www.gravatar.com/avatar/'.md5(strtolower(trim($user->email))).'?s=50&d=mm';
523
                break;
524
            case 'large': // 200px x 200px
525
                return '//www.gravatar.com/avatar/'.md5(strtolower(trim($user->email))).'?s=200&d=mm';
526
                break;

generated-classes/TechWilk/Rota/User.php 1 location

@@ 175-177 (lines=3) @@
172
        }
173
174
        switch ($size) {
175
            case 'small': // 50px x 50px
176
                return '//www.gravatar.com/avatar/'.md5(strtolower(trim($this->email))).'?s=50&d=mm';
177
                break;
178
            case 'medium': // 200px x 200px
179
                return '//www.gravatar.com/avatar/'.md5(strtolower(trim($this->email))).'?s=200&d=mm';
180
                break;