| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 4 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Lanin\Laravel\SetupWizard\Commands\Steps; |
||
| 70 | 9 | protected function getTable($table = '') |
|
| 71 | { |
||
| 72 | 9 | if (empty($table)) |
|
| 73 | 9 | { |
|
| 74 | 6 | switch (config('auth.driver')) |
|
| 75 | { |
||
| 76 | 6 | case 'eloquent': |
|
| 77 | 3 | $table = $this->getTableByModelClass(config('auth.model')); |
|
| 78 | 3 | break; |
|
| 79 | 3 | case 'database': |
|
| 80 | 3 | default: |
|
| 81 | 3 | $table = config('auth.table'); |
|
| 82 | 3 | break; |
|
| 83 | 6 | } |
|
| 84 | 6 | } |
|
| 85 | |||
| 86 | 9 | return $table; |
|
| 87 | } |
||
| 88 | |||
| 102 | } |