Passed
Push — main ( 2d4c96...733e48 )
by James
01:53
created
src/ContactServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     public function boot()
9 9
     {
10 10
         $this->loadRoutesFrom(__DIR__."/routes/web.php");
11
-        $this->loadViewsFrom(__DIR__."/views",'contact');
11
+        $this->loadViewsFrom(__DIR__."/views", 'contact');
12 12
         $this->loadMigrationsFrom(__DIR__.'/database/migrations');
13 13
         $this->mergeConfigFrom(__DIR__.'/config/contact.php', 'contact');
14 14
         $this->publishes([
Please login to merge, or discard this patch.
src/Http/Controllers/ContactController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 class ContactController extends Controller
13 13
 {
14
-    public function index(){
14
+    public function index() {
15 15
         return view('contact::contact');
16 16
     }
17 17
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
             'message' => 'required',
24 24
         ]);
25 25
 
26
-        Mail::to(config('contact.send_email_to'))->queue(new ContactMailable($request->message, $request->name,$request->email));
26
+        Mail::to(config('contact.send_email_to'))->queue(new ContactMailable($request->message, $request->name, $request->email));
27 27
 
28 28
         Contact::create($validatedData);
29 29
 
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
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 use Illuminate\Support\Facades\Route;
3 3
 
4
-Route::group(['middleware'=>'web','namespace' => 'JamesSingizi\Contact\Http\Controllers'], function () {
4
+Route::group(['middleware'=>'web', 'namespace' => 'JamesSingizi\Contact\Http\Controllers'], function() {
5 5
 
6 6
     Route::get('contact', 'ContactController@index')->name('contact');
7 7
 
Please login to merge, or discard this patch.
src/database/migrations/2020_10_13_073426_create_contacts_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('contacts', function (Blueprint $table) {
16
+        Schema::create('contacts', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->string('name');
19 19
             $table->string('email');
Please login to merge, or discard this patch.