Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function handle() |
||
43 | { |
||
44 | $limit = $this->option('limit'); |
||
45 | $province = $this->option('province'); |
||
46 | $sex = $this->option('sex'); |
||
47 | $birth = $this->option('birth'); |
||
48 | |||
49 | if (is_null($limit)) { |
||
|
|||
50 | $this->info( app('identity_faker')->province($province) |
||
51 | ->sex($sex)->birth($birth)->one() ); |
||
52 | } else { |
||
53 | $ids = app('identity_faker')->province($province) |
||
54 | ->sex($sex)->birth($birth)->limit($limit)->get(); |
||
55 | |||
56 | foreach ($ids as $id) { |
||
57 | $this->info($id); |
||
58 | } |
||
62 |