NullMigration::migrate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace GinoPane\BlogTaxonomy\Classes\MigrationCommand\Migrations;
4
5
/**
6
 * Class NullMigration
7
 *
8
 * @package GinoPane\BlogTaxonomy\Classes\MigrationCommand\Migrations
9
 */
10
class NullMigration extends AbstractMigration
11
{
12
    /**
13
     * @return void
14
     */
15
    public function migrate()
16
    {
17
        $this->command->error('Found no suitable plugins for migration. Use help (-h, --help) to see available options.');
18
    }
19
20
    /**
21
     * No validation required for this null implementation
22
     */
23
    protected function validate()
24
    {
25
        return null;
26
    }
27
28
    /**
29
     * @return null
30
     */
31
    protected function migratePlugin()
32
    {
33
        return null;
34
    }
35
}