Completed
Push — master ( 578ac5...e6e028 )
by Дмитрий
03:35
created

InvalidResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/**
3
 * SocialConnect project
4
 * @author: Patsura Dmitry https://github.com/ovr <[email protected]>
5
 */
6
7
namespace SocialConnect\Auth\Exception;
8
9
class InvalidResponse extends \SocialConnect\Common\Exception
10
{
11
    /**
12
     * @var mixed
13
     */
14
    protected $response;
15
16
    public function __construct($message = 'API bad response', $response)
0 ignored issues
show
Coding Style introduced by
Parameters which have default values should be placed at the end.

If you place a parameter with a default value before a parameter with a default value, the default value of the first parameter will never be used as it will always need to be passed anyway:

// $a must always be passed; it's default value is never used.
function someFunction($a = 5, $b) { }
Loading history...
17
    {
18
        parent::__construct($message);
19
20
        $this->response = $response;
21
    }
22
}
23