Passed
Pull Request — 1.11.x (#5763)
by Angel Fernando Quiroz
13:34
created

AzureCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
/* For license terms, see /license.txt */
4
5
use TheNetworg\OAuth2\Client\Provider\Azure;
6
7
class AzureCommand
8
{
9
    /**
10
     * @var AzureActiveDirectory
11
     */
12
    protected $plugin;
13
    /**
14
     * @var Azure
15
     */
16
    protected $provider;
17
18
    public function __construct()
19
    {
20
        $this->plugin = AzureActiveDirectory::create();
21
        $this->plugin->get_settings(true);
22
        $this->provider = $this->plugin->getProviderForApiGraph();
23
    }
24
}
25