Skip to content

Commit 25675b6

Browse files
committed
chore: cs fixes
1 parent 0955421 commit 25675b6

File tree

5 files changed

+26
-32
lines changed

5 files changed

+26
-32
lines changed

docs/public/index.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
<?php
2+
3+
/*
4+
* This file is part of the API Platform project.
5+
*
6+
* (c) Kévin Dunglas <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
declare(strict_types=1);
213
ini_set('display_errors', 1);
314
ini_set('display_startup_errors', 1);
415
ini_set('date.timezone', 'Europe/Paris');

docs/public/test.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/src/DependencyInjection/Compiler/FilterPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
namespace ApiPlatform\Playground\DependencyInjection\Compiler;
1515

1616
use ApiPlatform\Exception\RuntimeException;
17-
use ApiPlatform\Playground\Metadata\Property\Factory\PropertyNameCollectionFactory;
1817
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
1918
use Symfony\Component\DependencyInjection\Compiler\PriorityTaggedServiceTrait;
2019
use Symfony\Component\DependencyInjection\ContainerBuilder;

docs/src/Kernel.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313

1414
namespace ApiPlatform\Playground;
1515

16-
use ApiPlatform\Metadata\ApiResource;
1716
use ApiPlatform\Playground\DependencyInjection\Compiler\AttributeFilterPass;
1817
use ApiPlatform\Playground\DependencyInjection\Compiler\FilterPass;
1918
use ApiPlatform\Playground\Doctrine\StaticMappingDriver;
20-
use ApiPlatform\Playground\Metadata\Property\Factory\PropertyNameCollectionFactory;
2119
use ApiPlatform\Playground\Metadata\Resource\Factory\ClassResourceNameCollectionFactory;
2220
use Doctrine\Migrations\Configuration\Configuration;
2321
use Doctrine\Migrations\Configuration\EntityManager\ExistingEntityManager;
@@ -29,18 +27,15 @@
2927
use Doctrine\ORM\EntityManagerInterface;
3028
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
3129
use Symfony\Component\Config\Loader\LoaderInterface;
32-
use Symfony\Component\Config\Resource\FileResource;
3330
use Symfony\Component\Config\Resource\ReflectionClassResource;
3431
use Symfony\Component\Console\Input\ArrayInput;
3532
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
3633
use Symfony\Component\DependencyInjection\ContainerBuilder;
37-
use Symfony\Component\DependencyInjection\Definition;
3834
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
3935
use Symfony\Component\HttpFoundation\Request;
4036
use Symfony\Component\HttpFoundation\Response;
4137
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
4238

43-
use Symfony\Component\Serializer\Annotation\Groups;
4439
use function App\DependencyInjection\configure; // @phpstan-ignore-line
4540
use function App\Playground\request;
4641

@@ -116,7 +111,6 @@ private function configureContainer(ContainerConfigurator $container, LoaderInte
116111
}
117112
}
118113

119-
120114
public function request(Request $request = null): Response
121115
{
122116
if (null === $request && \function_exists('App\Playground\request')) {

docs/src/Metadata/Property/Factory/PropertyNameCollectionFactory.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
/*
4+
* This file is part of the API Platform project.
5+
*
6+
* (c) Kévin Dunglas <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
declare(strict_types=1);
13+
314
namespace ApiPlatform\Playground\Metadata\Property\Factory;
415

516
use ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface;
@@ -8,7 +19,10 @@
819

920
class PropertyNameCollectionFactory implements PropertyNameCollectionFactoryInterface
1021
{
11-
public function __construct(private CacheItemPoolInterface $cacheItemPool, private PropertyNameCollectionFactoryInterface $decorated) {}
22+
public function __construct(private CacheItemPoolInterface $cacheItemPool, private PropertyNameCollectionFactoryInterface $decorated)
23+
{
24+
}
25+
1226
public function create(string $resourceClass, array $options = []): PropertyNameCollection
1327
{
1428
return $this->decorated->create($resourceClass, $options);

0 commit comments

Comments
 (0)