GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

PostmarkServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 3
Bugs 1 Features 1
Metric Value
wmc 2
c 3
b 1
f 1
lcom 1
cbo 3
dl 0
loc 34
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 1
A provides() 0 4 1
1
<?php namespace Camelcased\Postmark;
2
3
use Camelcased\Postmark\Inbound\Parse\Parser;
4
use Camelcased\Postmark\Inbound\Email;
5
use Illuminate\Support\ServiceProvider;
6
7
class PostmarkServiceProvider extends ServiceProvider {
8
9
	/**
10
	 * Indicates if loading of the provider is deferred.
11
	 *
12
	 * @var bool
13
	 */
14
	protected $defer = false;
15
16
	/**
17
	 * Register the service provider.
18
	 *
19
	 * @return void
20
	 */
21
	public function register()
22
	{
23
		$this->app['postmarkEmail'] = $this->app->share(function($app)
0 ignored issues
show
Bug introduced by
The method share() does not seem to exist on object<Illuminate\Contra...Foundation\Application>.

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...
24
		{
25
			$parser = new Parser($app["Input"]->get()); // Create an instance of the parser with the given input
26
			return new Email($parser->parse()); // Returns an instance of the given email as an Email object
27
		});
28
	}
29
30
	/**
31
	 * Get the services provided by the provider.
32
	 *
33
	 * @return array
34
	 */
35
	public function provides()
36
	{
37
		return [];
38
	}
39
40
}
41