Completed
Push — master ( d7f80a...ef11a8 )
by Dmitry
03:55
created

Bootstrap   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 13 2
1
<?php
2
3
namespace Basis\Job\Module;
4
5
use Basis\Job;
6
use Exception;
7
8
class Bootstrap extends Job
9
{
10
    public function run()
11
    {
12
        $this->dispatch('module.defaults');
13
        $this->dispatch('module.register');
14
15
        try {
16
            $this->dispatch('tarantool.migrate');
17
        } catch (Exception $e) {
18
            return [
19
                'migration' => $e->getMessage(),
20
            ];
21
        }
22
    }
23
}
24