mirror of https://github.com/nextcloud/server
Check style update
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
aeecb72e96
commit
6312c0df69
|
@ -67,7 +67,7 @@ class GetConfig extends Base {
|
||||||
* @param OutputInterface $output An OutputInterface instance
|
* @param OutputInterface $output An OutputInterface instance
|
||||||
* @return int 0 if everything went fine, or an error code
|
* @return int 0 if everything went fine, or an error code
|
||||||
*/
|
*/
|
||||||
protected function execute(InputInterface $input, OutputInterface $output) {
|
protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||||
$configNames = $input->getArgument('name');
|
$configNames = $input->getArgument('name');
|
||||||
$configName = array_shift($configNames);
|
$configName = array_shift($configNames);
|
||||||
$defaultValue = $input->getOption('default-value');
|
$defaultValue = $input->getOption('default-value');
|
||||||
|
|
|
@ -247,8 +247,7 @@ class Upgrade extends Command {
|
||||||
$output->write('<comment>Maybe an upgrade is already in process. Please check the '
|
$output->write('<comment>Maybe an upgrade is already in process. Please check the '
|
||||||
. 'logfile (data/nextcloud.log). If you want to re-run the '
|
. 'logfile (data/nextcloud.log). If you want to re-run the '
|
||||||
. 'upgrade procedure, remove the "maintenance mode" from '
|
. 'upgrade procedure, remove the "maintenance mode" from '
|
||||||
. 'config.php and call this script again.</comment>'
|
. 'config.php and call this script again.</comment>', true);
|
||||||
, true);
|
|
||||||
return self::ERROR_MAINTENANCE_MODE;
|
return self::ERROR_MAINTENANCE_MODE;
|
||||||
} else {
|
} else {
|
||||||
$output->writeln('<info>Nextcloud is already latest version</info>');
|
$output->writeln('<info>Nextcloud is already latest version</info>');
|
||||||
|
|
|
@ -122,8 +122,7 @@ class ExpressionBuilderDBTest extends TestCase {
|
||||||
$query->createFunction(
|
$query->createFunction(
|
||||||
'(' . $query->expr()->castColumn('configvalue', IQueryBuilder::PARAM_INT)
|
'(' . $query->expr()->castColumn('configvalue', IQueryBuilder::PARAM_INT)
|
||||||
. ' + 1)'
|
. ' + 1)'
|
||||||
)
|
), IQueryBuilder::PARAM_STR
|
||||||
, IQueryBuilder::PARAM_STR
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
->where($query->expr()->eq('appid', $query->createNamedParameter($appId)))
|
->where($query->expr()->eq('appid', $query->createNamedParameter($appId)))
|
||||||
|
|
|
@ -399,23 +399,17 @@ class CacheTest extends \Test\TestCase {
|
||||||
$user = $this->createMock(IUser::class);
|
$user = $this->createMock(IUser::class);
|
||||||
|
|
||||||
$this->assertCount(1, $this->cache->searchQuery(new SearchQuery(
|
$this->assertCount(1, $this->cache->searchQuery(new SearchQuery(
|
||||||
new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'name', 'foo')
|
new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'name', 'foo'), 10, 0, [], $user)));
|
||||||
, 10, 0, [], $user)));
|
|
||||||
$this->assertCount(2, $this->cache->searchQuery(new SearchQuery(
|
$this->assertCount(2, $this->cache->searchQuery(new SearchQuery(
|
||||||
new SearchComparison(ISearchComparison::COMPARE_LIKE, 'name', 'foo%')
|
new SearchComparison(ISearchComparison::COMPARE_LIKE, 'name', 'foo%'), 10, 0, [], $user)));
|
||||||
, 10, 0, [], $user)));
|
|
||||||
$this->assertCount(2, $this->cache->searchQuery(new SearchQuery(
|
$this->assertCount(2, $this->cache->searchQuery(new SearchQuery(
|
||||||
new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'mimetype', 'foo/file')
|
new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'mimetype', 'foo/file'), 10, 0, [], $user)));
|
||||||
, 10, 0, [], $user)));
|
|
||||||
$this->assertCount(3, $this->cache->searchQuery(new SearchQuery(
|
$this->assertCount(3, $this->cache->searchQuery(new SearchQuery(
|
||||||
new SearchComparison(ISearchComparison::COMPARE_LIKE, 'mimetype', 'foo/%')
|
new SearchComparison(ISearchComparison::COMPARE_LIKE, 'mimetype', 'foo/%'), 10, 0, [], $user)));
|
||||||
, 10, 0, [], $user)));
|
|
||||||
$this->assertCount(1, $this->cache->searchQuery(new SearchQuery(
|
$this->assertCount(1, $this->cache->searchQuery(new SearchQuery(
|
||||||
new SearchComparison(ISearchComparison::COMPARE_GREATER_THAN, 'size', 100)
|
new SearchComparison(ISearchComparison::COMPARE_GREATER_THAN, 'size', 100), 10, 0, [], $user)));
|
||||||
, 10, 0, [], $user)));
|
|
||||||
$this->assertCount(2, $this->cache->searchQuery(new SearchQuery(
|
$this->assertCount(2, $this->cache->searchQuery(new SearchQuery(
|
||||||
new SearchComparison(ISearchComparison::COMPARE_GREATER_THAN_EQUAL, 'size', 100)
|
new SearchComparison(ISearchComparison::COMPARE_GREATER_THAN_EQUAL, 'size', 100), 10, 0, [], $user)));
|
||||||
, 10, 0, [], $user)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function movePathProvider() {
|
public function movePathProvider() {
|
||||||
|
|
Loading…
Reference in New Issue