Skip to content

Commit d0f7fba

Browse files
committed
Ran php-cs-fixer
1 parent afcea62 commit d0f7fba

26 files changed

+27
-59
lines changed

Diff for: .circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
command: sudo composer self-update && composer install -n --prefer-dist
3636
- run:
3737
name: Install php-cs-fixer
38-
command: mkdir -p tools/php-cs-fixer && composer require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer
38+
command: mkdir -p tools/php-cs-fixer && composer require --dev --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer
3939
- run:
4040
name: Run syntax test
4141
command: tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation -v

Diff for: scripts/create-redirector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: scripts/php-cs-fixer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: src/Cache/Delivery/CacheClearer.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

@@ -31,9 +31,6 @@ public function __construct(Client $client, CacheItemPoolInterface $cacheItemPoo
3131
$this->clearer = new SdkCacheClearer($client, $client->getResourcePool(), $cacheItemPool);
3232
}
3333

34-
/**
35-
* {@inheritdoc}
36-
*/
3734
public function clear($cacheDir)
3835
{
3936
$this->clearer->clear();

Diff for: src/Cache/Delivery/CacheWarmer.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

@@ -43,19 +43,14 @@ public function __construct(Client $client, CacheItemPoolInterface $cacheItemPoo
4343
$this->cacheContent = $cacheContent;
4444
}
4545

46-
/**
47-
* {@inheritdoc}
48-
*/
4946
public function warmUp($cacheDir): array
5047
{
5148
$this->warmer->warmUp($this->cacheContent);
49+
5250
// we don't have any directories to pre-load, so we can simply return an empty array.
5351
return [];
5452
}
5553

56-
/**
57-
* {@inheritdoc}
58-
*/
5954
public function isOptional(): bool
6055
{
6156
// If the cache can be filled at runtime,

Diff for: src/Command/Delivery/DebugCommand.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

@@ -56,9 +56,6 @@ public function __construct($clients, $configurations = [])
5656
);
5757
}
5858

59-
/**
60-
* {@inheritdoc}
61-
*/
6259
public function execute(InputInterface $input, OutputInterface $output): int
6360
{
6461
$io = new SymfonyStyle($input, $output);

Diff for: src/Command/Delivery/InfoCommand.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

@@ -34,9 +34,6 @@ public function __construct(array $info)
3434
$this->info = $info;
3535
}
3636

37-
/**
38-
* {@inheritdoc}
39-
*/
4037
protected function execute(InputInterface $input, OutputInterface $output): int
4138
{
4239
$io = new SymfonyStyle($input, $output);

Diff for: src/ContentfulBundle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: src/Controller/Delivery/ProfilerController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: src/DataCollector/Delivery/ClientDataCollector.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

@@ -46,9 +46,6 @@ public function __construct($clients = [], $configurations = [])
4646
}
4747
}
4848

49-
/**
50-
* {@inheritdoc}
51-
*/
5249
public function collect(Request $request, Response $response, $exception = null)
5350
{
5451
$messages = [];
@@ -96,9 +93,6 @@ public function getName(): string
9693
return 'contentful';
9794
}
9895

99-
/**
100-
* {@inheritdoc}
101-
*/
10296
public function reset()
10397
{
10498
$this->data = [

Diff for: src/DependencyInjection/ClientFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: src/DependencyInjection/Compiler/ProfilerControllerPass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: src/DependencyInjection/Configuration.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

@@ -37,9 +37,6 @@ public function __construct($debug)
3737
$this->builder = new NodeBuilder();
3838
}
3939

40-
/**
41-
* {@inheritdoc}
42-
*/
4340
public function getConfigTreeBuilder(): TreeBuilder
4441
{
4542
$treeBuilder = new TreeBuilder('contentful', 'array', $this->builder);

Diff for: src/DependencyInjection/ContentfulExtension.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

@@ -30,9 +30,6 @@
3030

3131
class ContentfulExtension extends Extension
3232
{
33-
/**
34-
* {@inheritdoc}
35-
*/
3633
public function load(array $configs, ContainerBuilder $container)
3734
{
3835
$configs = $this->processConfiguration(

Diff for: src/DependencyInjection/SymfonyIntegration.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

@@ -15,17 +15,11 @@
1515

1616
class SymfonyIntegration implements IntegrationInterface
1717
{
18-
/**
19-
* {@inheritdoc}
20-
*/
2118
public function getIntegrationPackageName(): string
2219
{
2320
return 'contentful/contentful-bundle';
2421
}
2522

26-
/**
27-
* {@inheritdoc}
28-
*/
2923
public function getIntegrationName(): string
3024
{
3125
return 'contentful.symfony';

Diff for: tests/TestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: tests/Unit/Cache/Delivery/CacheClearerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: tests/Unit/Cache/Delivery/CacheWarmerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: tests/Unit/Command/Delivery/DebugCommandTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: tests/Unit/Command/Delivery/InfoCommandTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: tests/Unit/ContentfulBundleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: tests/Unit/DataCollector/Delivery/ClientDataCollectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: tests/Unit/DependencyInjection/ClientFactoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: tests/Unit/DependencyInjection/Compiler/ProfilerControllerPassTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: tests/Unit/DependencyInjection/ContentfulExtensionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

Diff for: tests/Unit/DependencyInjection/SymfonyIntegrationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of the contentful/contentful-bundle package.
55
*
6-
* @copyright 2015-2023 Contentful GmbH
6+
* @copyright 2015-2024 Contentful GmbH
77
* @license MIT
88
*/
99

0 commit comments

Comments
 (0)