FormRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDbConnection() 0 4 1
A getPrefixTable() 0 4 1
1
<?php namespace Arcanesoft\Auth\Http\Requests;
2
3
use Arcanedev\Support\Http\FormRequest as BaseFormRequest;
4
5
/**
6
 * Class     FormRequest
7
 *
8
 * @package  Arcanesoft\Auth\Http\Requests
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class FormRequest extends BaseFormRequest
12
{
13
    /* -----------------------------------------------------------------
14
     |  Other Methods
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Get the database connection.
20
     *
21
     * @return string
22
     */
23
    protected function getDbConnection()
24
    {
25
        return config('arcanesoft.auth.database.connection', null);
26
    }
27
28
    /**
29
     * Get the table's prefix.
30
     *
31
     * @return string
32
     */
33
    protected function getPrefixTable()
34
    {
35
        return config('arcanesoft.auth.database.prefix', 'auth_');
36
    }
37
}
38