Skip to content

Commit 8cb4dc4

Browse files
committed
CS
1 parent 8e6389c commit 8cb4dc4

35 files changed

Lines changed: 106 additions & 102 deletions

.php-cs-fixer.dist.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<?php
22

3-
$licence = <<<'EOF'
4-
This file is part of the playwright-php/playwright package.
5-
For the full copyright and license information, please view
6-
the LICENSE file that was distributed with this source code.
7-
EOF;
3+
$license = <<<LICENSE
4+
This file is part of the community-maintained Playwright PHP project.
5+
It is not affiliated with or endorsed by Microsoft.
6+
7+
(c) 2025-Present - Playwright PHP <https://github.com/playwright-php>
8+
9+
For the full copyright and license information, please view the LICENSE
10+
file that was distributed with this source code.
11+
LICENSE;
812

913
$finder = (new PhpCsFixer\Finder())
1014
->in(__DIR__);
@@ -14,10 +18,8 @@
1418
->setFinder($finder)
1519
->setRiskyAllowed(true)
1620
->setRules([
17-
'@PSR12' => true,
1821
'@Symfony' => true,
19-
'no_unused_imports' => true,
20-
'array_syntax' => ['syntax' => 'short'],
2122
'declare_strict_types' => true,
22-
'header_comment' => ['header' => $licence],
23-
]);
23+
'header_comment' => ['header' => $license],
24+
])
25+
;

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ npx playwright install
4848
### 1. Create Your Test Case
4949

5050
```php
51-
use PlaywrightPHP\Symfony\Test\PlaywrightTestCase;
51+
use Playwright\Symfony\Test\PlaywrightTestCase;
5252
use Symfony\Component\HttpKernel\KernelInterface;
5353

5454
class E2ETestCase extends PlaywrightTestCase
@@ -180,7 +180,7 @@ public function testCookieHandling(): void
180180
```php
181181
return [
182182
// ... your bundles
183-
PlaywrightPHP\Symfony\PlaywrightSymfonyBundle::class => ['test' => true],
183+
Playwright\Symfony\PlaywrightSymfonyBundle::class => ['test' => true],
184184
];
185185
```
186186

@@ -212,7 +212,7 @@ playwright:
212212

213213
namespace App\Tests\E2E;
214214

215-
use PlaywrightPHP\Symfony\Test\PlaywrightTestCase;
215+
use Playwright\Symfony\Test\PlaywrightTestCase;
216216
use Symfony\Component\HttpKernel\KernelInterface;
217217

218218
abstract class BaseE2ETest extends PlaywrightTestCase

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
},
3434
"autoload": {
3535
"psr-4": {
36-
"PlaywrightPHP\\Symfony\\": "src/"
36+
"Playwright\\Symfony\\": "src/"
3737
}
3838
},
3939
"autoload-dev": {
4040
"psr-4": {
41-
"PlaywrightPHP\\Symfony\\Tests\\": "tests/"
41+
"Playwright\\Symfony\\Tests\\": "tests/"
4242
}
4343
},
4444
"extra": {

config/services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* the LICENSE file that was distributed with this source code.
99
*/
1010

11-
use PlaywrightPHP\Symfony\Command\DebugPlaywrightCommand;
11+
use Playwright\Symfony\Command\DebugPlaywrightCommand;
1212
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
1313

1414
return static function (ContainerConfigurator $container): void {

src/Command/DebugPlaywrightCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* the LICENSE file that was distributed with this source code.
99
*/
1010

11-
namespace PlaywrightPHP\Symfony\Command;
11+
namespace Playwright\Symfony\Command;
1212

1313
use Symfony\Component\Console\Attribute\AsCommand;
1414
use Symfony\Component\Console\Command\Command;

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* the LICENSE file that was distributed with this source code.
99
*/
1010

11-
namespace PlaywrightPHP\Symfony\DependencyInjection;
11+
namespace Playwright\Symfony\DependencyInjection;
1212

1313
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
1414
use Symfony\Component\Config\Definition\ConfigurationInterface;

src/DependencyInjection/PlaywrightExtension.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
* the LICENSE file that was distributed with this source code.
99
*/
1010

11-
namespace PlaywrightPHP\Symfony\DependencyInjection;
11+
namespace Playwright\Symfony\DependencyInjection;
1212

13-
use PlaywrightPHP\Browser\BrowserContextInterface;
14-
use PlaywrightPHP\Browser\BrowserType;
15-
use PlaywrightPHP\Configuration\PlaywrightConfig;
16-
use PlaywrightPHP\Playwright;
13+
use Playwright\Browser\BrowserContextInterface;
14+
use Playwright\Browser\BrowserType;
15+
use Playwright\Configuration\PlaywrightConfig;
16+
use Playwright\Playwright;
1717
use Symfony\Component\Config\FileLocator;
1818
use Symfony\Component\DependencyInjection\ContainerBuilder;
1919
use Symfony\Component\DependencyInjection\Definition;

src/PlaywrightSymfonyBundle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
* the LICENSE file that was distributed with this source code.
99
*/
1010

11-
namespace PlaywrightPHP\Symfony;
11+
namespace Playwright\Symfony;
1212

13-
use PlaywrightPHP\Symfony\DependencyInjection\PlaywrightExtension;
13+
use Playwright\Symfony\DependencyInjection\PlaywrightExtension;
1414
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
1515
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
1616

src/Test/Assert/PlaywrightTestAssertionsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* the LICENSE file that was distributed with this source code.
99
*/
1010

11-
namespace PlaywrightPHP\Symfony\Test\Assert;
11+
namespace Playwright\Symfony\Test\Assert;
1212

1313
/**
1414
* @author Simon André <smn.andre@gmail.com>

src/Test/PlaywrightTestCase.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
* the LICENSE file that was distributed with this source code.
99
*/
1010

11-
namespace PlaywrightPHP\Symfony\Test;
12-
13-
use PlaywrightPHP\Page\PageInterface;
14-
use PlaywrightPHP\Symfony\Browser\PlaywrightBrowser;
15-
use PlaywrightPHP\Symfony\Client\PlaywrightClient;
16-
use PlaywrightPHP\Symfony\Client\RequestConverter;
17-
use PlaywrightPHP\Symfony\Client\ResponseConverter;
18-
use PlaywrightPHP\Symfony\Test\Assert\PlaywrightTestAssertionsTrait;
11+
namespace Playwright\Symfony\Test;
12+
13+
use Playwright\Page\PageInterface;
14+
use Playwright\Symfony\Browser\PlaywrightBrowser;
15+
use Playwright\Symfony\Client\PlaywrightClient;
16+
use Playwright\Symfony\Client\RequestConverter;
17+
use Playwright\Symfony\Client\ResponseConverter;
18+
use Playwright\Symfony\Test\Assert\PlaywrightTestAssertionsTrait;
1919
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
2020
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
2121
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;

0 commit comments

Comments
 (0)