Passed
Push — master ( 0d2952...489bc7 )
by Raza
10:44
created
src/Providers/AuthyServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */
61 61
     private function registerAuthy()
62 62
     {
63
-        $this->app->singleton('authy', function () {
63
+        $this->app->singleton('authy', function() {
64 64
             return new Authy();
65 65
         });
66 66
     }
Please login to merge, or discard this patch.
migrations/migration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::table('users', function (Blueprint $table) {
15
+        Schema::table('users', function(Blueprint $table) {
16 16
             // Two-Factor Authentication Columns...
17 17
             $table->string('phone_country_code')->nullable();
18 18
             $table->string('phone_number')->nullable();
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function down()
29 29
     {
30
-        Schema::table('users', function (Blueprint $table) {
30
+        Schema::table('users', function(Blueprint $table) {
31 31
             $table->dropColumn([
32 32
                 'phone_country_code',
33 33
                 'phone_number',
Please login to merge, or discard this patch.
src/Services/Authy.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
     {
172 172
         $sendToken = collect(
173 173
             $user->getTwoFactorAuthProviderOptions()
174
-        )->pluck(['sms', 'phone', 'email'])->filter(function ($value) {
174
+        )->pluck(['sms', 'phone', 'email'])->filter(function($value) {
175 175
             return !empty($value) ? $value : null;
176 176
         })->isEmpty();
177 177
 
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      *
89 89
      * @param \Srmklive\Authy\Contracts\Auth\TwoFactor\Authenticatable $user
90 90
      *
91
-     * @return void
91
+     * @return boolean
92 92
      */
93 93
     public function sendSmsToken(TwoFactorAuthenticatable $user)
94 94
     {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      *
112 112
      * @param \Srmklive\Authy\Contracts\Auth\TwoFactor\Authenticatable $user
113 113
      *
114
-     * @return void
114
+     * @return boolean
115 115
      */
116 116
     public function sendPhoneCallToken(TwoFactorAuthenticatable $user)
117 117
     {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      *
160 160
      * @param \Srmklive\Authy\Contracts\Auth\TwoFactor\Authenticatable $user
161 161
      *
162
-     * @return bool
162
+     * @return boolean|null
163 163
      */
164 164
     public function delete(TwoFactorAuthenticatable $user)
165 165
     {
Please login to merge, or discard this patch.