Passed
Pull Request — master (#39)
by Cesar
05:03
created
migrations/2021_03_06_211907_add_access_code_to_magic_links_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::table('magic_links', function (Blueprint $table) {
16
+        Schema::table('magic_links', function(Blueprint $table) {
17 17
             $table->string('access_code')->nullable();
18 18
         });
19 19
     }
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     public function down()
27 27
     {
28 28
         if (Schema::hasColumn('magic_links', 'access_code')) {
29
-            Schema::table('magic_links', function (Blueprint $table) {
29
+            Schema::table('magic_links', function(Blueprint $table) {
30 30
                 $table->dropColumn('access_code');
31 31
             });
32 32
         }
Please login to merge, or discard this patch.
src/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
             'web',
19 19
         ]),
20 20
     ],
21
-    function () {
21
+    function() {
22 22
         Route::get(
23 23
             config('magiclink.url.validate_path', 'magiclink').'/{token}',
24 24
             'MagicLink\Controllers\MagicLinkController@access'
Please login to merge, or discard this patch.
src/Middlewares/AskForAccessCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     {
22 22
         $magicLink = MagicLink::getValidMagicLinkByToken($request->route('token'));
23 23
 
24
-        if (! $magicLink || is_null($magicLink->access_code ?? null)) {
24
+        if ( ! $magicLink || is_null($magicLink->access_code ?? null)) {
25 25
             return $next($request);
26 26
         }
27 27
 
Please login to merge, or discard this patch.