Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 3 | public function handle() |
|
17 | { |
||
18 | 3 | $mandateId = $this->argument('id'); |
|
19 | |||
20 | try { |
||
21 | 3 | $model = ImportMandateAction::make($mandateId)->execute(); |
|
22 | 1 | } catch (\Exception $e) { |
|
23 | 1 | $this->error("Mandate not imported. [{$e->getMessage()}]"); |
|
24 | |||
25 | 1 | return static::FAILURE; |
|
26 | } |
||
27 | |||
28 | 2 | $this->info("Imported mandate [{$model->getKey()}] for customer [{$model->customer_id}]."); |
|
|
|||
29 | |||
30 | 2 | return static::SUCCESS; |
|
31 | } |
||
33 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.