aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 16:05:56 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 16:05:56 +0200
commit42625a46be495ea1c60ac8fe8e13946fd9ed9732 (patch)
tree1b52fc65b8a5888f13f48226b2cb6672456c0b55 /lib/private
parentc56a273b39186c509c57ef6bec221d3c4e3d81d3 (diff)
downloadnextcloud-server-42625a46be495ea1c60ac8fe8e13946fd9ed9732.tar.gz
nextcloud-server-42625a46be495ea1c60ac8fe8e13946fd9ed9732.zip
Remove spaces after method or function call
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Config.php6
-rw-r--r--lib/private/Files/View.php2
-rw-r--r--lib/private/legacy/OC_Template.php8
-rw-r--r--lib/private/legacy/OC_Util.php8
4 files changed, 12 insertions, 12 deletions
diff --git a/lib/private/Config.php b/lib/private/Config.php
index d2ddab5069a..0c5a9b0320d 100644
--- a/lib/private/Config.php
+++ b/lib/private/Config.php
@@ -239,14 +239,14 @@ class Config {
$content .= var_export($this->cache, true);
$content .= ";\n";
- touch ($this->configFilePath);
+ touch($this->configFilePath);
$filePointer = fopen($this->configFilePath, 'r+');
// Prevent others not to read the config
chmod($this->configFilePath, 0640);
// File does not exist, this can happen when doing a fresh install
- if(!is_resource ($filePointer)) {
+ if(!is_resource($filePointer)) {
throw new HintException(
"Can't write into config directory!",
'This can usually be fixed by giving the webserver write access to the config directory.');
@@ -258,7 +258,7 @@ class Config {
}
// Write the config and release the lock
- ftruncate ($filePointer, 0);
+ ftruncate($filePointer, 0);
fwrite($filePointer, $content);
fflush($filePointer);
flock($filePointer, LOCK_UN);
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index 567af4d23ab..881bf1a2126 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -670,7 +670,7 @@ class View {
list($storage, $internalPath) = $this->resolvePath($path);
$target = $storage->fopen($internalPath, 'w');
if ($target) {
- list (, $result) = \OC_Helper::streamCopy($data, $target);
+ list(, $result) = \OC_Helper::streamCopy($data, $target);
fclose($target);
fclose($data);
diff --git a/lib/private/legacy/OC_Template.php b/lib/private/legacy/OC_Template.php
index 99ad53fa08a..ad1d31d80f9 100644
--- a/lib/private/legacy/OC_Template.php
+++ b/lib/private/legacy/OC_Template.php
@@ -104,16 +104,16 @@ class OC_Template extends \OC\Template\Base {
//apps that started before the template initialization can load their own scripts/styles
//so to make sure this scripts/styles here are loaded first we use OC_Util::addScript() with $prepend=true
//meaning the last script/style in this list will be loaded first
- if (\OC::$server->getSystemConfig()->getValue ('installed', false) && $renderAs !== 'error' && !\OCP\Util::needUpgrade()) {
- if (\OC::$server->getConfig ()->getAppValue ( 'core', 'backgroundjobs_mode', 'ajax' ) == 'ajax') {
- OC_Util::addScript ( 'backgroundjobs', null, true );
+ if (\OC::$server->getSystemConfig()->getValue('installed', false) && $renderAs !== 'error' && !\OCP\Util::needUpgrade()) {
+ if (\OC::$server->getConfig()->getAppValue( 'core', 'backgroundjobs_mode', 'ajax' ) == 'ajax') {
+ OC_Util::addScript( 'backgroundjobs', null, true );
}
}
OC_Util::addStyle('css-variables', null, true);
OC_Util::addStyle('server', null, true);
OC_Util::addTranslations('core', null, true);
- if (\OC::$server->getSystemConfig()->getValue ('installed', false)) {
+ if (\OC::$server->getSystemConfig()->getValue('installed', false)) {
OC_Util::addStyle('search', 'results');
OC_Util::addScript('search', 'search', true);
OC_Util::addScript('search', 'searchprovider');
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php
index 5d2f8b8370e..378c3938317 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -590,7 +590,7 @@ class OC_Util {
// core js files need separate handling
if ($application !== 'core' && $file !== null) {
- self::addTranslations ( $application );
+ self::addTranslations( $application );
}
self::addExternalResource($application, $prepend, $path, "script");
}
@@ -667,7 +667,7 @@ class OC_Util {
if ($type === "style") {
if (!in_array($path, self::$styles)) {
if ($prepend === true) {
- array_unshift ( self::$styles, $path );
+ array_unshift( self::$styles, $path );
} else {
self::$styles[] = $path;
}
@@ -675,7 +675,7 @@ class OC_Util {
} elseif ($type === "script") {
if (!in_array($path, self::$scripts)) {
if ($prepend === true) {
- array_unshift ( self::$scripts, $path );
+ array_unshift( self::$scripts, $path );
} else {
self::$scripts [] = $path;
}
@@ -699,7 +699,7 @@ class OC_Util {
'text' => $text
];
if ($prepend === true) {
- array_unshift (self::$headers, $header);
+ array_unshift(self::$headers, $header);
} else {
self::$headers[] = $header;