| Conditions | 4 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | View Code Duplication | public function table(string $tablename = null):CreateTableInterface{ |
|
| 36 | $class = $this->dialect.'\\CreateTable'; |
||
| 37 | /** @var \chillerlan\Database\Query\CreateTableInterface $createTable */ |
||
| 38 | $createTable = new $class($this->DBDriver, $this->dialect); |
||
| 39 | |||
| 40 | return $createTable->name($tablename); |
||
| 41 | } |
||
| 42 | |||
| 43 | public function index():CreateInterface{ |
||
| 44 | // TODO: Implement index() method. |
||
| 45 | } |
||
| 46 | |||
| 47 | public function view():CreateInterface{ |
||
| 48 | // TODO: Implement view() method. |
||
| 55 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.