Total Complexity | 5 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Column |
||
9 | { |
||
10 | protected $schema; |
||
11 | |||
12 | /** |
||
13 | * Column constructor. |
||
14 | * @param $schema |
||
15 | */ |
||
16 | public function __construct(Schema $schema) |
||
17 | { |
||
18 | $this->schema = $schema; |
||
19 | } |
||
20 | |||
21 | |||
22 | public function create($line, $column) |
||
29 | } |
||
30 | |||
31 | public function delete($column) |
||
38 | } |
||
39 | |||
40 | public function rename($column) |
||
41 | { |
||
42 | $renameTo = $this->schema->output()->choice('Rename to ? :', $this->schema->schemaUnsyncedColumnsOutput(), 0); |
||
43 | |||
44 | LaravelSchema::table($this->schema->name, function (Blueprint $table) use ($column, $renameTo) { |
||
45 | $table->renameColumn($column, $renameTo); |
||
46 | }); |
||
47 | |||
48 | $this->schema->output()->warn("Column <fg=black;bg=yellow> {$this->schema->name}->{$column} </> was renamed to '{$renameTo}'"); |
||
49 | } |
||
50 | |||
51 | public function ignore($column) |
||
54 | } |
||
55 | } |
||
56 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths