Completed
Push — master ( 329536...7ab7f0 )
by PROSPER
02:22
created
app/Http/Controllers/TumblrController.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   +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.
app/Http/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,5 +2,5 @@
 block discarded – undo
2 2
 
3 3
     function load_asset($asset_url)
4 4
     {
5
-        return ( env('APP_ENV') === 'production' ) ? secure_asset($asset_url) : asset($asset_url);
5
+        return (env('APP_ENV') === 'production') ? secure_asset($asset_url) : asset($asset_url);
6 6
     }
Please login to merge, or discard this patch.
app/Http/routes.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -23,27 +23,27 @@  discard block
 block discarded – undo
23 23
 |
24 24
 */
25 25
 
26
-Route::group(['middleware' => ['web']], function () {
26
+Route::group([ 'middleware' => [ 'web' ] ], function() {
27 27
 
28
-    Route::get('/', function () {
28
+    Route::get('/', function() {
29 29
         return view('welcome');
30 30
     });
31 31
 
32
-    Route::get('/api', function () {
32
+    Route::get('/api', function() {
33 33
         return view('apidashboard');
34 34
     });
35 35
 
36
-    Route::group(['prefix' => 'api'], function() {
36
+    Route::group([ 'prefix' => 'api' ], function() {
37 37
         Route::get('github', [
38 38
             'uses' => 'GithubController@getPage',
39 39
             'as'   => 'api.github',
40
-            'middleware' => ['auth']
40
+            'middleware' => [ 'auth' ]
41 41
         ]);
42 42
 
43 43
         Route::get('twitter', [
44 44
             'uses' => 'TwitterController@getPage',
45 45
             'as'   => 'api.twitter',
46
-            'middleware' => ['auth']
46
+            'middleware' => [ 'auth' ]
47 47
         ]);
48 48
 
49 49
         Route::get('lastfm', [
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         Route::get('yahoo', [
89 89
             'uses' => 'YahooController@getPage',
90 90
             'as'   => 'api.yahoo',
91
-            'middleware' => ['auth']
91
+            'middleware' => [ 'auth' ]
92 92
         ]);
93 93
 
94 94
         Route::get('clockwork', [
@@ -118,13 +118,13 @@  discard block
 block discarded – undo
118 118
         Route::get('facebook', [
119 119
             'uses' => 'FacebookController@getPage',
120 120
             'as'   => 'api.facebook',
121
-            'middleware' => ['auth']
121
+            'middleware' => [ 'auth' ]
122 122
         ]);
123 123
 
124 124
         Route::get('linkedin', [
125 125
             'uses' => 'LinkedInController@getPage',
126 126
             'as'   => 'api.linkedin',
127
-            'middleware' => ['auth']
127
+            'middleware' => [ 'auth' ]
128 128
         ]);
129 129
 
130 130
         Route::get('foursquare', [
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         Route::get('instagram', [
136 136
             'uses' => 'InstagramController@getPage',
137 137
             'as'   => 'api.instagram',
138
-            'middleware' => ['auth']
138
+            'middleware' => [ 'auth' ]
139 139
         ]);
140 140
 
141 141
         Route::get('tumblr', [
@@ -152,18 +152,18 @@  discard block
 block discarded – undo
152 152
     Route::post('/tweet/new', [
153 153
         'uses' => 'TwitterController@sendTweet',
154 154
         'as'   => 'tweet.new',
155
-        'middleware' => ['auth']
155
+        'middleware' => [ 'auth' ]
156 156
     ]);
157 157
 
158 158
     Route::get('/login', [
159 159
         'uses' => 'Auth\AuthController@getLogin',
160 160
         'as'   => 'auth.login',
161
-        'middleware' => ['guest']
161
+        'middleware' => [ 'guest' ]
162 162
     ]);
163 163
 
164 164
     Route::post('/login', [
165 165
         'uses' => 'Auth\AuthController@postLogin',
166
-        'middleware' => ['guest']
166
+        'middleware' => [ 'guest' ]
167 167
     ]);
168 168
 
169 169
     // Password Reset Routes...
@@ -177,50 +177,50 @@  discard block
 block discarded – undo
177 177
     Route::get('/account', [
178 178
         'uses' => 'AccountController@getAccountPage',
179 179
         'as'   => 'account.dashboard',
180
-        'middleware' => ['auth']
180
+        'middleware' => [ 'auth' ]
181 181
     ]);
182 182
 
183 183
     Route::post('/account/profile', [
184 184
         'uses' => 'AccountController@updateProfile',
185 185
         'as'   => 'account.profile',
186
-        'middleware' => ['auth']
186
+        'middleware' => [ 'auth' ]
187 187
     ]);
188 188
 
189 189
     Route::post('/account/photo', [
190 190
         'uses' => 'AccountController@updateAvatar',
191 191
         'as'   => 'account.avatar',
192
-        'middleware' => ['auth']
192
+        'middleware' => [ 'auth' ]
193 193
     ]);
194 194
 
195 195
     Route::post('/account/password', [
196 196
         'uses' => 'AccountController@changePassword',
197 197
         'as'   => 'account.password',
198
-        'middleware' => ['auth']
198
+        'middleware' => [ 'auth' ]
199 199
     ]);
200 200
 
201 201
     Route::post('/account/delete/now', [
202 202
         'uses' => 'AccountController@deleteAccount',
203 203
         'as'   => 'account.delete.now',
204
-        'middleware' => ['auth']
204
+        'middleware' => [ 'auth' ]
205 205
     ]);
206 206
 
207 207
 
208 208
     Route::get('/account/confirm/delete', [
209 209
         'uses' => 'AccountController@redirectToConfirmDeletePage',
210 210
         'as'   => 'account.confirm.delete',
211
-        'middleware' => ['auth']
211
+        'middleware' => [ 'auth' ]
212 212
     ]);
213 213
 
214 214
     Route::get('/account/delete/later', [
215 215
         'uses' => 'AccountController@dontDeleteAccount',
216 216
         'as'   => 'account.dont.delete',
217
-        'middleware' => ['auth']
217
+        'middleware' => [ 'auth' ]
218 218
     ]);
219 219
 
220 220
     Route::get('/signup', [
221 221
         'uses' => 'Auth\AuthController@getRegister',
222 222
         'as'   => 'auth.register',
223
-        'middleware' => ['guest']
223
+        'middleware' => [ 'guest' ]
224 224
     ]);
225 225
 
226 226
     Route::get('logout', [
@@ -230,10 +230,10 @@  discard block
 block discarded – undo
230 230
 
231 231
     Route::post('/signup', [
232 232
         'uses' => 'Auth\AuthController@postRegister',
233
-        'middleware' => ['guest']
233
+        'middleware' => [ 'guest' ]
234 234
     ]);
235 235
 
236
-    Route::get('/contact', function () {
236
+    Route::get('/contact', function() {
237 237
         return view('contact');
238 238
     });
239 239
 
Please login to merge, or discard this patch.