HasUserAvatar   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 2
dl 0
loc 9
rs 10
c 2
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A avatar() 0 3 1
1
<?php
2
3
namespace Usamamuneerchaudhary\Commentify\Traits;
4
5
trait HasUserAvatar
6
{
7
8
    /**
9
     * @return string
10
     */
11
    public function avatar(): string
12
    {
13
        return 'https://gravatar.com/avatar/'.md5($this->email).'?s=80&d=mp';
14
    }
15
}
16