Completed
Push — master ( 20dd9c...f5e17e )
by PROSPER
8s
created
app/Http/Controllers/ContactController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@
 block discarded – undo
29 29
         $emailToSendTo = $request->input('email');
30 30
         $body = $request->input('message');
31 31
 
32
-        Mail::send('emails.contact', ['body' => $body], function ($message) use ($name,$emailToSendTo) {
32
+        Mail::send('emails.contact', [ 'body' => $body ], function($message) use ($name, $emailToSendTo) {
33 33
             $message->from('[email protected]', "From: {$name}");
34 34
 
35 35
             $message->to($emailToSendTo)->subject("Message From Laravel Hackathon Starter Contact Form");
36 36
         });
37 37
 
38
-        return redirect()->route('contact')->with('info','Your Message has been dispatched successfully');
38
+        return redirect()->route('contact')->with('info', 'Your Message has been dispatched successfully');
39 39
     }
40 40
 
41 41
 }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function map(Router $router)
39 39
     {
40
-        $router->group(['namespace' => $this->namespace], function ($router) {
40
+        $router->group([ 'namespace' => $this->namespace ], function($router) {
41 41
             require app_path('Http/routes.php');
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function __construct()
39 39
     {
40
-        $this->middleware('guest', ['except' => 'logout']);
40
+        $this->middleware('guest', [ 'except' => 'logout' ]);
41 41
     }
42 42
 
43 43
     /**
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
     protected function create(array $data)
65 65
     {
66 66
         return User::create([
67
-            'fullname' => $data['name'],
68
-            'email' => $data['email'],
69
-            'password' => bcrypt($data['password']),
67
+            'fullname' => $data[ 'name' ],
68
+            'email' => $data[ 'email' ],
69
+            'password' => bcrypt($data[ 'password' ]),
70 70
         ]);
71 71
     }
72 72
 
Please login to merge, or discard this patch.
app/Http/Controllers/OauthController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function execute($request, $provider)
30 30
     {
31
-        if (! $request) {
31
+        if (!$request) {
32 32
             return $this->getAuthorizationFirst($provider);
33 33
         }
34 34
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
         $username = $this->isEmailExists($userData->getNickName()) ? null : $userData->getEmail();
53 53
 
54
-        if (empty($user))  {
54
+        if (empty($user)) {
55 55
             $user = User::create([
56 56
                 'fullname'      => $userData->getName(),
57 57
                 'username'      => $username,
@@ -69,16 +69,16 @@  discard block
 block discarded – undo
69 69
 
70 70
     private function isUsernameExists($username = null)
71 71
     {
72
-        $username = User::whereUsername($username)->first()['username'];
72
+        $username = User::whereUsername($username)->first()[ 'username' ];
73 73
 
74
-        return (! is_null($username)) ? true : false;
74
+        return (!is_null($username)) ? true : false;
75 75
     }
76 76
 
77 77
     private function isEmailExists($email = null)
78 78
     {
79
-        $email = User::whereEmail($email)->first()['email'];
79
+        $email = User::whereEmail($email)->first()[ 'email' ];
80 80
 
81
-        return (! is_null($email)) ? true : false;
81
+        return (!is_null($email)) ? true : false;
82 82
     }
83 83
 
84 84
     /**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             'username' => $user->username,
101 101
         ];
102 102
 
103
-        if (! empty(array_diff($dbData, $socialData))) {
103
+        if (!empty(array_diff($dbData, $socialData))) {
104 104
             $user->avatar = $userData->getAvatar();
105 105
             $user->fullname = $userData->getName();
106 106
             $user->username = $userData->getNickName();
Please login to merge, or discard this patch.
app/Http/Controllers/WebScrapingController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $crawler = $this->client->request('GET', $siteToCrawl);
42 42
 
43 43
         $arr = $crawler->filter('.title a[href^="http"], a[href^="https"]')->each(function($element) {
44
-            $links = [];
44
+            $links = [ ];
45 45
 
46 46
             array_push($links, $element->text());
47 47
 
Please login to merge, or discard this patch.
app/Http/Controllers/ClockworkController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,6 @@
 block discarded – undo
36 36
 
37 37
         Twilio::message($number, $message);
38 38
 
39
-        return redirect()->back()->with('info','Your Message has been sent successfully');
39
+        return redirect()->back()->with('info', 'Your Message has been sent successfully');
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
app/Http/Controllers/LobController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@
 block discarded – undo
38 38
      */
39 39
     private function getRoutes($zipcode)
40 40
     {
41
-        $results = $this->lob->routes()->all(['zip_codes' => $zipcode]);
41
+        $results = $this->lob->routes()->all([ 'zip_codes' => $zipcode ]);
42 42
 
43
-        return $results[0]['routes'];
43
+        return $results[ 0 ][ 'routes' ];
44 44
     }
45 45
 
46 46
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/FacebookController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function getPage()
24 24
     {
25
-        if( Session::get('provider') !== 'facebook') {
25
+        if (Session::get('provider') !== 'facebook') {
26 26
             Auth::logout();
27 27
 
28 28
             Session::flush();
@@ -43,6 +43,6 @@  discard block
 block discarded – undo
43 43
     {
44 44
        $data = Facebook::get('/me?fields=id,name,cover,email,gender,first_name,last_name,locale,timezone,link,picture', Auth::user()->getAccessToken());
45 45
 
46
-      return json_decode($data->getGraphUser(),true);
46
+      return json_decode($data->getGraphUser(), true);
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
app/Http/Controllers/FoursquareController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@
 block discarded – undo
34 34
         $endpoint = 'venues/search';
35 35
 
36 36
         // Prepare parameters
37
-        $params = ['near' => 'Lagos, Nigeria'];
37
+        $params = [ 'near' => 'Lagos, Nigeria' ];
38 38
 
39 39
         // Perform a request to a public resource
40
-        $response = json_decode($this->foursquare->GetPublic($endpoint,$params),true);
40
+        $response = json_decode($this->foursquare->GetPublic($endpoint, $params), true);
41 41
 
42
-        return $response['response']['venues'];
42
+        return $response[ 'response' ][ 'venues' ];
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.