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 02:02:03 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-01-26 02:02:03 +0300
commit0a56d2185e79caf81f5160cb8503955d9c3108a6 (patch)
treec551f9f5befbe730e8b510217161f77db97dd250 /core/Command
parentb9bbb894f8b01e000bb5e3a8a82db7bebad3ea00 (diff)
Return value immediately instead of assigning to a one-time variable
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Config/Import.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/Command/Config/Import.php b/core/Command/Config/Import.php
index 4a8db1c9656..b6aa6e3411d 100644
--- a/core/Command/Config/Import.php
+++ b/core/Command/Config/Import.php
@@ -113,8 +113,7 @@ class Import extends Command implements CompletionAwareInterface {
* @return string
*/
protected function getArrayFromFile($importFile) {
- $content = file_get_contents($importFile);
- return $content;
+ return file_get_contents($importFile);
}
/**