GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Setup Failed
Push — master ( e165f3...e86535 )
by Albert
03:50
created

MigrationsGeneratorCommand::fire()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 8
nc 2
nop 0
1
<?php 
2
namespace Elimuswift\DbExporter\Commands;
3
4
use Config;
5
use Elimuswift\DbExporter\DbExporter;
6
use Elimuswift\DbExporter\DbExportHandler;
7
use Symfony\Component\Console\Input\InputOption;
8
use Symfony\Component\Console\Input\InputArgument;
9
10
class MigrationsGeneratorCommand extends GeneratorCommand
11
{
12
    protected $name = 'db-exporter:migrations';
13
14
    protected $description = 'Export your database to migrations.';
15
    /**
16
     * @var \Elimuswift\DbExporter\DbExportHandler
17
     */
18
    protected $handler;
19
20
    public function __construct(DbExportHandler $handler)
21
    {
22
        parent::__construct();
23
24
        $this->handler = $handler;
25
    }
26
27
    public function fire()
28
    {
29
        $database = $this->argument('database');
30
31
        // Display some helpfull info
32
        if (empty($database)) {
33
            $this->comment("Preparing the migrations for database: {$this->getDatabaseName()}");
34
        } else {
35
            $this->comment("Preparing the migrations for database {$database}");
36
        }
37
38
        $this->fireAction('migrate', $database);
39
40
        // Symfony style block messages
41
        $this->blockMessage('Success!', 'Database migrations generated in: ' . $this->handler->getMigrationsFilePath());
42
    }
43
44
    
45
}