NullMigration   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 26
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A migrate() 0 4 1
A validate() 0 4 1
A migratePlugin() 0 4 1
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
}