Completed
Push — master ( d4d2c8...285c17 )
by Jeremy
04:37 queued 02:03
created
src/app/Http/Controllers/TwoStepController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $this->middleware('auth');
30 30
 
31
-        $this->middleware(function ($request, $next) {
31
+        $this->middleware(function($request, $next) {
32 32
             $this->setUser2StepData();
33 33
 
34 34
             return $next($request);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function showVerification()
86 86
     {
87
-        if (! config('laravel2step.laravel2stepEnabled')) {
87
+        if (!config('laravel2step.laravel2stepEnabled')) {
88 88
             abort(404);
89 89
         }
90 90
 
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
112 112
         $now = new Carbon();
113 113
         $sentTimestamp = $twoStepAuth->requestDate;
114 114
 
115
-        if (! $twoStepAuth->authCode) {
115
+        if (!$twoStepAuth->authCode) {
116 116
             $twoStepAuth->authCode = $this->generateCode();
117 117
             $twoStepAuth->save();
118 118
         }
119 119
 
120
-        if (! $sentTimestamp) {
120
+        if (!$sentTimestamp) {
121 121
             $this->sendVerificationCodeNotification($twoStepAuth);
122 122
         } else {
123 123
             $timeBuffer = config('laravel2step.laravel2stepTimeResetBufferSeconds');
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function verify(Request $request)
143 143
     {
144
-        if (! config('laravel2step.laravel2stepEnabled')) {
144
+        if (!config('laravel2step.laravel2stepEnabled')) {
145 145
             abort(404);
146 146
         }
147 147
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     public function resend()
190 190
     {
191
-        if (! config('laravel2step.laravel2stepEnabled')) {
191
+        if (!config('laravel2step.laravel2stepEnabled')) {
192 192
             abort(404);
193 193
         }
194 194
 
Please login to merge, or discard this patch.
src/database/migrations/2017_12_09_070937_create_two_step_auth_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
         $table = $twoStepAuth->getTableName();
20 20
         $tableCheck = Schema::connection($connection)->hasTable($table);
21 21
 
22
-        if (! $tableCheck) {
23
-            Schema::connection($connection)->create($table, function (Blueprint $table) {
22
+        if (!$tableCheck) {
23
+            Schema::connection($connection)->create($table, function(Blueprint $table) {
24 24
                 $table->increments('id');
25 25
                 $table->unsignedBigInteger('userId')->unsigned()->index();
26 26
                 $table->foreign('userId')->references('id')->on('users')->onDelete('cascade');
Please login to merge, or discard this patch.