From 09979d2aebc7612a7b0f5babb30af2b114ecf852 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Thu, 4 Jan 2018 13:09:05 +0100 Subject: [PATCH] Minor - format code --- .flintci.yml | 2 +- .scrutinizer.yml | 2 +- .travis.yml | 2 +- src/Chash/Command/Chash/SelfUpdateCommand.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.flintci.yml b/.flintci.yml index 5f77505..8405011 100644 --- a/.flintci.yml +++ b/.flintci.yml @@ -1,3 +1,3 @@ services: phpcsfixer: true - yamllint: true \ No newline at end of file + yamllint: true diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 6e7a39c..e490ea2 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,2 +1,2 @@ checks: - php: true \ No newline at end of file + php: true diff --git a/.travis.yml b/.travis.yml index 3ddaf1e..43c73da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,5 +6,5 @@ php: - 7.1 - 7.2 before_script: - - composer install --dev --no-interaction + - composer install --dev --no-interaction script: vendor/bin/phpunit diff --git a/src/Chash/Command/Chash/SelfUpdateCommand.php b/src/Chash/Command/Chash/SelfUpdateCommand.php index 4d9d95c..d530d52 100644 --- a/src/Chash/Command/Chash/SelfUpdateCommand.php +++ b/src/Chash/Command/Chash/SelfUpdateCommand.php @@ -21,7 +21,7 @@ protected function configure() { $this ->setName('chash:self-update') - ->setAliases(array('selfupdate')) + ->setAliases(['selfupdate']) ->addOption('temp-folder', null, InputOption::VALUE_OPTIONAL, 'The temp folder', '/tmp') ->addOption('src-destination', null, InputOption::VALUE_OPTIONAL, 'The destination folder') ->setDescription('Updates chash to the latest version'); @@ -84,7 +84,7 @@ protected function execute(Console\Input\InputInterface $input, Console\Output\O return 0; } $fs = new \Symfony\Component\Filesystem\Filesystem(); - $fs->mirror($folderPath.'/chash-master', $destinationFolder, null, array('override' => true)); + $fs->mirror($folderPath.'/chash-master', $destinationFolder, null, ['override' => true]); $output->writeln('Copying '.$folderPath.'/chash-master to '.$destinationFolder); } }