Skip to content

Commit

Permalink
PHP Linting (Pint) - Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
sampoyigi authored and github-actions[bot] committed May 19, 2024
1 parent 0767035 commit 6617c95
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Classes/DuskTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function setUp(): void

Browser::$storeSourceAt = $sourceDir;

Browser::$userResolver = function () {
Browser::$userResolver = function() {
return $this->user();
};

Expand Down Expand Up @@ -114,7 +114,7 @@ protected function user()
*/
protected function registerBrowserMacros()
{
Browser::macro('hasClass', function (string $selector, string $class) {
Browser::macro('hasClass', function(string $selector, string $class) {
$classes = preg_split('/\s+/', $this->attribute($selector, 'class'), -1, PREG_SPLIT_NO_EMPTY);

if (empty($classes)) {
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/DuskCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function handle()

$options = $this->stripPhpArguments($_SERVER['argv']);

return $this->withDuskEnvironment(function () use ($options) {
return $this->withDuskEnvironment(function() use ($options) {
$process = (new Process(array_merge(
$this->binary(), $this->phpunitArguments($options)
)))->setTimeout(null);
Expand All @@ -55,7 +55,7 @@ public function handle()
}

try {
return $process->run(function ($type, $line) {
return $process->run(function($type, $line) {
$this->output->write($line);
});
} catch (ProcessSignaledException $e) {
Expand Down
6 changes: 3 additions & 3 deletions tests/browser/admin/AuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AuthTest extends DuskTestCase
{
public function testLoginAndLogout()
{
$this->browse(function (Browser $browser) {
$this->browse(function(Browser $browser) {
$username = $username ?? env('DUSK_ADMIN_USER', 'admin');
$password = $password ?? env('DUSK_ADMIN_PASS', 'admin');

Expand All @@ -24,7 +24,7 @@ public function testLoginAndLogout()

$browser->on(new Dashboard)
->click('@accountMenuLink')
->within(new SideNav, function (Browser $browser) {
->within(new SideNav, function(Browser $browser) {
$browser->assertPresent('@navItem');
})
->clickLink('Logout');
Expand All @@ -35,7 +35,7 @@ public function testLoginAndLogout()

public function testResetPassword()
{
$this->browse(function (Browser $browser) {
$this->browse(function(Browser $browser) {
$browser->visit(new Login)
->click('@resetPasswordLink');

Expand Down
4 changes: 2 additions & 2 deletions tests/browser/admin/SettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SettingsTest extends DuskTestCase
{
public function testGeneralSettingForm()
{
$this->browse(function (Browser $browser) {
$this->browse(function(Browser $browser) {
$browser->login()
->visit(new GeneralSettings)
->click('@siteTab')
Expand All @@ -25,7 +25,7 @@ public function testGeneralSettingForm()

public function testSetupSettingForm()
{
$this->browse(function (Browser $browser) {
$this->browse(function(Browser $browser) {
$browser->login()
->visit(new SetupSettings)
->click('@saveButton')
Expand Down

0 comments on commit 6617c95

Please sign in to comment.