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.
Completed
Push — master ( 8bf793...f49fde )
by Shaxzodbek
01:23
created

Merchant   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A checkAuth() 0 4 3
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Shaxzodbek
5
 * Date: 25.05.2018
6
 * Time: 9:57
7
 */
8
9
namespace App\Http\Classes\Oson;
10
11
12
class Merchant
13
{
14
    public $config;
15
    public $acc;
16
    public function __construct($config,$acc)
17
    {
18
        $this->acc = $acc;
19
        $this->config = $config;
20
    }
21
    public function checkAuth(){
22
        if ($this->config['login'] != $this->acc['login'] || $this->config['password'] != $this->acc['password'] )
23
            throw new OsonException(OsonException::ERROR_AUTHORIZATION,[]);
24
    }
25
}