Completed
Push — master ( 891b60...56c6b1 )
by Goodness
02:19
created
src/controller/LaravelSlackController.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *  Shows the landing page of
32 32
      *  Laravel Slack Package
33 33
      *
34
-    */
34
+     */
35 35
     public function slackPage()
36 36
     {
37 37
         return view('slack.slack');
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      *  Get Email, Validate and Send
42 42
      *  Invite to User
43 43
      *
44
-    */
44
+     */
45 45
     public function sendSlackInvite(Request $request)
46 46
     {
47 47
         $validator= Validator::make($request->all(),[
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,19 +44,19 @@
 block discarded – undo
44 44
     */
45 45
     public function sendSlackInvite(Request $request)
46 46
     {
47
-        $validator= Validator::make($request->all(),[
47
+        $validator = Validator::make($request->all(), [
48 48
             'email'=>'required|email'
49 49
             ]);
50 50
 
51 51
         if ($validator->fails())
52 52
         {
53
-            return redirect()->back()->with('error','Sorry! Please enter a valid mail or you have used this mail here');
54
-        }else{
53
+            return redirect()->back()->with('error', 'Sorry! Please enter a valid mail or you have used this mail here');
54
+        }else {
55 55
             $email = $request->input('email');
56 56
             $this->client->request('POST',
57 57
                 config('LaravelSlack.slack_team_url').'/api/users.admin.invite?t='.time().'&email='.$email.'&token='.config('LaravelSlack.slack_api_token').'&set_active=true&_attempts=1'
58 58
                 );
59
-            return redirect()->back()->with('alert','Congratulation! Your Invite has been sent successfully to your mail');
59
+            return redirect()->back()->with('alert', 'Congratulation! Your Invite has been sent successfully to your mail');
60 60
         }
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         if ($validator->fails())
52 52
         {
53 53
             return redirect()->back()->with('error','Sorry! Please enter a valid mail or you have used this mail here');
54
-        }else{
54
+        } else{
55 55
             $email = $request->input('email');
56 56
             $this->client->request('POST',
57 57
                 config('LaravelSlack.slack_team_url').'/api/users.admin.invite?t='.time().'&email='.$email.'&token='.config('LaravelSlack.slack_api_token').'&set_active=true&_attempts=1'
Please login to merge, or discard this patch.
src/LaravelSlackServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@
 block discarded – undo
47 47
     public function register()
48 48
     {
49 49
 
50
-        $this->loadViewsFrom(__DIR__.'/views/slack','slack');
51
-        $this->mergeConfigFrom( __DIR__.'/config/LaravelSlack.php', 'LaravelSlack');
52
-        $this->app->singleton(LaravelSlack::class, function ($app) {
50
+        $this->loadViewsFrom(__DIR__.'/views/slack', 'slack');
51
+        $this->mergeConfigFrom(__DIR__.'/config/LaravelSlack.php', 'LaravelSlack');
52
+        $this->app->singleton(LaravelSlack::class, function($app) {
53 53
             return new LaravelSlack(config('laravelslack'));
54 54
         });
55 55
     }
Please login to merge, or discard this patch.
src/LaravelSlackController.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *  Shows the landing page of
32 32
      *  Laravel Slack Package
33 33
      *
34
-    */
34
+     */
35 35
     public function slackPage()
36 36
     {
37 37
         return view('slack.slack');
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      *  Get Email, Validate and Send
42 42
      *  Invite to User
43 43
      *
44
-    */
44
+     */
45 45
     public function sendSlackInvite(Request $request)
46 46
     {
47 47
         $validator= Validator::make($request->all(),[
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,19 +44,19 @@
 block discarded – undo
44 44
     */
45 45
     public function sendSlackInvite(Request $request)
46 46
     {
47
-        $validator= Validator::make($request->all(),[
47
+        $validator = Validator::make($request->all(), [
48 48
             'email'=>'required|email'
49 49
             ]);
50 50
 
51 51
         if ($validator->fails())
52 52
         {
53
-            return redirect()->back()->with('error','Sorry! Please enter a valid mail or you have used this mail here');
54
-        }else{
53
+            return redirect()->back()->with('error', 'Sorry! Please enter a valid mail or you have used this mail here');
54
+        }else {
55 55
             $email = $request->input('email');
56 56
             $this->client->request('POST',
57 57
                 config('LaravelSlack.slack_team_url').'/api/users.admin.invite?t='.time().'&email='.$email.'&token='.config('LaravelSlack.slack_api_token').'&set_active=true&_attempts=1'
58 58
                 );
59
-            return redirect()->back()->with('alert','Congratulation! Your Invite has been sent successfully to your mail');
59
+            return redirect()->back()->with('alert', 'Congratulation! Your Invite has been sent successfully to your mail');
60 60
         }
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         if ($validator->fails())
52 52
         {
53 53
             return redirect()->back()->with('error','Sorry! Please enter a valid mail or you have used this mail here');
54
-        }else{
54
+        } else{
55 55
             $email = $request->input('email');
56 56
             $this->client->request('POST',
57 57
                 config('LaravelSlack.slack_team_url').'/api/users.admin.invite?t='.time().'&email='.$email.'&token='.config('LaravelSlack.slack_api_token').'&set_active=true&_attempts=1'
Please login to merge, or discard this patch.