Completed
Push — master ( b3b6a4...b2f402 )
by Sergi Tur
03:43
created

SqliteCommand::sqlite()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Acacha\Llum\Console;
4
5
use Acacha\Llum\Traits\TouchSqliteFile;
6
7
/**
8
 * Class SqliteCommand.
9
 */
10
class SqliteCommand extends LlumCommand
11
{
12
    use TouchSqliteFile;
13
14
    /**
15
     * Command name.
16
     *
17
     * @var string
18
     */
19
    protected $commandName = 'sqlite';
20
21
    /**
22
     * Command description.
23
     *
24
     * @var string
25
     */
26
    protected $commandDescription = 'Touch sqlite file and enable sqlite on .env';
27
28
    /**
29
     * Method to execute.
30
     *
31
     * @var string
32
     */
33
    protected $method = 'sqlite';
34
35
    /**
36
     * sqlite command.
37
     */
38
    public function sqlite()
39
    {
40
        $this->touchSqliteFile();
41
        $this->configEnv();
0 ignored issues
show
Bug introduced by
The method configEnv() does not seem to exist on object<Acacha\Llum\Console\SqliteCommand>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
42
    }
43
}
44