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

@@ 139-141 (lines=3) @@
136
        }
137
138
        switch ($size) {
139
            case 'small': // 50px x 50px
140
                return '//www.gravatar.com/avatar/'.md5(strtolower(trim($this->email))).'?s=50&d=mm';
141
                break;
142
            case 'medium': // 200px x 200px
143
                return '//www.gravatar.com/avatar/'.md5(strtolower(trim($this->email))).'?s=200&d=mm';
144
                break;