BreadcrumbsServiceProvider::provides()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php namespace Humweb\Breadcrumbs;
2
3
use Illuminate\Support\ServiceProvider;
4
5
class BreadcrumbsServiceProvider extends ServiceProvider {
6
7
	/**
8
	 * Indicates if loading of the provider is deferred.
9
	 *
10
	 * @var bool
11
	 */
12
	protected $defer = false;
13
14
	/**
15
	 * Register the service provider.
16
	 *
17
	 * @return void
18
	 */
19
	public function register()
20
	{
21
		$this->app->singleton('breadcrumbs', function($app)
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed.

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

Loading history...
Coding Style introduced by
Expected 1 space after FUNCTION keyword; 0 found
Loading history...
Bug introduced by
The method singleton() does not seem to exist on object<App>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
22
		{
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
23
			return new Breadcrumbs();
24
		});
25
	}
26
27
28
	/**
29
	 * Get the services provided by the provider.
30
	 *
31
	 * @return array
32
	 */
33
	public function provides()
34
	{
35
		return array('breadcrumbs', 'navigation');
36
	}
37
38
}
39