| Total Complexity | 3 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class SQLiteBuilder extends Base |
||
| 9 | { |
||
| 10 | use ManagesViews { |
||
| 11 | createView as createViewParent; |
||
| 12 | } |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Create a new view on the schema. |
||
| 16 | * |
||
| 17 | * @param string $name |
||
| 18 | * @param \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|string $query |
||
| 19 | * @param array|null $columns |
||
| 20 | * @param bool $orReplace |
||
| 21 | * @param bool $materialized |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function createView($name, $query, ?array $columns = null, $orReplace = false, bool $materialized = false) |
||
|
|
|||
| 25 | { |
||
| 26 | if ($orReplace) { |
||
| 27 | $this->dropViewIfExists($name); |
||
| 28 | } |
||
| 29 | |||
| 30 | $this->createViewParent($name, $query, $columns); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Rename a view on the schema. |
||
| 35 | * |
||
| 36 | * @param string $from |
||
| 37 | * @param string $to |
||
| 38 | * @return void |
||
| 39 | */ |
||
| 40 | public function renameView($from, $to) |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.