@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | protected function registerRoutes(): void |
56 | 56 | { |
57 | - Route::group($this->routeConfiguration(), function () { |
|
57 | + Route::group($this->routeConfiguration(), function() { |
|
58 | 58 | $this->loadRoutesFrom(__DIR__.'/Http/routes.php'); |
59 | 59 | }); |
60 | 60 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | protected function registerBindings(): void |
94 | 94 | { |
95 | - $this->app->singleton(SMSClient::class, static function ($app) { |
|
95 | + $this->app->singleton(SMSClient::class, static function($app) { |
|
96 | 96 | try { |
97 | 97 | return $app->make(config('mobile_verifier.sms_client')); |
98 | 98 | } catch (Throwable $e) { |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | } |
101 | 101 | }); |
102 | 102 | |
103 | - $this->app->bind(TokenRepositoryInterface::class, static function ($app) { |
|
103 | + $this->app->bind(TokenRepositoryInterface::class, static function($app) { |
|
104 | 104 | return new DatabaseTokenRepository( |
105 | 105 | $app->make(ConnectionInterface::class), |
106 | 106 | config('mobile_verifier.token_table', 'mobile_verification_tokens'), |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function up(): void |
41 | 41 | { |
42 | - Schema::create($this->tokenTable, static function (Blueprint $table) { |
|
42 | + Schema::create($this->tokenTable, static function(Blueprint $table) { |
|
43 | 43 | $table->increments('id'); |
44 | 44 | $table->string('mobile')->index(); |
45 | 45 | $table->string('token', 10)->index(); |
@@ -49,13 +49,13 @@ discard block |
||
49 | 49 | }); |
50 | 50 | |
51 | 51 | if (!Schema::hasColumn($this->userTable, $this->mobileColumn)) { |
52 | - Schema::table($this->userTable, function (Blueprint $table) { |
|
52 | + Schema::table($this->userTable, function(Blueprint $table) { |
|
53 | 53 | $table->string($this->mobileColumn); |
54 | 54 | }); |
55 | 55 | } |
56 | 56 | |
57 | 57 | if (!Schema::hasColumn($this->userTable, 'mobile_verified_at')) { |
58 | - Schema::table($this->userTable, function (Blueprint $table) { |
|
58 | + Schema::table($this->userTable, function(Blueprint $table) { |
|
59 | 59 | $table->timestamp('mobile_verified_at')->nullable()->after($this->mobileColumn); |
60 | 60 | }); |
61 | 61 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | { |
71 | 71 | Schema::drop($this->tokenTable); |
72 | 72 | |
73 | - Schema::table($this->userTable, static function (Blueprint $table) { |
|
73 | + Schema::table($this->userTable, static function(Blueprint $table) { |
|
74 | 74 | $table->dropColumn('mobile_verified_at'); |
75 | 75 | }); |
76 | 76 | } |