Passed
Pull Request — master (#105)
by Nikita
06:35
created

InvalidCertificateException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 2
b 0
f 0
dl 0
loc 10
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getHeaders() 0 3 1
A getStatusCode() 0 3 1
1
<?php
2
3
namespace Gameap\Exceptions\Repositories;
4
5
use Gameap\Exceptions\Http\HttpException;
6
use Illuminate\Http\Response;
7
8
class InvalidCertificateException extends HttpException
9
{
10
    public function getStatusCode()
11
    {
12
        return Response::HTTP_UNPROCESSABLE_ENTITY;
13
    }
14
15
    public function getHeaders()
16
    {
17
        return [];
18
    }
19
}