UnsplashSearchServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
1
<?php
2
3
namespace shweshi\LaravelUnsplashWrapper\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class UnsplashSearchServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Register the application services.
11
     *
12
     * @return void
13
     */
14
    public function register()
15
    {
16
        $this->app->bind('UnsplashSearch', function () {
17
            return new \shweshi\LaravelUnsplashWrapper\UnsplashSearch();
18
        });
19
    }
20
}
21