Completed
Pull Request — master (#23)
by ARCANEDEV
08:07
created

Auth::publishMigrations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

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
eloc 2
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
     * Indicates if Passport migrations will be run.
17
     *
18
     * @var bool
19
     */
20
    public static $runsMigrations = true;
21
22
    /* -----------------------------------------------------------------
23
     |  Main Methods
24
     | -----------------------------------------------------------------
25
     */
26
    /**
27
     * Publish the migrations.
28
     */
29 225
    public static function publishMigrations()
30
    {
31 225
        static::$runsMigrations = false;
32 225
    }
33
}
34