Skip to content

Fix codestyle after uptream release of cs-fixer #344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Catalogue/CatalogueCounter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
class CatalogueCounter
{
/**
* @param MessageCatalogueInterface $catalogue
*
* @return int
*/
public function getNumberOfDefinedMessages(MessageCatalogueInterface $catalogue)
Expand All @@ -38,8 +36,6 @@ public function getNumberOfDefinedMessages(MessageCatalogueInterface $catalogue)
}

/**
* @param MessageCatalogueInterface $catalogue
*
* @return array
*/
public function getCatalogueStatistics(MessageCatalogueInterface $catalogue)
Expand Down
3 changes: 0 additions & 3 deletions Catalogue/CatalogueFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ public function __construct($reader)
/**
* load any existing messages from the translation files.
*
* @param Configuration $config
* @param array $locales
*
* @return MessageCatalogue[]
*/
public function getCatalogues(Configuration $config, array $locales = [])
Expand Down
1 change: 0 additions & 1 deletion Catalogue/CatalogueManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ public function getTranslations($domain, $key)
}

/**
* @param MessageCatalogueInterface $catalogue
* @param $locale
* @param $domain
* @param $key
Expand Down
4 changes: 1 addition & 3 deletions Catalogue/CatalogueWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ final class CatalogueWriter
private $defaultLocale;

/**
* @param TranslationWriter $writer
* @param string $defaultLocale
* @param string $defaultLocale
*/
public function __construct(TranslationWriter $writer, $defaultLocale)
{
Expand All @@ -51,7 +50,6 @@ public function __construct(TranslationWriter $writer, $defaultLocale)
}

/**
* @param Configuration $config
* @param MessageCatalogue[] $catalogues
*/
public function writeCatalogues(Configuration $config, array $catalogues)
Expand Down
6 changes: 0 additions & 6 deletions Command/DeleteObsoleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ class DeleteObsoleteCommand extends Command
*/
private $catalogueFetcher;

/**
* @param StorageManager $storageManager
* @param ConfigurationManager $configurationManager
* @param CatalogueManager $catalogueManager
* @param CatalogueFetcher $catalogueFetcher
*/
public function __construct(
StorageManager $storageManager,
ConfigurationManager $configurationManager,
Expand Down
5 changes: 0 additions & 5 deletions Command/DownloadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ class DownloadCommand extends Command
*/
private $cacheCleaner;

/**
* @param StorageManager $storageManager
* @param ConfigurationManager $configurationManager
* @param CacheClearer $cacheCleaner
*/
public function __construct(
StorageManager $storageManager,
ConfigurationManager $configurationManager,
Expand Down
9 changes: 0 additions & 9 deletions Command/ExtractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ class ExtractCommand extends Command
*/
private $configurationManager;

/**
* @param CatalogueFetcher $catalogueFetcher
* @param CatalogueWriter $catalogueWriter
* @param CatalogueCounter $catalogueCounter
* @param Importer $importer
* @param ConfigurationManager $configurationManager
*/
public function __construct(
CatalogueFetcher $catalogueFetcher,
CatalogueWriter $catalogueWriter,
Expand Down Expand Up @@ -141,8 +134,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

/**
* @param Configuration $config
*
* @return Finder
*/
private function getConfiguredFinder(Configuration $config)
Expand Down
5 changes: 0 additions & 5 deletions Command/StatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ class StatusCommand extends Command
*/
private $catalogueFetcher;

/**
* @param CatalogueCounter $catalogueCounter
* @param ConfigurationManager $configurationManager
* @param CatalogueFetcher $catalogueFetcher
*/
public function __construct(
CatalogueCounter $catalogueCounter,
ConfigurationManager $configurationManager,
Expand Down
3 changes: 0 additions & 3 deletions Command/SyncCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ class SyncCommand extends Command

protected static $defaultName = 'translation:sync';

/**
* @param StorageManager $storageManager
*/
public function __construct(StorageManager $storageManager)
{
$this->storageManager = $storageManager;
Expand Down
9 changes: 3 additions & 6 deletions Controller/EditInPlaceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@
class EditInPlaceController extends Controller
{
/**
* @param Request $request
* @param string $configName
* @param string $locale
* @param string $configName
* @param string $locale
*
* @return Response
*/
Expand All @@ -54,9 +53,7 @@ public function editAction(Request $request, $configName, $locale)
/**
* Get and validate messages from the request.
*
* @param Request $request
* @param string $locale
* @param array $validationGroups
* @param string $locale
*
* @return MessageInterface[]
*
Expand Down
18 changes: 6 additions & 12 deletions Controller/SymfonyProfilerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
class SymfonyProfilerController extends Controller
{
/**
* @param Request $request
* @param string $token
* @param string $token
*
* @return Response
*/
Expand Down Expand Up @@ -62,8 +61,7 @@ public function editAction(Request $request, $token)
}

/**
* @param Request $request
* @param string $token
* @param string $token
*
* @return Response
*/
Expand All @@ -86,8 +84,7 @@ public function syncAction(Request $request, $token)
}

/**
* @param Request $request
* @param $token
* @param $token
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse|Response
*/
Expand All @@ -109,8 +106,7 @@ public function syncAllAction(Request $request, $token)
*
* @author Damien Alexandre (damienalexandre)
*
* @param Request $request
* @param string $token
* @param string $token
*
* @return Response
*/
Expand All @@ -137,8 +133,7 @@ public function createAssetsAction(Request $request, $token)
}

/**
* @param Request $request
* @param string $token
* @param string $token
*
* @return SfProfilerMessage
*/
Expand Down Expand Up @@ -174,8 +169,7 @@ private function getMessage(Request $request, $token)
}

/**
* @param Request $request
* @param string $token
* @param string $token
*
* @return MessageInterface[]
*/
Expand Down
33 changes: 10 additions & 23 deletions Controller/WebUIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@ public function showAction($configName, $locale, $domain)
}

/**
* @param Request $request
* @param string $configName
* @param string $locale
* @param string $domain
* @param string $configName
* @param string $locale
* @param string $domain
*
* @return Response
*/
Expand All @@ -153,12 +152,7 @@ public function createAction(Request $request, $configName, $locale, $domain)
try {
$storage->create($message);
} catch (StorageException $e) {
throw new BadRequestHttpException(\sprintf(
'Key "%s" does already exist for "%s" on domain "%s".',
$message->getKey(),
$locale,
$domain
), $e);
throw new BadRequestHttpException(\sprintf('Key "%s" does already exist for "%s" on domain "%s".', $message->getKey(), $locale, $domain), $e);
}

return $this->render('@Translation/WebUI/create.html.twig', [
Expand All @@ -167,10 +161,9 @@ public function createAction(Request $request, $configName, $locale, $domain)
}

/**
* @param Request $request
* @param string $configName
* @param string $locale
* @param string $domain
* @param string $configName
* @param string $locale
* @param string $domain
*
* @return Response
*/
Expand All @@ -197,10 +190,9 @@ public function editAction(Request $request, $configName, $locale, $domain)
}

/**
* @param Request $request
* @param string $configName
* @param string $locale
* @param string $domain
* @param string $configName
* @param string $locale
* @param string $domain
*
* @return Response
*/
Expand All @@ -227,8 +219,6 @@ public function deleteAction(Request $request, $configName, $locale, $domain)
}

