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.

ZendLdapServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 7 1
A boot() 0 4 1
1
<?php
2
namespace SOG\Dashboard;
3
4
use Silex\Application;
5
use Silex\ServiceProviderInterface;
6
7
/**
8
 * Setup the LDAP resource using Zend\Ldap and share it with the application.
9
 *
10
 * Class ZendLdapServiceProvider
11
 * @package SOG\Dashboard
12
 */
13
class ZendLdapServiceProvider implements ServiceProviderInterface
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function register(Application $app)
19
    {
20
        // setup the ldap adapter which extends the LDAP abstraction layer
21
        $app['ldap'] = $app->share(function ($app) {
22
            return new LdapAdapter($app['ldap.options']);
23
        });
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function boot(Application $app)
30
    {
31
        // nothing to do here
32
    }
33
}