Completed
Pull Request — master (#34)
by
unknown
06:33
created
app/Http/Controllers/ContactController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $emailToSendTo = $request->input('email');
28 28
         $body = $request->input('message');
29 29
 
30
-        Mail::send('emails.contact', ['body' => $body], function ($message) use ($name,$emailToSendTo) {
30
+        Mail::send('emails.contact', [ 'body' => $body ], function($message) use ($name, $emailToSendTo) {
31 31
             $message->from('[email protected]', "From: {$name}");
32 32
 
33 33
             $message->to($emailToSendTo)->subject(trans('texts.contact.subject'));
Please login to merge, or discard this patch.
app/Http/routes.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  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 28
     Route::get('/', [
29 29
     'as' => 'home', 'uses' => 'PageController@home'
@@ -33,17 +33,17 @@  discard block
 block discarded – undo
33 33
     'as' => 'api', 'uses' => 'PageController@api'
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', [
@@ -117,13 +117,13 @@  discard block
 block discarded – undo
117 117
         Route::get('facebook', [
118 118
             'uses' => 'FacebookController@getPage',
119 119
             'as'   => 'api.facebook',
120
-            'middleware' => ['auth']
120
+            'middleware' => [ 'auth' ]
121 121
         ]);
122 122
 
123 123
         Route::get('linkedin', [
124 124
             'uses' => 'LinkedInController@getPage',
125 125
             'as'   => 'api.linkedin',
126
-            'middleware' => ['auth']
126
+            'middleware' => [ 'auth' ]
127 127
         ]);
128 128
 
129 129
         Route::get('foursquare', [
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         Route::get('instagram', [
135 135
             'uses' => 'InstagramController@getPage',
136 136
             'as'   => 'api.instagram',
137
-            'middleware' => ['auth']
137
+            'middleware' => [ 'auth' ]
138 138
         ]);
139 139
 
140 140
         Route::get('tumblr', [
@@ -151,18 +151,18 @@  discard block
 block discarded – undo
151 151
     Route::post('/tweet/new', [
152 152
         'uses' => 'TwitterController@sendTweet',
153 153
         'as'   => 'tweet.new',
154
-        'middleware' => ['auth']
154
+        'middleware' => [ 'auth' ]
155 155
     ]);
156 156
 
157 157
     Route::get('/login', [
158 158
         'uses' => 'Auth\AuthController@getLogin',
159 159
         'as'   => 'auth.login',
160
-        'middleware' => ['guest']
160
+        'middleware' => [ 'guest' ]
161 161
     ]);
162 162
 
163 163
     Route::post('/login', [
164 164
         'uses' => 'Auth\AuthController@postLogin',
165
-        'middleware' => ['guest']
165
+        'middleware' => [ 'guest' ]
166 166
     ]);
167 167
 
168 168
     // Password Reset Routes...
@@ -176,50 +176,50 @@  discard block
 block discarded – undo
176 176
     Route::get('/account', [
177 177
         'uses' => 'AccountController@getAccountPage',
178 178
         'as'   => 'account.dashboard',
179
-        'middleware' => ['auth']
179
+        'middleware' => [ 'auth' ]
180 180
     ]);
181 181
 
182 182
     Route::post('/account/profile', [
183 183
         'uses' => 'AccountController@updateProfile',
184 184
         'as'   => 'account.profile',
185
-        'middleware' => ['auth']
185
+        'middleware' => [ 'auth' ]
186 186
     ]);
187 187
 
188 188
     Route::post('/account/photo', [
189 189
         'uses' => 'AccountController@updateAvatar',
190 190
         'as'   => 'account.avatar',
191
-        'middleware' => ['auth']
191
+        'middleware' => [ 'auth' ]
192 192
     ]);
193 193
 
194 194
     Route::post('/account/password', [
195 195
         'uses' => 'AccountController@changePassword',
196 196
         'as'   => 'account.password',
197
-        'middleware' => ['auth']
197
+        'middleware' => [ 'auth' ]
198 198
     ]);
199 199
 
200 200
     Route::post('/account/delete/now', [
201 201
         'uses' => 'AccountController@deleteAccount',
202 202
         'as'   => 'account.delete.now',
203
-        'middleware' => ['auth']
203
+        'middleware' => [ 'auth' ]
204 204
     ]);
205 205
 
206 206
 
207 207
     Route::get('/account/confirm/delete', [
208 208
         'uses' => 'AccountController@redirectToConfirmDeletePage',
209 209
         'as'   => 'account.confirm.delete',
210
-        'middleware' => ['auth']
210
+        'middleware' => [ 'auth' ]
211 211
     ]);
212 212
 
213 213
     Route::get('/account/delete/later', [
214 214
         'uses' => 'AccountController@dontDeleteAccount',
215 215
         'as'   => 'account.dont.delete',
216
-        'middleware' => ['auth']
216
+        'middleware' => [ 'auth' ]
217 217
     ]);
218 218
 
219 219
     Route::get('/signup', [
220 220
         'uses' => 'Auth\AuthController@getRegister',
221 221
         'as'   => 'auth.register',
222
-        'middleware' => ['guest']
222
+        'middleware' => [ 'guest' ]
223 223
     ]);
224 224
 
225 225
     Route::get('logout', [
@@ -229,10 +229,10 @@  discard block
 block discarded – undo
229 229
 
230 230
     Route::post('/signup', [
231 231
         'uses' => 'Auth\AuthController@postRegister',
232
-        'middleware' => ['guest']
232
+        'middleware' => [ 'guest' ]
233 233
     ]);
234 234
 
235
-    Route::get('/contact', function () {
235
+    Route::get('/contact', function() {
236 236
         return view('contact');
237 237
     });
238 238
 
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -23,28 +23,28 @@
 block discarded – undo
23 23
      */
24 24
     public function register()
25 25
     {
26
-		//
27
-    	// environment specific application initialization
28
-    	//
29
-    	switch( $this->app->environment() )
30
-    	{
31
-			// development env
32
-			case 'local':
33
-				if( $this->app->runningInConsole() )
34
-				{
35
-					// Some dev tools to generate some code completion helpers (some fake php files)
36
-					$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
37
-				}
38
-				// A 'in browser' debug bar
39
-				$this->app->register(\Barryvdh\Debugbar\ServiceProvider::class);
40
-				break;
41
-			// testing env
42
-			case '':
43
-				break;
44
-			// production env
45
-			case '':
46
-				break;
47
-		}
26
+        //
27
+        // environment specific application initialization
28
+        //
29
+        switch( $this->app->environment() )
30
+        {
31
+            // development env
32
+            case 'local':
33
+                if( $this->app->runningInConsole() )
34
+                {
35
+                    // Some dev tools to generate some code completion helpers (some fake php files)
36
+                    $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
37
+                }
38
+                // A 'in browser' debug bar
39
+                $this->app->register(\Barryvdh\Debugbar\ServiceProvider::class);
40
+                break;
41
+            // testing env
42
+            case '':
43
+                break;
44
+            // production env
45
+            case '':
46
+                break;
47
+        }
48 48
 
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
 		//
27 27
     	// environment specific application initialization
28 28
     	//
29
-    	switch( $this->app->environment() )
29
+    	switch ($this->app->environment())
30 30
     	{
31 31
 			// development env
32 32
 			case 'local':
33
-				if( $this->app->runningInConsole() )
33
+				if ($this->app->runningInConsole())
34 34
 				{
35 35
 					// Some dev tools to generate some code completion helpers (some fake php files)
36 36
 					$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
Please login to merge, or discard this patch.