| @@ -34,6 +34,6 @@ | ||
| 34 | 34 | */ | 
| 35 | 35 | public function __construct() | 
| 36 | 36 |      { | 
| 37 | -        $this->middleware('guest', ['except' => 'logout']); | |
| 37 | +        $this->middleware('guest', [ 'except' => 'logout' ]); | |
| 38 | 38 | } | 
| 39 | 39 | } | 
| @@ -63,9 +63,9 @@ | ||
| 63 | 63 | protected function create(array $data) | 
| 64 | 64 |      { | 
| 65 | 65 | return User::create([ | 
| 66 | - 'name' => $data['name'], | |
| 67 | - 'email' => $data['email'], | |
| 68 | - 'password' => bcrypt($data['password']), | |
| 66 | + 'name' => $data[ 'name' ], | |
| 67 | + 'email' => $data[ 'email' ], | |
| 68 | + 'password' => bcrypt($data[ 'password' ]), | |
| 69 | 69 | ]); | 
| 70 | 70 | } | 
| 71 | 71 | } | 
| @@ -24,7 +24,7 @@ discard block | ||
| 24 | 24 | $this->getName($width, $height) . '.' . $pic->getClientOriginalExtension(), self::EXTENSION_DOT_LENGTH); | 
| 25 | 25 |          Storage::put('compressed/' . $newName, File::get($pic)); | 
| 26 | 26 |          $img = Image::make(storage_path('app/compressed/') . $newName); | 
| 27 | -        $img->resize($width, $height, function ($constraint) { | |
| 27 | +        $img->resize($width, $height, function($constraint) { | |
| 28 | 28 | $constraint->aspectRatio(); | 
| 29 | 29 | }); | 
| 30 | 30 |          $img->save(storage_path('app/resized/') . $newName); | 
| @@ -42,7 +42,7 @@ discard block | ||
| 42 | 42 | ]); | 
| 43 | 43 | $imageOptimizer->optimizeImage($file); | 
| 44 | 44 | $img = Image::make($file); | 
| 45 | -        $img->resize($width, $height, function ($constraint) { | |
| 45 | +        $img->resize($width, $height, function($constraint) { | |
| 46 | 46 | $constraint->aspectRatio(); | 
| 47 | 47 | }); | 
| 48 | 48 | return $img->response(); | 
| @@ -54,7 +54,7 @@ discard block | ||
| 54 | 54 | Route::group([ | 
| 55 | 55 | 'middleware' => 'web', | 
| 56 | 56 | 'namespace' => $this->namespace, | 
| 57 | -        ], function ($router) { | |
| 57 | +        ], function($router) { | |
| 58 | 58 |              require base_path('routes/web.php'); | 
| 59 | 59 | }); | 
| 60 | 60 | } | 
| @@ -72,7 +72,7 @@ discard block | ||
| 72 | 72 | 'middleware' => 'api', | 
| 73 | 73 | 'namespace' => $this->namespace, | 
| 74 | 74 | 'prefix' => 'api', | 
| 75 | -        ], function ($router) { | |
| 75 | +        ], function($router) { | |
| 76 | 76 |              require base_path('routes/api.php'); | 
| 77 | 77 | }); | 
| 78 | 78 | } | 
| @@ -19,7 +19,7 @@ | ||
| 19 | 19 | /* | 
| 20 | 20 | * Authenticate the user's personal channel... | 
| 21 | 21 | */ | 
| 22 | -        Broadcast::channel('App.User.*', function ($user, $userId) { | |
| 22 | +        Broadcast::channel('App.User.*', function($user, $userId) { | |
| 23 | 23 | return (int) $user->id === (int) $userId; | 
| 24 | 24 | }); | 
| 25 | 25 | } | 
| @@ -57,7 +57,7 @@ | ||
| 57 | 57 | protected function unauthenticated($request, AuthenticationException $exception) | 
| 58 | 58 |      { | 
| 59 | 59 |          if ($request->expectsJson()) { | 
| 60 | - return response()->json(['error' => 'Unauthenticated.'], 401); | |
| 60 | + return response()->json([ 'error' => 'Unauthenticated.' ], 401); | |
| 61 | 61 | } | 
| 62 | 62 | |
| 63 | 63 |          return redirect()->guest('login'); |