Passed
Push — main ( 01ca09...73ffad )
by Celso
05:57 queued 02:52
created
app/Http/Controllers/Auth/ConfirmablePasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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
         ])) {
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/EmailVerificationPromptController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/NewPasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.
app/Http/Requests/Auth/LoginRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Services/DatabaseService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function index(): array
21 21
     {
22 22
         logs()->debug('Iniciando busca por databases');
23
-        $result = Process::pipe(function (Pipe $pipe) {
23
+        $result = Process::pipe(function(Pipe $pipe) {
24 24
             $pipe->command("/usr/bin/psql -h {$this->pgHost} -U {$this->pgUser} -l");
25 25
             $pipe->command("awk '{print $1}'");
26 26
             $pipe->command("egrep -v 'List|Name|--|\||\(|dev|hml|__|_2'");
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $total = preg_split('/\n/', $result->output());
30 30
         $total = array_filter($total);
31 31
 
32
-        logs()->debug('Total de databases encontrados em prod: ' . count($total));
32
+        logs()->debug('Total de databases encontrados em prod: '.count($total));
33 33
 
34 34
         return $total;
35 35
     }
@@ -52,17 +52,17 @@  discard block
 block discarded – undo
52 52
     {
53 53
         Log::debug("Procurando se banco {$database}_dev já existe...");
54 54
 
55
-        $process = Process::pipe(function (Pipe $pipe) use ($database) {
55
+        $process = Process::pipe(function(Pipe $pipe) use ($database) {
56 56
             $pipe->command("/usr/bin/psql -h {$this->pgHost} -U {$this->pgUser} -l");
57 57
             $pipe->command("grep {$database}_dev");
58 58
         });
59 59
 
60 60
         if ($process->successful()) {
61
-            logs()->debug('Database encontrado, removendo!: ' . $process->output());
61
+            logs()->debug('Database encontrado, removendo!: '.$process->output());
62 62
             Process::run("/usr/bin/psql -h {$this->pgHost} -U {$this->pgUser} -c \"DROP DATABASE {$database}_dev with (force)\"");
63 63
         }
64 64
 
65
-        logs()->debug('Criando Database: ' . $process->output());
65
+        logs()->debug('Criando Database: '.$process->output());
66 66
         $result = Process::run("/usr/bin/psql -h {$this->pgHost} -U {$this->pgUser} -c \"CREATE DATABASE {$database}_dev\"");
67 67
         return $result->successful();
68 68
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     private function sync(string $database): void
73 73
     {
74
-        $process = Process::pipe(function (Pipe $pipe) use ($database) {
74
+        $process = Process::pipe(function(Pipe $pipe) use ($database) {
75 75
             $pipe->command("/usr/bin/pg_dump -h {$this->pgHost} -U {$this->pgUser} -v {$database}");
76 76
             $pipe->command("/usr/bin/psql -h {$this->pgHost} -U {$this->pgUser} {$database}_dev");
77 77
         });
Please login to merge, or discard this patch.