@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | { |
| 40 | 40 | $this->info("\nWelcome to the installation process of Laravel Newsletter!\n"); |
| 41 | 41 | |
| 42 | - if (! $this->confirm('Do you like to continue with the installation of Laravel Newsletter?')) { |
|
| 42 | + if (!$this->confirm('Do you like to continue with the installation of Laravel Newsletter?')) { |
|
| 43 | 43 | $this->info("\nYou stopped the installation of Laravel Newsletter\n"); |
| 44 | 44 | |
| 45 | 45 | return; |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | { |
| 59 | 59 | $this->line("\nInstalling.."); |
| 60 | 60 | |
| 61 | - if (! file_exists('.env')) { |
|
| 61 | + if (!file_exists('.env')) { |
|
| 62 | 62 | exec('mv .env.example .env'); |
| 63 | 63 | $this->line("\n.env file successfully created\n"); |
| 64 | 64 | } |
@@ -68,10 +68,10 @@ discard block |
||
| 68 | 68 | $this->line("\nSecret key properly generated\n"); |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - $dbEnv['DB_HOST'] = $this->ask('Database host'); |
|
| 72 | - $dbEnv['DB_DATABASE'] = $this->ask('Database name'); |
|
| 73 | - $dbEnv['DB_USERNAME'] = $this->ask('Database user'); |
|
| 74 | - $dbEnv['DB_PASSWORD'] = $this->secret('Database password ("null" for no password)'); |
|
| 71 | + $dbEnv[ 'DB_HOST' ] = $this->ask('Database host'); |
|
| 72 | + $dbEnv[ 'DB_DATABASE' ] = $this->ask('Database name'); |
|
| 73 | + $dbEnv[ 'DB_USERNAME' ] = $this->ask('Database user'); |
|
| 74 | + $dbEnv[ 'DB_PASSWORD' ] = $this->secret('Database password ("null" for no password)'); |
|
| 75 | 75 | $this->updateEnvironmentFile($dbEnv); |
| 76 | 76 | |
| 77 | 77 | $this->line("Application installed.\n"); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | \App\Listeners\EmailViewed::class, |
| 21 | 21 | ], |
| 22 | 22 | 'jdavidbakr\MailTracker\Events\LinkClickedEvent' => [ |
| 23 | - \App\Listeners\EmailClicked::class, |
|
| 23 | + \App\Listeners\EmailClicked::class, |
|
| 24 | 24 | ], |
| 25 | 25 | ]; |
| 26 | 26 | |
@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | protected function mapWebRoutes() |
| 53 | 53 | { |
| 54 | 54 | Route::middleware('web') |
| 55 | - ->namespace($this->namespace) |
|
| 56 | - ->group(base_path('routes/web.php')); |
|
| 55 | + ->namespace($this->namespace) |
|
| 56 | + ->group(base_path('routes/web.php')); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
| 66 | 66 | protected function mapApiRoutes() |
| 67 | 67 | { |
| 68 | 68 | Route::prefix('api') |
| 69 | - ->middleware('api') |
|
| 70 | - ->namespace($this->namespace) |
|
| 71 | - ->group(base_path('routes/api.php')); |
|
| 69 | + ->middleware('api') |
|
| 70 | + ->namespace($this->namespace) |
|
| 71 | + ->group(base_path('routes/api.php')); |
|
| 72 | 72 | } |
| 73 | 73 | } |
@@ -56,9 +56,9 @@ |
||
| 56 | 56 | |
| 57 | 57 | $chunk = ceil($lists->count() / 4); |
| 58 | 58 | |
| 59 | - $lists->each(function ($list) use ($chunk) { |
|
| 60 | - $list->subscriptions()->chunk($chunk, function ($subscriptions) { |
|
| 61 | - $subscriptions->each(function ($subscription) { |
|
| 59 | + $lists->each(function($list) use ($chunk) { |
|
| 60 | + $list->subscriptions()->chunk($chunk, function($subscriptions) { |
|
| 61 | + $subscriptions->each(function($subscription) { |
|
| 62 | 62 | Mail::to($subscription)->queue(new CampaignMail($subscription, $this->campaign, $this->template)); |
| 63 | 63 | }); |
| 64 | 64 | }); |
@@ -271,7 +271,7 @@ |
||
| 271 | 271 | ]; |
| 272 | 272 | |
| 273 | 273 | if ($key) { |
| 274 | - return $arr[$key]; |
|
| 274 | + return $arr[ $key ]; |
|
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | return $arr; |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | |
| 8 | 8 | class LocaleMiddleware |
| 9 | 9 | { |
| 10 | - protected $languages = ['en', 'nl']; |
|
| 10 | + protected $languages = [ 'en', 'nl' ]; |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * Handle an incoming request. |
@@ -24,8 +24,8 @@ |
||
| 24 | 24 | { |
| 25 | 25 | $check = Hash::check($request->input('old_password'), auth()->user()->password); |
| 26 | 26 | |
| 27 | - if (! $check) { |
|
| 28 | - return redirect()->back()->withErrors(['Your current password is incorrect!']); |
|
| 27 | + if (!$check) { |
|
| 28 | + return redirect()->back()->withErrors([ 'Your current password is incorrect!' ]); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | $user = $request->user(); |
@@ -63,9 +63,9 @@ |
||
| 63 | 63 | protected function create(array $data) |
| 64 | 64 | { |
| 65 | 65 | return User::create([ |
| 66 | - 'username' => $data['username'], |
|
| 67 | - 'email' => $data['email'], |
|
| 68 | - 'password' => bcrypt($data['password']), |
|
| 66 | + 'username' => $data[ 'username' ], |
|
| 67 | + 'email' => $data[ 'email' ], |
|
| 68 | + 'password' => bcrypt($data[ 'password' ]), |
|
| 69 | 69 | ]); |
| 70 | 70 | } |
| 71 | 71 | |
@@ -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 | } |