Test Failed
Push — master ( 06feab...820423 )
by Ashish
02:16
created

TwoFactorAuthenticationExceptions   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A columnNotFound() 0 5 1
1
<?php
2
3
namespace Thecodework\TwoFactorAuthentication\Exceptions;
4
5
class TwoFactorAuthenticationExceptions extends \Exception {
6
7
    /**
8
     * Column Not Found
9
     *
10
     */
11
    public static function columnNotFound()
12
    {
13
        $table = config('2fa-config.table');
14
        return new static("Could not locate required column `two_factor_secret_key` or `is_two_factor_enabled` in `$table` table. Make sure the migrations ran properly.");
15
    }
16
}