From 8e4e166ac47f4a5fc371b9655be54af882476ceb Mon Sep 17 00:00:00 2001 From: DACHCOM Bot Date: Wed, 27 Nov 2024 19:56:22 +0000 Subject: [PATCH] [CS] Refactor --- .../ConnectorDefinitionInterface.php | 11 ++++++++++ .../ConnectorEngineConfigurationInterface.php | 11 ++++++++++ src/Connector/ConnectorService.php | 11 ++++++++++ src/Connector/ConnectorServiceInterface.php | 11 ++++++++++ .../Facebook/ConnectorDefinition.php | 13 +++++++++++- .../Facebook/EngineConfiguration.php | 13 +++++++++++- src/Connector/Facebook/FeedGenerator.php | 11 ++++++++++ .../Facebook/FeedTransformerDefinition.php | 11 ++++++++++ .../Facebook/ItemTransformerDefinition.php | 11 ++++++++++ src/Connector/Google/ConnectorDefinition.php | 11 ++++++++++ src/Connector/Google/FeedGenerator.php | 15 ++++++++++--- .../Google/ItemTransformerDefinition.php | 11 ++++++++++ src/Context/ContextService.php | 11 ++++++++++ src/Context/ContextServiceInterface.php | 12 +++++++++++ src/Context/ResolvedItem.php | 14 +++++++++++-- src/Context/ResolvedItemInterface.php | 11 ++++++++++ .../ContextItemsResolverInterface.php | 11 ++++++++++ .../Resolver/DynamicRouteRequestResolver.php | 15 +++++++++++-- src/Context/Resolver/FeedResolver.php | 17 ++++++++++++--- .../Resolver/PimcoreObjectResolver.php | 17 ++++++++++++--- src/Context/Resolver/SeoQueueResolver.php | 11 ++++++++++ src/Controller/Admin/LogController.php | 11 ++++++++++ src/Controller/Admin/SettingsController.php | 13 +++++++++++- src/Controller/FacebookController.php | 15 ++++++++++--- src/Controller/ProviderController.php | 11 ++++++++++ src/CoreExtension/JobConnectorContext.php | 21 +++++++++++-------- .../Compiler/ConnectorDefinitionPass.php | 11 ++++++++++ .../Compiler/ConnectorEnvironmentPass.php | 11 ++++++++++ .../Compiler/ContextItemsResolverPass.php | 11 ++++++++++ src/DependencyInjection/Configuration.php | 11 ++++++++++ src/DependencyInjection/JobsExtension.php | 17 ++++++++++++--- src/EventListener/Admin/AssetListener.php | 11 ++++++++++ .../Maintenance/CleanUpLogsTask.php | 11 ++++++++++ src/Feed/FeedGeneratorInterface.php | 11 ++++++++++ src/JobsBundle.php | 11 ++++++++++ src/Manager/ConnectorContextManager.php | 11 ++++++++++ .../ConnectorContextManagerInterface.php | 11 ++++++++++ src/Manager/ConnectorManager.php | 15 +++++++++++-- src/Manager/ConnectorManagerInterface.php | 11 ++++++++++ src/Manager/ContextDefinitionManager.php | 13 +++++++++++- .../ContextDefinitionManagerInterface.php | 11 ++++++++++ src/Manager/LogManager.php | 13 +++++++++++- src/Manager/LogManagerInterface.php | 13 +++++++++++- src/Model/ConnectorContextItem.php | 11 ++++++++++ src/Model/ConnectorContextItemInterface.php | 11 ++++++++++ src/Model/ConnectorEngine.php | 11 ++++++++++ src/Model/ConnectorEngineInterface.php | 11 ++++++++++ src/Model/ContextDefinition.php | 11 ++++++++++ src/Model/ContextDefinitionInterface.php | 11 ++++++++++ src/Model/LogEntry.php | 11 ++++++++++ src/Model/LogEntryInterface.php | 11 ++++++++++ src/Normalizer/EntityNormalizer.php | 11 ++++++++++ src/Registry/ConnectorDefinitionRegistry.php | 11 ++++++++++ .../ConnectorDefinitionRegistryInterface.php | 11 ++++++++++ src/Registry/ContextItemsResolverRegistry.php | 11 ++++++++++ .../ContextItemsResolverRegistryInterface.php | 11 ++++++++++ .../ConnectorContextItemRepository.php | 12 ++++++++++- ...onnectorContextItemRepositoryInterface.php | 11 ++++++++++ src/Repository/ConnectorEngineRepository.php | 11 ++++++++++ .../ConnectorEngineRepositoryInterface.php | 11 ++++++++++ .../ContextDefinitionRepository.php | 11 ++++++++++ .../ContextDefinitionRepositoryInterface.php | 11 ++++++++++ src/Repository/LogRepository.php | 11 ++++++++++ src/Repository/LogRepositoryInterface.php | 12 ++++++++++- src/Seo/Extractor/GoogleForJobsExtractor.php | 15 +++++++++++-- .../ResourceProcessor/GoogleJobsProcessor.php | 21 ++++++++++++++----- src/Service/EnvironmentService.php | 12 ++++++++++- src/Service/EnvironmentServiceInterface.php | 11 ++++++++++ src/Service/LinkGeneratorService.php | 12 ++++++++++- src/Service/LinkGeneratorServiceInterface.php | 11 ++++++++++ src/Tool/FeedIdHelper.php | 11 ++++++++++ src/Tool/Install.php | 11 ++++++++++ .../ItemTransformerDefinitionInterface.php | 11 ++++++++++ src/Transformer/ItemTransformerInterface.php | 11 ++++++++++ 74 files changed, 845 insertions(+), 47 deletions(-) diff --git a/src/Connector/ConnectorDefinitionInterface.php b/src/Connector/ConnectorDefinitionInterface.php index ddb74bd1..e5c79b62 100644 --- a/src/Connector/ConnectorDefinitionInterface.php +++ b/src/Connector/ConnectorDefinitionInterface.php @@ -1,5 +1,16 @@ $this->getAppId(), diff --git a/src/Connector/Facebook/FeedGenerator.php b/src/Connector/Facebook/FeedGenerator.php index 36cff602..16186d9c 100644 --- a/src/Connector/Facebook/FeedGenerator.php +++ b/src/Connector/Facebook/FeedGenerator.php @@ -1,5 +1,16 @@ + * * @throws \Exception */ public function resolveContextItems(string $contextName, ConnectorDefinitionInterface $connectorDefinition, array $contextParameter): array; diff --git a/src/Context/ResolvedItem.php b/src/Context/ResolvedItem.php index 66ada7c8..0a4d084d 100644 --- a/src/Context/ResolvedItem.php +++ b/src/Context/ResolvedItem.php @@ -1,5 +1,16 @@ hash_hmac('sha256', $engineConfiguration->getAccessToken(), $engineConfiguration->getAppSecret()), ], 'form_params' => $params - ], $params)); return json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); @@ -298,5 +308,4 @@ protected function generateRedirectUri(string $token): string { return $this->generateUrl('jobs_facebook_connect_check', ['token' => $token], UrlGeneratorInterface::ABSOLUTE_URL); } - } diff --git a/src/Controller/ProviderController.php b/src/Controller/ProviderController.php index dd95f4dd..188740ca 100644 --- a/src/Controller/ProviderController.php +++ b/src/Controller/ProviderController.php @@ -1,5 +1,16 @@ setId(null); diff --git a/src/DependencyInjection/Compiler/ConnectorDefinitionPass.php b/src/DependencyInjection/Compiler/ConnectorDefinitionPass.php index 82be78b7..af3ee205 100644 --- a/src/DependencyInjection/Compiler/ConnectorDefinitionPass.php +++ b/src/DependencyInjection/Compiler/ConnectorDefinitionPass.php @@ -1,5 +1,16 @@ getParameter('kernel.bundles'); - /** @phpstan-ignore-next-line */ + /* @phpstan-ignore-next-line */ if (array_key_exists('SeoBundle', $bundles) && array_key_exists('SchemaBundle', $bundles)) { $container->setParameter('jobs.connector.google.dependencies_installed', true); $loader->load('external/seo.yaml'); diff --git a/src/EventListener/Admin/AssetListener.php b/src/EventListener/Admin/AssetListener.php index 6c08becd..f6a5b3e5 100644 --- a/src/EventListener/Admin/AssetListener.php +++ b/src/EventListener/Admin/AssetListener.php @@ -1,5 +1,16 @@ repository->findBy(['objectId' => $objectId, 'connectorEngine' => $connectorEngineId]); } - } diff --git a/src/Repository/ConnectorContextItemRepositoryInterface.php b/src/Repository/ConnectorContextItemRepositoryInterface.php index a6a298e0..c3d156c1 100644 --- a/src/Repository/ConnectorContextItemRepositoryInterface.php +++ b/src/Repository/ConnectorContextItemRepositoryInterface.php @@ -1,5 +1,16 @@ getContextDefinition(); $context = []; diff --git a/src/Service/LinkGeneratorServiceInterface.php b/src/Service/LinkGeneratorServiceInterface.php index 7db61e5d..42539b74 100644 --- a/src/Service/LinkGeneratorServiceInterface.php +++ b/src/Service/LinkGeneratorServiceInterface.php @@ -1,5 +1,16 @@