@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function register() |
32 | 32 | { |
33 | - $this->app->singleton('identity_faker', function ($app) { |
|
33 | + $this->app->singleton('identity_faker', function($app) { |
|
34 | 34 | return new IdentityService(); |
35 | 35 | }); |
36 | 36 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | |
27 | -if(!function_exists('identity_verity')) { |
|
27 | +if (!function_exists('identity_verity')) { |
|
28 | 28 | /** |
29 | 29 | * check chinese id number |
30 | 30 | * |
@@ -47,8 +47,8 @@ |
||
47 | 47 | $birth = $this->option('birth'); |
48 | 48 | |
49 | 49 | if (is_null($limit)) { |
50 | - $this->info( app('identity_faker')->province($province) |
|
51 | - ->sex($sex)->birth($birth)->one() ); |
|
50 | + $this->info(app('identity_faker')->province($province) |
|
51 | + ->sex($sex)->birth($birth)->one()); |
|
52 | 52 | } else { |
53 | 53 | $ids = app('identity_faker')->province($province) |
54 | 54 | ->sex($sex)->birth($birth)->limit($limit)->get(); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | $isVerity = VerityChineseIDNumber::isValid($idnumber); |
45 | 45 | |
46 | - if($isVerity) { |
|
46 | + if ($isVerity) { |
|
47 | 47 | $this->info("The {$idnumber} is correct!"); |
48 | 48 | } else { |
49 | 49 | $this->error("The {$idnumber} is incorrectness!"); |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | */ |
238 | 238 | protected function getBirth() |
239 | 239 | { |
240 | - return isset($this->attributes['birth']) ? $this->attributes['birth']: false; |
|
240 | + return isset($this->attributes['birth']) ? $this->attributes['birth'] : false; |
|
241 | 241 | } |
242 | 242 | |
243 | 243 | /** |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | */ |
256 | 256 | public function __call($name, $arguments) |
257 | 257 | { |
258 | - if (!is_null($arguments) && isset($arguments[0]) ) { |
|
258 | + if (!is_null($arguments) && isset($arguments[0])) { |
|
259 | 259 | $this->setAttributes($name, $arguments[0]); |
260 | 260 | } |
261 | 261 | return $this; |