Skip to content

Commit b1b58d5

Browse files
committed
fixed codestryle
1 parent 700777e commit b1b58d5

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,3 @@ jobs:
3232

3333
- name: Check production code style
3434
run: phpcs src/
35-
36-
- name: Check test code style
37-
run: phpcs tests/ --standard=tests/phpcs.xml

src/Playwright.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
2+
23
namespace Codeception\Module;
34

4-
use Codeception\Exception\ContentNotFound;
55
use Codeception\Exception\ModuleException;
66
use Codeception\Module;
77
use PHPUnit\Framework\AssertionFailedError;
@@ -31,13 +31,12 @@ class Playwright extends Module
3131
'show' => true,
3232
];
3333

34-
const string NPM_PACKAGE = 'codeception-module-playwright';
34+
private const NPM_PACKAGE = 'codeception-module-playwright';
3535
protected ?Process $serverProcess = null;
3636

3737
public function _initialize()
3838
{
3939
if ($this->config['pw_start']) {
40-
4140
$process = new Process(['npx', self::NPM_PACKAGE]);
4241
$process->start();
4342

@@ -368,7 +367,9 @@ public function clickWithLeftButton($locator, $x, $y)
368367

369368
public function clickWithRightButton($locator, $x, $y)
370369
{
371-
return $this->sendCommand('click', [$locator, null, ['button' => 'right', 'position' => ['x' => $x, 'y' => $y]]]);
370+
return $this->sendCommand('click', [$locator, null, [
371+
'button' => 'right', 'position' => ['x' => $x, 'y' => $y]]
372+
]);
372373
}
373374

374375
public function forceClick($locator, $context = null)

0 commit comments

Comments
 (0)