| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function renameView($from, $to) |
||
| 41 | { |
||
| 42 | $view = $this->connection->selectOne( |
||
| 43 | "select * from sqlite_master where type = 'view' and name = ?", |
||
| 44 | [$this->connection->getTablePrefix().$from] |
||
| 45 | ); |
||
| 46 | |||
| 47 | $this->dropView($from); |
||
| 48 | |||
| 49 | $query = Str::replaceFirst( |
||
| 50 | $this->grammar->wrapTable($from), |
||
| 51 | $this->grammar->wrapTable($to), |
||
| 52 | $view->sql |
||
| 53 | ); |
||
| 54 | |||
| 55 | $this->connection->statement($query); |
||
| 56 | } |
||
| 58 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.