Showing 3,235 of 4,504 total issues
Method stream_open
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function stream_open($path, $mode, $options, &$opened_path) {
$context = $this->loadContext('ocencryption');
$this->position = 0;
$this->cache = '';
Method emit_file_hooks_pre
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function emit_file_hooks_pre($exists, $path, &$run) {
$event = new GenericEvent(null);
if (!$exists) {
\OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_create, [
Filesystem::signal_param_path => $this->getHookPath($path),
Method opendir
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function opendir($path) {
$this->init();
$path = $this->cleanPath($path);
try {
// client propfind is in \OC\HTTP\Client
Method getMountsForUser
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getMountsForUser(IUser $user) {
$loader = $this->loader;
$mounts = \array_map(function (IMountProvider $provider) use ($user, $loader) {
return $provider->getMountsForUser($user, $loader);
}, $this->providers);
Method mkdir
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function mkdir($path) {
$path = $this->normalizePath($path);
if ($this->file_exists($path)) {
return false;
Method getThumbnail
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getThumbnail(File $file, $maxX, $maxY, $scalingUp) {
$this->initCmd();
if ($this->cmd === null) {
return false;
}
Method dispatch
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function dispatch(Controller $controller, $methodName) {
$out = [null, [], null];
try {
// prefill reflector with everything thats needed for the
Method getNext
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getNext() {
$query = $this->connection->getQueryBuilder();
$query->select('*')
->from('jobs')
->where($query->expr()->lte('reserved_at', $query->createNamedParameter($this->timeFactory->getTime() - 12 * 3600, IQueryBuilder::PARAM_INT)))
Method syncSingleUser
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function syncSingleUser(
InputInterface $input,
OutputInterface $output,
SyncService $syncService,
UserInterface $backend,
Function saveStorageConfig
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
saveStorageConfig:function($tr, callback, concurrentTimer) {
var self = this;
var storage = this.getStorageConfig($tr);
if (!storage || !storage.validate()) {
return false;
Function getMountPointList
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getMountPointList: function (afterCallback) {
var self = this;
if (typeof afterCallback !== 'function' || self.isGetMountPointListRunning) {
return;
}
Function parse
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parse: function(data) {
if(data === false) {
console.warn('no data was returned');
this.trigger('fetchError');
return {};
Method getSharedWithMe
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getSharedWithMe($node, $includeTags, $requestedShareTypes, $stateFilter = 0) {
// sharedWithMe is limited to user and group shares for compatibility.
$shares = [];
if (isset($requestedShareTypes[Share::SHARE_TYPE_USER]) && $requestedShareTypes[Share::SHARE_TYPE_USER]) {
$shares = \array_merge(
Method event
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function event(ManagerEvent $event) {
$actor = $this->session->getUser();
if ($actor instanceof IUser) {
$actor = $actor->getUID();
} else {
Method getAllSharesBy
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAllSharesBy($userId, $shareTypes, $nodeIDs, $reshares) {
$shares = [];
$qb = $this->dbConnection->getQueryBuilder();
$qb->select('*')
Method buildOCSResponse
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function buildOCSResponse($format, $data) {
if ($data instanceof Result) {
$headers = $data->getHeaders();
$d = $data->getData();
$data = $data->getMeta();
Method crashLog
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function crashLog(\Throwable $ex): void {
$crashDir = self::$SERVERROOT . '/data';
if (self::$config) {
$dataDir = self::$config->getValue('datadirectory', self::$SERVERROOT . '/data');
$crashDir = self::$config->getValue('crashdirectory', $dataDir);
Method buildParts
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function buildParts(array $data) {
$fields = [
'path', 'parent', 'name', 'mimetype', 'size', 'mtime', 'storage_mtime', 'encrypted',
'etag', 'permissions', 'checksum'];
Method populateStorageConfigWithLegacyOptions
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function populateStorageConfigWithLegacyOptions(
&$storageConfig,
$mountType,
$applicable,
$storageOptions
Method checkLicenseFor
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function checkLicenseFor(string $appid, array $options = []): bool {
$currentTime = $this->timeFactory->getTime();
$gracePeriod = $this->config->getAppValue('core', 'grace_period', null);
if ($gracePeriod === null) {