Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | $displaytypes = [ |
||
17 | 'create_detail' => 'Uccello\Core\Fields\Displaytype\CreateDetail', |
||
18 | 'list_only' => 'Uccello\Core\Fields\Displaytype\ListOnly', |
||
19 | ]; |
||
20 | |||
21 | foreach ($displaytypes as $name => $class) { |
||
22 | $displaytype = new Displaytype(); |
||
23 | $displaytype->name = $name; |
||
|
|||
24 | $displaytype->class = $class; |
||
25 | $displaytype->save(); |
||
26 | } |
||
27 | |||
28 | Artisan::call('cache:clear'); |
||
29 | } |
||
44 | } |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.