Skip to content

Commit

Permalink
Ran php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebb767 committed Feb 29, 2024
1 parent afcea62 commit d0f7fba
Show file tree
Hide file tree
Showing 26 changed files with 27 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
command: sudo composer self-update && composer install -n --prefer-dist
- run:
name: Install php-cs-fixer
command: mkdir -p tools/php-cs-fixer && composer require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer
command: mkdir -p tools/php-cs-fixer && composer require --dev --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer
- run:
name: Run syntax test
command: tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation -v
Expand Down
2 changes: 1 addition & 1 deletion scripts/create-redirector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion scripts/php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
5 changes: 1 addition & 4 deletions src/Cache/Delivery/CacheClearer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

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

/**
* {@inheritdoc}
*/
public function clear($cacheDir)
{
$this->clearer->clear();
Expand Down
9 changes: 2 additions & 7 deletions src/Cache/Delivery/CacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down Expand Up @@ -43,19 +43,14 @@ public function __construct(Client $client, CacheItemPoolInterface $cacheItemPoo
$this->cacheContent = $cacheContent;
}

/**
* {@inheritdoc}
*/
public function warmUp($cacheDir): array
{
$this->warmer->warmUp($this->cacheContent);

// we don't have any directories to pre-load, so we can simply return an empty array.
return [];
}

/**
* {@inheritdoc}
*/
public function isOptional(): bool
{
// If the cache can be filled at runtime,
Expand Down
5 changes: 1 addition & 4 deletions src/Command/Delivery/DebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down Expand Up @@ -56,9 +56,6 @@ public function __construct($clients, $configurations = [])
);
}

/**
* {@inheritdoc}
*/
public function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
Expand Down
5 changes: 1 addition & 4 deletions src/Command/Delivery/InfoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down Expand Up @@ -34,9 +34,6 @@ public function __construct(array $info)
$this->info = $info;
}

/**
* {@inheritdoc}
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
Expand Down
2 changes: 1 addition & 1 deletion src/ContentfulBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Delivery/ProfilerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
8 changes: 1 addition & 7 deletions src/DataCollector/Delivery/ClientDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down Expand Up @@ -46,9 +46,6 @@ public function __construct($clients = [], $configurations = [])
}
}

/**
* {@inheritdoc}
*/
public function collect(Request $request, Response $response, $exception = null)
{
$messages = [];
Expand Down Expand Up @@ -96,9 +93,6 @@ public function getName(): string
return 'contentful';
}

/**
* {@inheritdoc}
*/
public function reset()
{
$this->data = [
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
5 changes: 1 addition & 4 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down Expand Up @@ -37,9 +37,6 @@ public function __construct($debug)
$this->builder = new NodeBuilder();
}

/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('contentful', 'array', $this->builder);
Expand Down
5 changes: 1 addition & 4 deletions src/DependencyInjection/ContentfulExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand All @@ -30,9 +30,6 @@

class ContentfulExtension extends Extension
{
/**
* {@inheritdoc}
*/
public function load(array $configs, ContainerBuilder $container)
{
$configs = $this->processConfiguration(
Expand Down
8 changes: 1 addition & 7 deletions src/DependencyInjection/SymfonyIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand All @@ -15,17 +15,11 @@

class SymfonyIntegration implements IntegrationInterface
{
/**
* {@inheritdoc}
*/
public function getIntegrationPackageName(): string
{
return 'contentful/contentful-bundle';
}

/**
* {@inheritdoc}
*/
public function getIntegrationName(): string
{
return 'contentful.symfony';
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Cache/Delivery/CacheClearerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Cache/Delivery/CacheWarmerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Command/Delivery/DebugCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Command/Delivery/InfoCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/ContentfulBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/DependencyInjection/ClientFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/DependencyInjection/ContentfulExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/DependencyInjection/SymfonyIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the contentful/contentful-bundle package.
*
* @copyright 2015-2023 Contentful GmbH
* @copyright 2015-2024 Contentful GmbH
* @license MIT
*/

Expand Down

0 comments on commit d0f7fba

Please sign in to comment.