Completed
Push — master ( 73e622...ef4397 )
by archer
02:03
created
src/IdentityServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
src/Console/IdentityGetCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Console/IdentityVerityCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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!");
Please login to merge, or discard this patch.
src/IdentityService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.