Completed
Push — master ( c005c8...d7f80a )
by Dmitry
03:51
created

Bootstrap   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 8
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Basis\Job\Module;
4
5
use Basis\Runner;
6
use Exception;
7
8
class Bootstrap
9
{
10
    public function run(Runner $runner)
11
    {
12
        $runner->dispatch('module.defaults');
13
        $runner->dispatch('module.register');
14
15
        try {
16
            $runner->dispatch('tarantool.migrate');
17
18
        } catch (Exception $e) {
19
            return [
20
                'migration' => $e->getMessage();
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected ';', expecting ']'
Loading history...
21
            ];
22
        }
23
    }
24
}
25