| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function run() |
||
| 22 | { |
||
| 23 | $continents = [ |
||
| 24 | ['id' => '1', 'name' => 'Africa', 'code' => 'AF'], |
||
| 25 | ['id' => '3', 'name' => 'North America', 'code' => 'NA'], |
||
| 26 | ['id' => '4', 'name' => 'Oceania', 'code' => 'OC'], |
||
| 27 | ['id' => '5', 'name' => 'Asia', 'code' => 'AS'], |
||
| 28 | ['id' => '6', 'name' => 'Europe', 'code' => 'EU'], |
||
| 29 | ['id' => '7', 'name' => 'South America', 'code' => 'SA'], |
||
| 30 | ]; |
||
| 31 | |||
| 32 | foreach ($continents as $key => $continent) { |
||
| 33 | DB::table('continents')->insert([ |
||
| 34 | 'id' => $continent['id'], |
||
| 35 | 'name' => $continent['name'], |
||
| 36 | 'code' => $continent['code'], |
||
| 37 | ]); |
||
| 41 |