From 3d5aba86bb170ba00a4d97fdddc53cad1dcee2b0 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Tue, 3 Jan 2017 11:37:06 +0100 Subject: [PATCH 1/2] Scrutinizer fixes --- Command/DeleteObsoleteCommand.php | 2 +- Command/ExtractCommand.php | 2 -- Service/StorageService.php | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Command/DeleteObsoleteCommand.php b/Command/DeleteObsoleteCommand.php index 4ab40129..b0643406 100644 --- a/Command/DeleteObsoleteCommand.php +++ b/Command/DeleteObsoleteCommand.php @@ -37,7 +37,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $container = $this->getContainer(); $configName = $input->getArgument('configuration'); $locales = []; - if (null !== $inputLocale = $input->getArgument('locale', null)) { + if (null !== $inputLocale = $input->getArgument('locale')) { $locales = [$inputLocale]; } diff --git a/Command/ExtractCommand.php b/Command/ExtractCommand.php index 070072ee..fbef1dd7 100644 --- a/Command/ExtractCommand.php +++ b/Command/ExtractCommand.php @@ -65,8 +65,6 @@ protected function execute(InputInterface $input, OutputInterface $output) */ private function getConfiguredFinder(Configuration $config) { - // 'dirs', 'excluded_dirs', 'excluded_names' - $finder = new Finder(); $finder->in($config->getDirs()); diff --git a/Service/StorageService.php b/Service/StorageService.php index 5f18968f..749fb519 100644 --- a/Service/StorageService.php +++ b/Service/StorageService.php @@ -277,7 +277,7 @@ public function addLocalStorage(Storage $localStorage) } /** - * @param Storage $remoteStorages + * @param Storage $remoteStorage * * @return StorageService */ From 6d31cba5da8f7a64bd644e32a1dd7aa800681945 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Tue, 3 Jan 2017 11:44:11 +0100 Subject: [PATCH 2/2] Added badge --- Readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Readme.md b/Readme.md index 8b962125..26b34c76 100644 --- a/Readme.md +++ b/Readme.md @@ -4,6 +4,7 @@ [![Build Status](https://img.shields.io/travis/php-translation/symfony-bundle.svg?style=flat-square)](https://travis-ci.org/php-translation/symfony-bundle) [![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-translation/symfony-bundle.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-translation/symfony-bundle) [![Quality Score](https://img.shields.io/scrutinizer/g/php-translation/symfony-bundle.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-translation/symfony-bundle) +[![SensioLabsInsight](https://insight.sensiolabs.com/projects/c289ebe2-41c4-429f-afba-de2f905b9bdb/mini.png)](https://insight.sensiolabs.com/projects/c289ebe2-41c4-429f-afba-de2f905b9bdb) [![Total Downloads](https://img.shields.io/packagist/dt/php-translation/symfony-bundle.svg?style=flat-square)](https://packagist.org/packages/php-translation/symfony-bundle) **Symfony integration for PHP Translation**