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

columnNotFound()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
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
}