/**
* @param Request $request
*
* @return MessageInterface
*/
private function getMessageFromRequest(Request $request)
Expand Down Expand Up @@ -263,9 +253,6 @@ private function getLocale2LanguageMap()
}

/**
* @param MessageInterface $message
* @param array $validationGroups
*
* @throws MessageValidationException
*/
private function validateMessage(MessageInterface $message, array $validationGroups)
Expand Down
3 changes: 0 additions & 3 deletions DependencyInjection/CompilerPass/ExtractorPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public function process(ContainerBuilder $container)
}

/**
* @param ContainerBuilder $container
*
* @return array type => Definition[]
*/
private function getExtractors(ContainerBuilder $container)
Expand Down Expand Up @@ -57,7 +55,6 @@ private function getExtractors(ContainerBuilder $container)
}

/**
* @param ContainerBuilder $container
* @param $extractors
*/
private function addVisitors(ContainerBuilder $container, $extractors)
Expand Down
2 changes: 0 additions & 2 deletions DependencyInjection/CompilerPass/StoragePass.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ public function process(ContainerBuilder $container)
}

/**
* @param ContainerBuilder $container
*
* @return Definition
*/
private function getDefinition(ContainerBuilder $container, $name)
Expand Down
3 changes: 0 additions & 3 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ public function getConfigTreeBuilder()
return $treeBuilder;
}

/**
* @param ArrayNodeDefinition $root
*/
private function configsNode(ArrayNodeDefinition $root)
{
$container = $this->container;
Expand Down
15 changes: 0 additions & 15 deletions DependencyInjection/TranslationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ public function load(array $configs, ContainerBuilder $container)

/**
* Handle the config node to prepare the config manager.
*
* @param ContainerBuilder $container
* @param array $config
*/
private function handleConfigNode(ContainerBuilder $container, array $config)
{
Expand Down Expand Up @@ -151,9 +148,6 @@ private function handleConfigNode(ContainerBuilder $container, array $config)

/**
* Handle config for WebUI.
*
* @param ContainerBuilder $container
* @param array $config
*/
private function enableWebUi(ContainerBuilder $container, array $config)
{
Expand All @@ -175,9 +169,6 @@ private function enableWebUi(ContainerBuilder $container, array $config)

/**
* Handle config for EditInPlace.
*
* @param ContainerBuilder $container
* @param array $config
*/
private function enableEditInPlace(ContainerBuilder $container, array $config)
{
Expand All @@ -203,9 +194,6 @@ private function enableEditInPlace(ContainerBuilder $container, array $config)

/**
* Handle config for Symfony Profiler.
*
* @param ContainerBuilder $container
* @param array $config
*/
private function enableSymfonyProfiler(ContainerBuilder $container, array $config)
{
Expand All @@ -214,9 +202,6 @@ private function enableSymfonyProfiler(ContainerBuilder $container, array $confi

/**
* Handle config for fallback auto translate.
*
* @param ContainerBuilder $container
* @param array $config
*/
private function enableFallbackAutoTranslator(ContainerBuilder $container, array $config)
{
Expand Down
2 changes: 0 additions & 2 deletions EditInPlace/ActivatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ interface ActivatorInterface
/**
* Tells if the Edit In Place mode is enabled for this request.
*
* @param Request|null $request
*
* @return bool
*/
public function checkRequest(Request $request = null);
Expand Down
1 change: 0 additions & 1 deletion EventListener/AutoAddMissingTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ final class AutoAddMissingTranslations

/**
* @param DataCollectorTranslator $translator
* @param StorageService $storage
*/
public function __construct(StorageService $storage, DataCollectorTranslator $translator = null)
{
Expand Down
Loading