Passed
Push — master ( 19d515...2b609a )
by Jeremy
02:16
created
src/database/migrations/2017_12_09_070937_create_two_step_auth_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         $tableCheck = Schema::connection($connection)->hasTable($table);
21 21
 
22 22
         if (!$tableCheck) {
23
-            Schema::connection($connection)->create($table, function (Blueprint $table) {
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.
src/app/Http/Controllers/TwoStepController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 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);
Please login to merge, or discard this patch.
src/routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 |
8 8
 */
9 9
 
10
-Route::group(['prefix' => 'verification', 'as' => 'laravel2step::', 'namespace' => 'jeremykenedy\laravel2step\App\Http\Controllers', 'middleware' => ['web']], function () {
10
+Route::group(['prefix' => 'verification', 'as' => 'laravel2step::', 'namespace' => 'jeremykenedy\laravel2step\App\Http\Controllers', 'middleware' => ['web']], function() {
11 11
     Route::get('/needed', ['uses' => 'TwoStepController@showVerification'])->name('verificationNeeded');
12 12
     Route::post('/verify', ['uses' => 'TwoStepController@verify'])->name('verify');
13 13
     Route::post('/resend', ['uses' => 'TwoStepController@resend'])->name('resend');
Please login to merge, or discard this patch.