Skip to content

Commit 81cd8f1

Browse files
Merge pull request #57 from matomo-org/commands-use-constant
Started using constants instead of hardcoded value for return
2 parents d71f212 + af8670e commit 81cd8f1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Commands/WarmDeviceDetectorCache.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7272

7373
if (empty($numEntriesToCache)) {
7474
$output->writeln('No entries are supposed to be cached. Stopping command');
75-
return 0;
75+
return self::SUCCESS;
7676
}
7777

7878
if (!file_exists($path)) {
@@ -134,7 +134,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
134134

135135
if (empty($userAgents)) {
136136
$output->writeln('No user agents found');
137-
return 0;
137+
return self::SUCCESS;
138138
}
139139

140140
$this->log($count . ' user agents found', $output);
@@ -183,6 +183,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
183183
$output->writeln('done deleting files');
184184
}
185185

186-
return 0;
186+
return self::SUCCESS;
187187
}
188188
}

0 commit comments

Comments
 (0)