GravelServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
namespace Ballen\Gravel;
4
5
use Illuminate\Support\ServiceProvider;
6
use Ballen\Gravel\Facades\GravatarMapper;
7
8
/**
9
 * GravelMapper
10
 *
11
 * Gravatar Mapper provides a binding/class method aliases for Laravel to provide friendly syntax.
12
 *
13
 * @author Bobby Allen <[email protected]>
14
 * @license http://opensource.org/licenses/MIT
15
 * @link https://github.com/allebb/gravel
16
 * @link http://www.bobbyallen.me
17
 *
18
 */
19
class GravelServiceProvider extends ServiceProvider
20
{
21
22
    /**
23
     * @codeCoverageIgnore
24
     **/
25
    public function register()
26
    {
27
        $this->app->bind(
28
            'gravatar',
29
            function ($app) {
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

29
            function (/** @scrutinizer ignore-unused */ $app) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
30
                return new GravatarMapper();
31
            }
32
        );
33
    }
34
}
35