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

Bootstrap::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
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