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
Pull Request — develop (#322)
by
unknown
01:46
created

UnexpectedResponseException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getResponse() 0 4 1
1
<?php
2
/**
3
 * Part of the Joomla Framework Http Package
4
 *
5
 * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
6
 * @license    GNU General Public License version 2 or later; see LICENSE
7
 */
8
9
namespace Joomla\Http\Exception;
10
11
use Joomla\Http\Response;
12
13
/**
14
 * Exception representing an unexpected response
15
 *
16
 * @since  1.2.0
17
 */
18
class UnexpectedResponseException extends \DomainException
19
{
20
	/**
21
	 * The Response object.
22
	 *
23
	 * @var    Response
24
	 * @since  1.2.0
25
	 */
26
	private $response;
27
28
	/**
29
	 * Constructor
30
	 *
31
	 * @param   Response    $response  The Response object.
32
	 * @param   string      $message   The Exception message to throw.
33
	 * @param   integer     $code      The Exception code.
34
	 * @param   \Exception  $previous  The previous exception used for the exception chaining.
35
	 *
36
	 * @since   1.2.0
37
	 */
38
	public function __construct(Response $response, $message = '', $code = 0, \Exception $previous = null)
39
	{
40
		parent::__construct($message, $code, $previous);
41
42
		$this->response = $response;
43
	}
44
45
	/**
46
	 * Get the Response object.
47
	 *
48
	 * @return  Response
49
	 *
50
	 * @since   1.2.0
51
	 */
52
	public function getResponse()
53
	{
54
		return $this->response;
55
	}
56
}
57