Completed
Pull Request — master (#21)
by ARCANEDEV
05:07
created

FormRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 37
ccs 0
cts 8
cp 0
rs 10
c 2
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\Bases\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
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
    /**
18
     * The message format.
19
     *
20
     * @var string
21
     */
22
    protected $errorsFormat = '<i class="fa fa-fw fa-exclamation-circle"></i> :message';
23
24
    /* -----------------------------------------------------------------
25
     |  Other Methods
26
     | -----------------------------------------------------------------
27
     */
28
    /**
29
     * Get the database connection.
30
     *
31
     * @return string
32
     */
33
    protected function getDbConnection()
34
    {
35
        return config('arcanesoft.auth.database.connection', null);
36
    }
37
38
    /**
39
     * Get the table's prefix.
40
     *
41
     * @return string
42
     */
43
    protected function getPrefixTable()
44
    {
45
        return config('arcanesoft.auth.database.prefix', 'auth_');
46
    }
47
}
48