Showing 4,504 of 4,504 total issues
Method moveFromCache
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath) {
self::$path_cache->clear();
if ($sourceCache instanceof Cache) {
// normalize source and target
$sourcePath = $this->normalize($sourcePath);
Method getAbsoluteMountPoints
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getAbsoluteMountPoints($uid) {
$mountPoints = [];
$userGlobalStoragesService = \OC::$server->getUserGlobalStoragesService();
'@phan-var \OC\Files\External\Service\UserGlobalStoragesService $userGlobalStoragesService';
Method extractMp4CoverArtwork
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function extractMp4CoverArtwork($absPath) {
if (isset($this->noArtworkIndex[$absPath])) {
return false;
}
Method fixMarketAppState
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function fixMarketAppState(IOutput $output) {
// no core update -> nothing to do
if (!$this->isCoreUpdate()) {
return false;
}
Method unshareItem
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected static function unshareItem(array $item, $newParent = null) {
$shareType = (int)$item['share_type'];
$shareWith = null;
if ($shareType !== \OCP\Share::SHARE_TYPE_LINK) {
$shareWith = $item['share_with'];
Method checkTags
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function checkTags($offset) {
$query = $this->connection->getQueryBuilder();
$query->select('uid')
->from('vcategory')
->groupBy('uid')
Method transformDBResults
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function transformDBResults(&$row) {
if (isset($row['id'])) {
$row['id'] = (int) $row['id'];
}
if (isset($row['share_type'])) {
Method getSharesWithInvalidFileid
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSharesWithInvalidFileid(int $limit) {
$validShareTypes = [
\OCP\Share::SHARE_TYPE_USER,
\OCP\Share::SHARE_TYPE_GROUP,
\OCP\Share::SHARE_TYPE_LINK,
Method getSharedWithUserGroupQuery
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getSharedWithUserGroupQuery($groups, $userId, $node) {
$qb = $this->dbConn->getQueryBuilder();
$qb->select('s.*', 'f.fileid', 'f.path')
->selectAlias('st.id', 'storage_string_id')
->from('share', 's')
Method getSettingsNavigation
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getSettingsNavigation() {
$l = \OC::$server->getL10N('lib');
$urlGenerator = \OC::$server->getURLGenerator();
$settings = [];
Method __construct
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(
$appName,
IDBConnection $connection,
IOutput $output = null,
AppLocator $appLocator = null,
Method copyr
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function copyr($source, \OCP\Files\Folder $target) {
$dir = @\opendir($source);
if ($dir === false) {
throw new NoReadAccessException('No read permission for folder ' . $source);
}
Method logClientIn
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function logClientIn($user, $password, IRequest $request) {
$isTokenPassword = $this->isTokenPassword($password);
if ($user === null || \trim($user) === '') {
throw new \InvalidArgumentException('$user cannot be empty');
}
Method setReadMark
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setReadMark($objectType, $objectId, \DateTime $dateTime, IUser $user) {
$this->checkRoleParameters('Object', $objectType, $objectId);
$qb = $this->dbConn->getQueryBuilder();
$values = [
Method execute
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output): int {
$app = $input->getArgument('app');
$noSensitiveValues = !$input->getOption('private');
switch ($app) {
Method configure
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function configure() {
parent::configure();
$this
->setName('config:app:set')
Method configure
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function configure() {
parent::configure();
$this->setName('encryption:decrypt-all');
$this->setDescription('Disable server-side encryption and decrypt all files.');
Method handleRepairFeedBack
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handleRepairFeedBack($event) {
if (!$event instanceof GenericEvent) {
return;
}
switch ($event->getSubject()) {
Method configure
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function configure() {
$this
->setName('user:resetpassword')
->setDescription('Resets the password of the named user.')
->addArgument(
Method writeArrayInOutputFormat
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function writeArrayInOutputFormat(InputInterface $input, OutputInterface $output, $items, $prefix = self::DEFAULT_OUTPUT_PREFIX, $showIntKeys = false) {
switch ($input->getOption('output')) {
case self::OUTPUT_FORMAT_JSON:
$output->writeln(\json_encode($items));
break;