diff options
Diffstat (limited to 'core/Command/Maintenance/Mimetype/UpdateJS.php')
-rw-r--r-- | core/Command/Maintenance/Mimetype/UpdateJS.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Command/Maintenance/Mimetype/UpdateJS.php b/core/Command/Maintenance/Mimetype/UpdateJS.php index fd5f17ef7bb..042b4d5d62f 100644 --- a/core/Command/Maintenance/Mimetype/UpdateJS.php +++ b/core/Command/Maintenance/Mimetype/UpdateJS.php @@ -2,6 +2,7 @@ /** * @copyright Copyright (c) 2016, ownCloud, Inc. * + * @author Joas Schilling <coding@schilljs.com> * @author Robin McCorkell <robin@mccorkell.me.uk> * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Xheni Myrtaj <myrtajxheni@gmail.com> @@ -21,7 +22,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ - namespace OC\Core\Command\Maintenance\Mimetype; use OCP\Files\IMimeTypeDetector; @@ -48,7 +48,7 @@ class UpdateJS extends Command { ->setDescription('Update mimetypelist.js'); } - protected function execute(InputInterface $input, OutputInterface $output) { + protected function execute(InputInterface $input, OutputInterface $output): int { // Fetch all the aliases $aliases = $this->mimetypeDetector->getAllAliases(); @@ -57,5 +57,6 @@ class UpdateJS extends Command { file_put_contents(\OC::$SERVERROOT.'/core/js/mimetypelist.js', $generatedMimetypeFile->generateFile($aliases)); $output->writeln('<info>mimetypelist.js is updated'); + return 0; } } |