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

GravatarController::getGravatar()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 6
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