Showing 3,235 of 4,503 total issues
File Manager.php
has 385 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Björn Schießle <bjoern@schiessle.org>
* @author Joas Schilling <coding@schilljs.com>
* @author Jörn Friedrich Dreyer <jfd@butonic.de>
File Setup.php
has 382 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @author Administrator <Administrator@WINDOWS-2012>
* @author Arthur Schiwon <blizzz@arthur-schiwon.de>
* @author Bart Visscher <bartv@thisnet.nl>
OC
has 39 functions (exceeds 20 allowed). Consider refactoring. Open
Open
var OC = {
PERMISSION_CREATE: 4,
PERMISSION_READ: 1,
PERMISSION_UPDATE: 2,
PERMISSION_DELETE: 8,
Encoding
has 39 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Encoding extends Wrapper {
/**
* @var CappedMemoryCache
*/
private $namesCache;
Availability
has 39 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Availability extends Wrapper {
public const RECHECK_TTL_SEC = 600; // 10 minutes
public static function shouldRecheck($availability) {
if (!$availability['available']) {
File sv.js
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Vänligen välj en fil.",
"File is too big" : "Filen är för stor",
File en_GB.js
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Please select a file.",
"File is too big" : "File is too big",
File pt_BR.js
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Por favor selecione um arquivo.",
"File is too big" : "O arquivo é muito grande",
File ru.js
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Пожалуйста выберите файл.",
"File is too big" : "Файл слишком велик",
File de.js
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Bitte wähle eine Datei aus.",
"File is too big" : "Datei ist zu groß",
File sq.js
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Ju lutemi, përzgjidhni një kartelë.",
"File is too big" : "Kartela është shumë e madhe",
File de_DE.js
has 381 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Bitte wählen Sie eine Datei aus.",
"File is too big" : "Datei ist zu groß.",
File sharedfilelist.js
has 380 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2014 Vincent Petry <pvince81@owncloud.com>
*
* This file is licensed under the Affero General Public License version 3
* or later.
File tr.js
has 380 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Lütfen bir dosya seçin.",
"File is too big" : "Dosya çok büyük",
File zh_CN.js
has 379 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "请选择一个文件",
"File is too big" : "文件太大",
Function getFileInfo
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
Open
public function getFileInfo($path, $includeMountPoints = true) {
$this->assertPathLength($path);
if (!Filesystem::isValidPath($path)) {
return false;
}
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function validatePermissions
has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function validatePermissions(IShare $share) {
// Permissions should be set
if ($share->getPermissions() === null) {
throw new \InvalidArgumentException('A share requires permissions');
}
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File fr.js
has 378 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"settings",
{
"Wrong current password" : "Mot de passe actuel incorrect",
"The new password cannot be the same as the previous one" : "Le nouveau mot de passe ne peut pas être le même que l'ancien",
File bg_BG.js
has 378 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Моля изберете файл.",
"File is too big" : "Файлът е прекалено голям",
File es.js
has 378 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
OC.L10N.register(
"core",
{
"Please select a file." : "Seleccione un archivo, por favor.",
"File is too big" : "El archivo es demasiado grande",