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.

Exception::log()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php declare(strict_types=1);
2
/**
3
 * @license MIT
4
 * @author Samuel Adeshina <[email protected]>
5
 *
6
 * This file is part of the EmmetBlue project, please read the license document
7
 * available in the root level of the project
8
 */
9
namespace EmmetBlue\Core\Exception;
10
11
use EmmetBlue\Core\Logger\ErrorLog;
12
13
/**
14
 * class Exception.
15
 * Instantiates a new instance of Exception
16
 *
17
 * @author Samuel Adeshina <[email protected]>
18
 *
19
 * @since v0.0.1 08/06/2016 14:20
20
 */
21
abstract class Exception extends \Exception
22
{
23
	protected $exception;
24
25
	public function __construct(string $message, int $code = 0, \Exception $previous = null)
26
	{
27
		parent::__construct($message, $code, $previous);
28
		$this->exception = $this;
29
	}
30
31
	public function log(int $databaseUserId, string $errorNumber, string $errorSeverity)
32
	{
33
		ErrorLog::log($databaseUserId, $errorNumber, $errorSeverity, $this->getMessage());
34
	}
35
}