@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function store(Request $request): RedirectResponse |
| 27 | 27 | { |
| 28 | - if (! Auth::guard('web')->validate([ |
|
| 28 | + if (!Auth::guard('web')->validate([ |
|
| 29 | 29 | 'email' => $request->user()->email, |
| 30 | 30 | 'password' => $request->password, |
| 31 | 31 | ])) { |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | public function __invoke(Request $request): RedirectResponse|Response |
| 17 | 17 | { |
| 18 | 18 | return $request->user()->hasVerifiedEmail() |
| 19 | - ? redirect()->intended(route('dashboard', absolute: false)) |
|
| 19 | + ? redirect()->intended(route('dashboard', absolute : false)) |
|
| 20 | 20 | : Inertia::render('Auth/VerifyEmail', ['status' => session('status')]); |
| 21 | 21 | } |
| 22 | 22 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | // database. Otherwise we will parse the error and return the response. |
| 46 | 46 | $status = Password::reset( |
| 47 | 47 | $request->only('email', 'password', 'password_confirmation', 'token'), |
| 48 | - function ($user) use ($request) { |
|
| 48 | + function($user) use ($request) { |
|
| 49 | 49 | $user->forceFill([ |
| 50 | 50 | 'password' => Hash::make($request->password), |
| 51 | 51 | 'remember_token' => Str::random(60), |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | { |
| 42 | 42 | $this->ensureIsNotRateLimited(); |
| 43 | 43 | |
| 44 | - if (! Auth::attempt($this->only('email', 'password'), $this->boolean('remember'))) { |
|
| 44 | + if (!Auth::attempt($this->only('email', 'password'), $this->boolean('remember'))) { |
|
| 45 | 45 | RateLimiter::hit($this->throttleKey()); |
| 46 | 46 | |
| 47 | 47 | throw ValidationException::withMessages([ |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function ensureIsNotRateLimited(): void |
| 61 | 61 | { |
| 62 | - if (! RateLimiter::tooManyAttempts($this->throttleKey(), 5)) { |
|
| 62 | + if (!RateLimiter::tooManyAttempts($this->throttleKey(), 5)) { |
|
| 63 | 63 | return; |
| 64 | 64 | } |
| 65 | 65 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | public function index(): array |
| 20 | 20 | { |
| 21 | 21 | logs()->debug('Iniciando busca por databases...'); |
| 22 | - $result = Process::pipe(function (Pipe $pipe) { |
|
| 22 | + $result = Process::pipe(function(Pipe $pipe) { |
|
| 23 | 23 | $pipe->command("/usr/bin/psql -h {$this->pgHost} -U {$this->pgUser} -l"); |
| 24 | 24 | $pipe->command("awk '{print $1}'"); |
| 25 | 25 | $pipe->command("egrep -v 'List|Name|--|\||\(|dev|hml|__|_2'"); |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | $total = preg_split('/\n/', $result->output()); |
| 30 | 30 | $total = array_filter($total); |
| 31 | 31 | |
| 32 | - logs()->debug('Total de databases encontrados em ' . $this->pgHost . ': ' . count($total) . ' com o usuário: ' . $this->pgUser); |
|
| 32 | + logs()->debug('Total de databases encontrados em '.$this->pgHost.': '.count($total).' com o usuário: '.$this->pgUser); |
|
| 33 | 33 | |
| 34 | 34 | return $total; |
| 35 | 35 | } |
@@ -56,17 +56,17 @@ discard block |
||
| 56 | 56 | { |
| 57 | 57 | Log::debug("Procurando se banco {$database}_dev já existe..."); |
| 58 | 58 | |
| 59 | - $process = Process::pipe(function (Pipe $pipe) use ($database) { |
|
| 59 | + $process = Process::pipe(function(Pipe $pipe) use ($database) { |
|
| 60 | 60 | $pipe->command("/usr/bin/psql -h {$this->pgHost} -U {$this->pgUser} -l"); |
| 61 | 61 | $pipe->command("grep {$database}_dev"); |
| 62 | 62 | }); |
| 63 | 63 | |
| 64 | 64 | if ($process->successful()) { |
| 65 | - logs()->debug('Database encontrado, removendo!: ' . $process->output()); |
|
| 65 | + logs()->debug('Database encontrado, removendo!: '.$process->output()); |
|
| 66 | 66 | Process::run("/usr/bin/psql -h {$this->pgHost} -U {$this->pgUser} -c \"DROP DATABASE {$database}_dev with (force)\""); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - logs()->debug('Criando Database: ' . $process->output()); |
|
| 69 | + logs()->debug('Criando Database: '.$process->output()); |
|
| 70 | 70 | $result = Process::run("/usr/bin/psql -h {$this->pgHost} -U {$this->pgUser} -c \"CREATE DATABASE {$database}_dev\""); |
| 71 | 71 | |
| 72 | 72 | return $result->successful(); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | private function sync(string $database): void |
| 76 | 76 | { |
| 77 | - $process = Process::pipe(function (Pipe $pipe) use ($database) { |
|
| 77 | + $process = Process::pipe(function(Pipe $pipe) use ($database) { |
|
| 78 | 78 | $pipe->command("/usr/bin/pg_dump -h {$this->pgHost} -U {$this->pgUser} -v {$database}"); |
| 79 | 79 | $pipe->command("/usr/bin/psql -h {$this->pgHost} -U {$this->pgUser} {$database}_dev"); |
| 80 | 80 | }); |