Completed
Push — master ( 42b4ce...8ef5d4 )
by Carlos
04:00
created

AuthorizeFailedException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the overtrue/socialite.
5
 *
6
 * (c) overtrue <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Overtrue\Socialite;
13
14
class AuthorizeFailedException extends \RuntimeException
15
{
16
    /**
17
     * Response body.
18
     *
19
     * @var array
20
     */
21
    public $body;
22
23
    /**
24
     * Constructor.
25
     *
26
     * @param string $message
27
     * @param string $body
28
     */
29
    public function __construct($message, $body)
30
    {
31
        parent::__construct($message, -1);
32
33
        $this->body = $body;
0 ignored issues
show
Documentation Bug introduced by
It seems like $body of type string is incompatible with the declared type array of property $body.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
34
    }
35
}
36