| Conditions | 4 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 31 | protected function createTable($table) |
|
| 46 | { |
||
| 47 | 31 | if (isset(static::$tableCreated[$table]) === true) { |
|
| 48 | 31 | return $table; |
|
| 49 | } |
||
| 50 | |||
| 51 | 2 | $schema = $this->getConnection()->getSchemaBuilder(); |
|
| 52 | 2 | if ($schema->hasTable($table) === false) { |
|
| 53 | 2 | $schema->create($table, function (Blueprint $table) { |
|
| 54 | 2 | $this->createSchema($table); |
|
| 55 | 2 | }); |
|
| 56 | 2 | static::$tableCreated[$table] = true; |
|
| 57 | 2 | if (method_exists($this, 'handleTableCreated') === true) { |
|
| 58 | 1 | $this->handleTableCreated($table); |
|
|
|
|||
| 59 | } |
||
| 60 | } |
||
| 61 | |||
| 62 | 2 | return $table; |
|
| 63 | } |
||
| 64 | |||
| 73 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.