Completed
Pull Request — master (#51)
by
unknown
14s
created
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/SteamController.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
 
10 10
 class SteamController extends Controller
11 11
 {
12
-     /**
13
-     * Return all data to the Steam API dashboard
14
-     * @return mixed
15
-     */
12
+        /**
13
+         * Return all data to the Steam API dashboard
14
+         * @return mixed
15
+         */
16 16
     public function getPage()
17 17
     {
18 18
         return view('api.steam');
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/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/SlackController.php 2 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
         $list = (array)SlackUser::lists();
32 32
 
33 33
         if (is_null($count)) {
34
-           return $list['members'];
34
+            return $list['members'];
35 35
         }
36 36
 
37 37
         return array_slice($list['members'], 0, $count);
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function sendMessageToTeam(Request $request)
46 46
     {
47
-         $this->validate($request, [
47
+            $this->validate($request, [
48 48
             'message'  => 'required'
49 49
         ]);
50 50
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
      */
27 27
     private function getAllUsersOnYourTeam($count = null)
28 28
     {
29
-        $list = (array)SlackUser::lists();
29
+        $list = (array) SlackUser::lists();
30 30
 
31 31
         if (is_null($count)) {
32
-           return $list['members'];
32
+           return $list[ 'members' ];
33 33
         }
34 34
 
35
-        return array_slice($list['members'], 0, $count);
35
+        return array_slice($list[ 'members' ], 0, $count);
36 36
     }
37 37
 
38 38
     /**
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             'message'  => 'required'
47 47
         ]);
48 48
 
49
-        $message = $request->input('message') . ' #FromLaravelHackathonStarter :smile:';
49
+        $message = $request->input('message').' #FromLaravelHackathonStarter :smile:';
50 50
 
51 51
         SlackChat::message('#general', $message);
52 52
 
Please login to merge, or discard this patch.
app/Http/Controllers/FacebookController.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
      */
42 42
     private function getData()
43 43
     {
44
-       $data = Facebook::get('/me?fields=id,name,cover,email,gender,first_name,last_name,locale,timezone,link,picture', Auth::user()->getAccessToken());
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function getPage()
19 19
     {
20
-        if(Session::get('provider') !== 'facebook') {
20
+        if (Session::get('provider') !== 'facebook') {
21 21
             Auth::logout();
22 22
 
23 23
             Session::flush();
@@ -38,6 +38,6 @@  discard block
 block discarded – undo
38 38
     {
39 39
        $data = Facebook::get('/me?fields=id,name,cover,email,gender,first_name,last_name,locale,timezone,link,picture', Auth::user()->getAccessToken());
40 40
 
41
-      return json_decode($data->getGraphUser(),true);
41
+      return json_decode($data->getGraphUser(), true);
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
app/Http/Controllers/FoursquareController.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
      */
17 17
     protected $foursquare;
18 18
 
19
-     /**
20
-     * Initialize the Controller with necessary arguments
21
-     */
19
+        /**
20
+         * Initialize the Controller with necessary arguments
21
+         */
22 22
     public function __construct()
23 23
     {
24 24
         $this->foursquare = new FoursquareApi(env('FOURSQUARE_CLIENT_ID'), env('FOURSQUARE_CLIENT_SECRET'));
Please login to merge, or discard this 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.
app/Http/Controllers/TumblrController.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $info = $this->tumblr->blogInfo($tumblrBlogUrl);
37 37
 
38
-        return (array)$info;
38
+        return (array) $info;
39 39
     }
40 40
 
41 41
     /**
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $info = $this->tumblr->posts($tumblrBlogUrl);
48 48
 
49
-        return (array)$info->response->posts;
49
+        return (array) $info->response->posts;
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
      */
14 14
     protected $tumblr;
15 15
 
16
-     /**
17
-     * Initialize the Controller with necessary arguments
18
-     */
16
+        /**
17
+         * Initialize the Controller with necessary arguments
18
+         */
19 19
     public function __construct()
20 20
     {
21 21
         $this->tumblr = new Tumblr();
Please login to merge, or discard this patch.