Lint PHP code psr-12, add GH action

This commit is contained in:
Julien Nahum
2024-02-23 11:54:12 +01:00
parent e85e4df7fe
commit 62971a2ef4
226 changed files with 2338 additions and 2144 deletions

View File

@@ -19,7 +19,6 @@ class Home extends Page
/**
* Assert that the browser is on the page.
*
* @param Browser $browser
* @return void
*/
public function assert(Browser $browser)
@@ -40,7 +39,7 @@ class Home extends Page
/**
* Click on the log out link.
*
* @param \Laravel\Dusk\Browser $browser
* @param \Laravel\Dusk\Browser $browser
* @return void
*/
public function clickLogout($browser)

View File

@@ -19,7 +19,6 @@ class HomePage extends Page
/**
* Assert that the browser is on the page.
*
* @param \Laravel\Dusk\Browser $browser
* @return void
*/
public function assert(Browser $browser)

View File

@@ -17,16 +17,16 @@ class Login extends Page
/**
* Submit the form with the given credentials.
*
* @param \Laravel\Dusk\Browser $browser
* @param string $email
* @param string $password
* @param \Laravel\Dusk\Browser $browser
* @param string $email
* @param string $password
* @return void
*/
public function submit($browser, $email, $password)
{
$browser->type('email', $email)
->type('password', $password)
->press('@btn_login')
->pause(500);
->type('password', $password)
->press('@btn_login')
->pause(500);
}
}

View File

@@ -19,7 +19,6 @@ class Onboarding extends Page
/**
* Assert that the browser is on the page.
*
* @param Browser $browser
* @return void
*/
public function assert(Browser $browser)

View File

@@ -10,7 +10,6 @@ abstract class Page extends BasePage
/**
* Assert that the browser is on the page.
*
* @param Browser $browser
* @return void
*/
public function assert(Browser $browser)

View File

@@ -17,8 +17,7 @@ class Register extends Page
/**
* Submit the form with the given data.
*
* @param \Laravel\Dusk\Browser $browser
* @param array $data
* @param \Laravel\Dusk\Browser $browser
* @return void
*/
public function submit($browser, array $data = [])