Auth::publishMigrations()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
cc 1
nc 1
nop 0
crap 1
1
<?php namespace Arcanedev\LaravelAuth;
2
3
/**
4
 * Class     Auth
5
 *
6
 * @package  Arcanedev\LaravelAuth
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
class Auth
10
{
11
    /* -----------------------------------------------------------------
12
     |  Properties
13
     | -----------------------------------------------------------------
14
     */
15
16
    /**
17
     * Indicates if migrations will be run.
18
     *
19
     * @var bool
20
     */
21
    public static $runsMigrations = true;
22
23
    /* -----------------------------------------------------------------
24
     |  Main Methods
25
     | -----------------------------------------------------------------
26
     */
27
28
    /**
29
     * Publish the migrations.
30
     */
31 231
    public static function publishMigrations()
32
    {
33 231
        static::$runsMigrations = false;
34 231
    }
35
}
36