Test Failed
Push — master ( 10865e...d038e5 )
by Simon
10:06
created

GravatarController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getGravatar() 0 4 1
1
<?php
2
3
namespace Schanihbg\Gravatar;
4
5
use \Anax\DI\InjectionAwareInterface;
6
use \Anax\DI\InjectionAwareTrait;
7
8
/**
9
 * A controller for the Gravatar.
10
 *
11
 * @SuppressWarnings(PHPMD.ExitExpression)
12
 */
13
class GravatarController implements InjectionAwareInterface
14
{
15
    use InjectionAwareTrait;
16
17
    /**
18
     * Remove post
19
     *
20
     * @return void
21
     */
22
    public function getGravatar($email, $size = 80, $dImageset = 'mm', $rating = 'g', $img = false, $atts = array())
23
    {
24
        return $this->di->get("gravatar")->getGravatar($email, $size, $dImageset, $rating, $img, $atts);
25
    }
26
}
27