Completed
Push — master ( 95c032...b17f21 )
by PROSPER
04:43 queued 01:50
created
app/Http/Controllers/YahooController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function __construct()
29 29
     {
30 30
          $this->baseUrl = 'https://query.yahooapis.com/v1/public/yql';
31
-         $this->client = new Client(['base_uri' => $this->baseUrl]);
31
+         $this->client = new Client([ 'base_uri' => $this->baseUrl ]);
32 32
 
33 33
          $query = "SELECT * FROM weather.forecast WHERE (location = 10007)";
34 34
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     private function setGetResponse($relativeUrl)
44 44
     {
45
-        $this->response = $this->client->get($this->baseUrl . $relativeUrl, []);
45
+        $this->response = $this->client->get($this->baseUrl . $relativeUrl, [ ]);
46 46
     }
47 47
 
48 48
     /**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     private function getData()
62 62
     {
63
-        return $this->getResponse()['query']['results']['channel'];
63
+        return $this->getResponse()[ 'query' ][ 'results' ][ 'channel' ];
64 64
     }
65 65
 
66 66
 
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/SlackController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
      */
29 29
     private function getAllUsersOnYourTeam($count = null)
30 30
     {
31
-        $list = (array)SlackUser::lists();
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
-        return array_slice($list['members'], 0, $count);
37
+        return array_slice($list[ 'members' ], 0, $count);
38 38
     }
39 39
 
40 40
     /**
@@ -52,6 +52,6 @@  discard block
 block discarded – undo
52 52
 
53 53
         SlackChat::message('#general', $message);
54 54
 
55
-        return redirect()->back()->with('info','Your Message has been sent successfully');
55
+        return redirect()->back()->with('info', 'Your Message has been sent successfully');
56 56
     }
57 57
 }
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/LinkedInController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public function __construct()
38 38
     {
39 39
         $this->baseUrl = 'https://api.linkedin.com/v1';
40
-        $this->client = new Client(['base_uri' => $this->baseUrl]);
40
+        $this->client = new Client([ 'base_uri' => $this->baseUrl ]);
41 41
     }
42 42
 
43 43
      /**
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
      */
47 47
     private function setRequestOptions()
48 48
     {
49
-        $authBearer = 'Bearer '. Auth::user()->getAccessToken();
50
-        $this->client = new Client(['base_uri' => $this->baseUrl,
49
+        $authBearer = 'Bearer ' . Auth::user()->getAccessToken();
50
+        $this->client = new Client([ 'base_uri' => $this->baseUrl,
51 51
             'headers' => [
52 52
                 'Authorization' => $authBearer,
53 53
                 'Content-Type'  => 'application/json',
54 54
                 'Accept'        => 'application/json'
55
-        ]]);
55
+        ] ]);
56 56
     }
57 57
 
58 58
     /**
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     private function setGetResponse($relativeUrl)
63 63
     {
64
-        $this->response = $this->client->get($this->baseUrl . $relativeUrl, []);
64
+        $this->response = $this->client->get($this->baseUrl . $relativeUrl, [ ]);
65 65
     }
66 66
 
67 67
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/TwitterController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function getPage()
33 33
     {
34
-        if( Session::get('provider') !== 'twitter') {
34
+        if (Session::get('provider') !== 'twitter') {
35 35
             Auth::logout();
36 36
 
37 37
             Session::flush();
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         $searchedTweets = json_decode($this->searchForTweets($this->searchItem), true);
43 43
 
44
-        return view('api.twitter')->withTweets($searchedTweets['statuses']);
44
+        return view('api.twitter')->withTweets($searchedTweets[ 'statuses' ]);
45 45
     }
46 46
 
47 47
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     private function getLatestTweets()
52 52
     {
53
-        return Twitter::getHomeTimeline(['count' => 2, 'format' => 'json']);
53
+        return Twitter::getHomeTimeline([ 'count' => 2, 'format' => 'json' ]);
54 54
     }
55 55
 
56 56
     /**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     private function searchForTweets($item)
62 62
     {
63
-        return Twitter::getSearch(['q' => $item, 'count' => 4, 'format' => 'json']);
63
+        return Twitter::getSearch([ 'q' => $item, 'count' => 4, 'format' => 'json' ]);
64 64
     }
65 65
 
66 66
     /**
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
 
77 77
         $tweet = $request->input('tweet') . ' #LaravelHackathonStarter';
78 78
 
79
-        Twitter::reconfig(['token' => Auth::user()->getAccessToken(), 'secret' => Auth::user()->getAccessTokenSecret()]);
79
+        Twitter::reconfig([ 'token' => Auth::user()->getAccessToken(), 'secret' => Auth::user()->getAccessTokenSecret() ]);
80 80
 
81
-        Twitter::postTweet(['status' => $tweet, 'format' => 'json']);
81
+        Twitter::postTweet([ 'status' => $tweet, 'format' => 'json' ]);
82 82
 
83
-        return redirect()->back()->with('info','Your Tweet has been posted successfully');
83
+        return redirect()->back()->with('info', 'Your Tweet has been posted successfully');
84 84
     }
85 85
 }
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.
app/Http/Controllers/TumblrController.php 1 patch
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.