Remove spaces after method or function call
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
c56a273b39
commit
42625a46be
|
@ -133,7 +133,7 @@ class RequestHandlerController extends Controller {
|
||||||
$shareType === null ||
|
$shareType === null ||
|
||||||
!is_array($protocol) ||
|
!is_array($protocol) ||
|
||||||
!isset($protocol['name']) ||
|
!isset($protocol['name']) ||
|
||||||
!isset ($protocol['options']) ||
|
!isset($protocol['options']) ||
|
||||||
!is_array($protocol['options']) ||
|
!is_array($protocol['options']) ||
|
||||||
!isset($protocol['options']['sharedSecret'])
|
!isset($protocol['options']['sharedSecret'])
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -135,7 +135,7 @@ class CachedSubscription extends \Sabre\CalDAV\Calendar {
|
||||||
}
|
}
|
||||||
|
|
||||||
$obj['acl'] = $this->getChildACL();
|
$obj['acl'] = $this->getChildACL();
|
||||||
return new CachedSubscriptionObject ($this->caldavBackend, $this->calendarInfo, $obj);
|
return new CachedSubscriptionObject($this->caldavBackend, $this->calendarInfo, $obj);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -512,7 +512,7 @@ class File extends Node implements IFile {
|
||||||
$bytesWritten = $chunk_handler->store($info['index'], $data);
|
$bytesWritten = $chunk_handler->store($info['index'], $data);
|
||||||
|
|
||||||
//detect aborted upload
|
//detect aborted upload
|
||||||
if (isset ($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'PUT') {
|
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'PUT') {
|
||||||
if (isset($_SERVER['CONTENT_LENGTH'])) {
|
if (isset($_SERVER['CONTENT_LENGTH'])) {
|
||||||
$expected = (int)$_SERVER['CONTENT_LENGTH'];
|
$expected = (int)$_SERVER['CONTENT_LENGTH'];
|
||||||
if ($bytesWritten !== $expected) {
|
if ($bytesWritten !== $expected) {
|
||||||
|
|
|
@ -62,7 +62,7 @@ class SystemTagsObjectMappingCollectionTest extends \Test\TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getNode() {
|
public function getNode() {
|
||||||
return new \OCA\DAV\SystemTag\SystemTagsObjectMappingCollection (
|
return new \OCA\DAV\SystemTag\SystemTagsObjectMappingCollection(
|
||||||
111,
|
111,
|
||||||
'files',
|
'files',
|
||||||
$this->user,
|
$this->user,
|
||||||
|
|
|
@ -121,7 +121,7 @@ class RecoveryController extends Controller {
|
||||||
|
|
||||||
if (empty($newPassword)) {
|
if (empty($newPassword)) {
|
||||||
$errorMessage = (string)$this->l->t('Please provide a new recovery password');
|
$errorMessage = (string)$this->l->t('Please provide a new recovery password');
|
||||||
return new DataResponse (['data' => ['message' => $errorMessage]], Http::STATUS_BAD_REQUEST);
|
return new DataResponse(['data' => ['message' => $errorMessage]], Http::STATUS_BAD_REQUEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($confirmPassword)) {
|
if (empty($confirmPassword)) {
|
||||||
|
|
|
@ -473,11 +473,11 @@ class EncryptAll {
|
||||||
protected function createMailBody($password) {
|
protected function createMailBody($password) {
|
||||||
|
|
||||||
$html = new \OC_Template("encryption", "mail", "");
|
$html = new \OC_Template("encryption", "mail", "");
|
||||||
$html->assign ('password', $password);
|
$html->assign('password', $password);
|
||||||
$htmlMail = $html->fetchPage();
|
$htmlMail = $html->fetchPage();
|
||||||
|
|
||||||
$plainText = new \OC_Template("encryption", "altmail", "");
|
$plainText = new \OC_Template("encryption", "altmail", "");
|
||||||
$plainText->assign ('password', $password);
|
$plainText->assign('password', $password);
|
||||||
$plainTextMail = $plainText->fetchPage();
|
$plainTextMail = $plainText->fetchPage();
|
||||||
|
|
||||||
return [$htmlMail, $plainTextMail];
|
return [$htmlMail, $plainTextMail];
|
||||||
|
|
|
@ -56,7 +56,7 @@ script('encryption', 'settings-personal');
|
||||||
id="userEnableRecoveryCheckbox"
|
id="userEnableRecoveryCheckbox"
|
||||||
name="userEnableRecovery"
|
name="userEnableRecovery"
|
||||||
value="1"
|
value="1"
|
||||||
<?php echo ( $_["recoveryEnabledForUser"] ? 'checked="checked"' : '' ); ?> />
|
<?php echo( $_["recoveryEnabledForUser"] ? 'checked="checked"' : '' ); ?> />
|
||||||
<label for="userEnableRecoveryCheckbox"><?php p( $l->t( "Enabled" ) ); ?></label>
|
<label for="userEnableRecoveryCheckbox"><?php p( $l->t( "Enabled" ) ); ?></label>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ script('encryption', 'settings-personal');
|
||||||
id="userDisableRecoveryCheckbox"
|
id="userDisableRecoveryCheckbox"
|
||||||
name="userEnableRecovery"
|
name="userEnableRecovery"
|
||||||
value="0"
|
value="0"
|
||||||
<?php echo ( $_["recoveryEnabledForUser"] === false ? 'checked="checked"' : '' ); ?> />
|
<?php echo( $_["recoveryEnabledForUser"] === false ? 'checked="checked"' : '' ); ?> />
|
||||||
<label for="userDisableRecoveryCheckbox"><?php p( $l->t( "Disabled" ) ); ?></label>
|
<label for="userDisableRecoveryCheckbox"><?php p( $l->t( "Disabled" ) ); ?></label>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -173,7 +173,7 @@ class Scan extends Base {
|
||||||
$inputPath = $input->getOption('path');
|
$inputPath = $input->getOption('path');
|
||||||
if ($inputPath) {
|
if ($inputPath) {
|
||||||
$inputPath = '/' . trim($inputPath, '/');
|
$inputPath = '/' . trim($inputPath, '/');
|
||||||
list (, $user,) = explode('/', $inputPath, 3);
|
list(, $user,) = explode('/', $inputPath, 3);
|
||||||
$users = [$user];
|
$users = [$user];
|
||||||
} else if ($input->getOption('all')) {
|
} else if ($input->getOption('all')) {
|
||||||
$users = $this->userManager->search('');
|
$users = $this->userManager->search('');
|
||||||
|
|
|
@ -62,7 +62,7 @@ class State extends Base {
|
||||||
|
|
||||||
$providerStates = $this->registry->getProviderStates($user);
|
$providerStates = $this->registry->getProviderStates($user);
|
||||||
$filtered = $this->filterEnabledDisabledUnknownProviders($providerStates);
|
$filtered = $this->filterEnabledDisabledUnknownProviders($providerStates);
|
||||||
list ($enabled, $disabled) = $filtered;
|
list($enabled, $disabled) = $filtered;
|
||||||
|
|
||||||
if (!empty($enabled)) {
|
if (!empty($enabled)) {
|
||||||
$output->writeln("Two-factor authentication is enabled for user $uid");
|
$output->writeln("Two-factor authentication is enabled for user $uid");
|
||||||
|
|
|
@ -134,7 +134,7 @@ class SetupController {
|
||||||
\OCP\Util::writeLog('core', 'Autoconfig file found, setting up Nextcloud…', ILogger::INFO);
|
\OCP\Util::writeLog('core', 'Autoconfig file found, setting up Nextcloud…', ILogger::INFO);
|
||||||
$AUTOCONFIG = [];
|
$AUTOCONFIG = [];
|
||||||
include $this->autoConfigFile;
|
include $this->autoConfigFile;
|
||||||
$post = array_merge ($post, $AUTOCONFIG);
|
$post = array_merge($post, $AUTOCONFIG);
|
||||||
}
|
}
|
||||||
|
|
||||||
$dbIsSet = isset($post['dbtype']);
|
$dbIsSet = isset($post['dbtype']);
|
||||||
|
|
|
@ -863,7 +863,7 @@ class OC {
|
||||||
|
|
||||||
private static function registerAppRestrictionsHooks() {
|
private static function registerAppRestrictionsHooks() {
|
||||||
$groupManager = self::$server->query(\OCP\IGroupManager::class);
|
$groupManager = self::$server->query(\OCP\IGroupManager::class);
|
||||||
$groupManager->listen ('\OC\Group', 'postDelete', function (\OCP\IGroup $group) {
|
$groupManager->listen('\OC\Group', 'postDelete', function (\OCP\IGroup $group) {
|
||||||
$appManager = self::$server->getAppManager();
|
$appManager = self::$server->getAppManager();
|
||||||
$apps = $appManager->getEnabledAppsForGroup($group);
|
$apps = $appManager->getEnabledAppsForGroup($group);
|
||||||
foreach ($apps as $appId) {
|
foreach ($apps as $appId) {
|
||||||
|
|
|
@ -239,14 +239,14 @@ class Config {
|
||||||
$content .= var_export($this->cache, true);
|
$content .= var_export($this->cache, true);
|
||||||
$content .= ";\n";
|
$content .= ";\n";
|
||||||
|
|
||||||
touch ($this->configFilePath);
|
touch($this->configFilePath);
|
||||||
$filePointer = fopen($this->configFilePath, 'r+');
|
$filePointer = fopen($this->configFilePath, 'r+');
|
||||||
|
|
||||||
// Prevent others not to read the config
|
// Prevent others not to read the config
|
||||||
chmod($this->configFilePath, 0640);
|
chmod($this->configFilePath, 0640);
|
||||||
|
|
||||||
// File does not exist, this can happen when doing a fresh install
|
// File does not exist, this can happen when doing a fresh install
|
||||||
if(!is_resource ($filePointer)) {
|
if(!is_resource($filePointer)) {
|
||||||
throw new HintException(
|
throw new HintException(
|
||||||
"Can't write into config directory!",
|
"Can't write into config directory!",
|
||||||
'This can usually be fixed by giving the webserver write access to the 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
|
// Write the config and release the lock
|
||||||
ftruncate ($filePointer, 0);
|
ftruncate($filePointer, 0);
|
||||||
fwrite($filePointer, $content);
|
fwrite($filePointer, $content);
|
||||||
fflush($filePointer);
|
fflush($filePointer);
|
||||||
flock($filePointer, LOCK_UN);
|
flock($filePointer, LOCK_UN);
|
||||||
|
|
|
@ -670,7 +670,7 @@ class View {
|
||||||
list($storage, $internalPath) = $this->resolvePath($path);
|
list($storage, $internalPath) = $this->resolvePath($path);
|
||||||
$target = $storage->fopen($internalPath, 'w');
|
$target = $storage->fopen($internalPath, 'w');
|
||||||
if ($target) {
|
if ($target) {
|
||||||
list (, $result) = \OC_Helper::streamCopy($data, $target);
|
list(, $result) = \OC_Helper::streamCopy($data, $target);
|
||||||
fclose($target);
|
fclose($target);
|
||||||
fclose($data);
|
fclose($data);
|
||||||
|
|
||||||
|
|
|
@ -104,16 +104,16 @@ class OC_Template extends \OC\Template\Base {
|
||||||
//apps that started before the template initialization can load their own scripts/styles
|
//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
|
//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
|
//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->getSystemConfig()->getValue('installed', false) && $renderAs !== 'error' && !\OCP\Util::needUpgrade()) {
|
||||||
if (\OC::$server->getConfig ()->getAppValue ( 'core', 'backgroundjobs_mode', 'ajax' ) == 'ajax') {
|
if (\OC::$server->getConfig()->getAppValue( 'core', 'backgroundjobs_mode', 'ajax' ) == 'ajax') {
|
||||||
OC_Util::addScript ( 'backgroundjobs', null, true );
|
OC_Util::addScript( 'backgroundjobs', null, true );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
OC_Util::addStyle('css-variables', null, true);
|
OC_Util::addStyle('css-variables', null, true);
|
||||||
OC_Util::addStyle('server', null, true);
|
OC_Util::addStyle('server', null, true);
|
||||||
OC_Util::addTranslations('core', 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::addStyle('search', 'results');
|
||||||
OC_Util::addScript('search', 'search', true);
|
OC_Util::addScript('search', 'search', true);
|
||||||
OC_Util::addScript('search', 'searchprovider');
|
OC_Util::addScript('search', 'searchprovider');
|
||||||
|
|
|
@ -590,7 +590,7 @@ class OC_Util {
|
||||||
|
|
||||||
// core js files need separate handling
|
// core js files need separate handling
|
||||||
if ($application !== 'core' && $file !== null) {
|
if ($application !== 'core' && $file !== null) {
|
||||||
self::addTranslations ( $application );
|
self::addTranslations( $application );
|
||||||
}
|
}
|
||||||
self::addExternalResource($application, $prepend, $path, "script");
|
self::addExternalResource($application, $prepend, $path, "script");
|
||||||
}
|
}
|
||||||
|
@ -667,7 +667,7 @@ class OC_Util {
|
||||||
if ($type === "style") {
|
if ($type === "style") {
|
||||||
if (!in_array($path, self::$styles)) {
|
if (!in_array($path, self::$styles)) {
|
||||||
if ($prepend === true) {
|
if ($prepend === true) {
|
||||||
array_unshift ( self::$styles, $path );
|
array_unshift( self::$styles, $path );
|
||||||
} else {
|
} else {
|
||||||
self::$styles[] = $path;
|
self::$styles[] = $path;
|
||||||
}
|
}
|
||||||
|
@ -675,7 +675,7 @@ class OC_Util {
|
||||||
} elseif ($type === "script") {
|
} elseif ($type === "script") {
|
||||||
if (!in_array($path, self::$scripts)) {
|
if (!in_array($path, self::$scripts)) {
|
||||||
if ($prepend === true) {
|
if ($prepend === true) {
|
||||||
array_unshift ( self::$scripts, $path );
|
array_unshift( self::$scripts, $path );
|
||||||
} else {
|
} else {
|
||||||
self::$scripts [] = $path;
|
self::$scripts [] = $path;
|
||||||
}
|
}
|
||||||
|
@ -699,7 +699,7 @@ class OC_Util {
|
||||||
'text' => $text
|
'text' => $text
|
||||||
];
|
];
|
||||||
if ($prepend === true) {
|
if ($prepend === true) {
|
||||||
array_unshift (self::$headers, $header);
|
array_unshift(self::$headers, $header);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
self::$headers[] = $header;
|
self::$headers[] = $header;
|
||||||
|
|
Loading…
Reference in New Issue