Skip to content

Commit 8aa3ba3

Browse files
committed
Merge pull request #32 from Nyholm/insight
fixes #31
2 parents 8befd0a + b5c4796 commit 8aa3ba3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ script:
3737
- php vendor/bin/phpunit
3838

3939
after_success:
40-
- codecov
40+
- codecov

src/Command/CacheFlushCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
class CacheFlushCommand extends ContainerAwareCommand
2828
{
29-
const validTypes = ['all', 'session', 'router', 'doctrine', 'symfony', 'provider'];
29+
const VALID_TYPES = ['all', 'session', 'router', 'doctrine', 'symfony', 'provider'];
3030

3131
/**
3232
* {@inheritdoc}
@@ -35,7 +35,7 @@ protected function configure()
3535
{
3636
$this->setName('cache:flush');
3737
$this->setDescription('Flushes the given cache');
38-
$this->addArgument('type', InputArgument::OPTIONAL, sprintf('Which type of cache do you want to clear? Valid types are: %s', implode(', ', self::validTypes)));
38+
$this->addArgument('type', InputArgument::OPTIONAL, sprintf('Which type of cache do you want to clear? Valid types are: %s', implode(', ', self::VALID_TYPES)));
3939
$this->addArgument('service', InputArgument::OPTIONAL, 'If using type "provider" you must give a service id for the cache you want to clear.');
4040
$this->setHelp(<<<EOD
4141
@@ -149,12 +149,12 @@ protected function verifyArguments(InputInterface $input, OutputInterface $outpu
149149
$type = 'all';
150150
}
151151

152-
if (!in_array($type, self::validTypes)) {
152+
if (!in_array($type, self::VALID_TYPES)) {
153153
$output->writeln(
154154
sprintf(
155155
'<error>Type "%s" does not exist. Valid type are: %s.</error>',
156156
$type,
157-
implode(', ', self::validTypes)
157+
implode(', ', self::VALID_TYPES)
158158
)
159159
);
160160

0 commit comments

Comments
 (0)