Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-26 01:06:53 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-01-26 13:35:42 +0300
commitc1e4f9f30563d5eda1718d716d631d6092cd4e28 (patch)
tree3bb7b6ef891cd80895d4c2c92252a4ccbc0c0cee /core/Command
parentfe7e726ab228e6ddde7cf1442de9d0db193334a1 (diff)
Use type casting instead of *val() method
It should be up to 6x faster Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Integrity/CheckApp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/Integrity/CheckApp.php b/core/Command/Integrity/CheckApp.php
index 3e4d8b9cba7..d0dfbcada3a 100644
--- a/core/Command/Integrity/CheckApp.php
+++ b/core/Command/Integrity/CheckApp.php
@@ -63,7 +63,7 @@ class CheckApp extends Base {
*/
protected function execute(InputInterface $input, OutputInterface $output) {
$appid = $input->getArgument('appid');
- $path = strval($input->getOption('path'));
+ $path = (string)$input->getOption('path');
$result = $this->checker->verifyAppSignature($appid, $path);
$this->writeArrayInOutputFormat($input, $output, $result);
if (count($result)>0){