owncloud/core

View on GitHub

Showing 3,235 of 4,503 total issues

Avoid too many return statements within this method.
Open

                return (string) $l->t('You restored %1$s', $params);
Severity: Major
Found in apps/files/lib/Activity.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                        return [
                            0 => 'file',
                            1 => 'username',
                        ];
    Severity: Major
    Found in apps/files/lib/Activity.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return [
                              0 => 'file',
                              1 => 'username',
                              2 => 'file',
                          ];
      Severity: Major
      Found in apps/files/lib/Activity.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return 'icon-move';
        Severity: Major
        Found in apps/files/lib/Activity.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return 'network error';
          Severity: Major
          Found in lib/public/Files/StorageNotAvailableException.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return 'unknown';
            Severity: Major
            Found in lib/public/Files/StorageNotAvailableException.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return (string) $l->t('%2$s moved %3$s to %1$s', $params);
              Severity: Major
              Found in apps/files/lib/Activity.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return (string) $l->t('%2$s restored %1$s', $params);
                Severity: Major
                Found in apps/files/lib/Activity.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return false;
                  Severity: Major
                  Found in apps/files/lib/Activity.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return;
                    Severity: Major
                    Found in lib/kernel.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                          return [
                                              0 => 'file',
                                              1 => 'username',
                                          ];
                      Severity: Major
                      Found in apps/files/lib/Activity.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return false;
                        Severity: Major
                        Found in apps/files/lib/Activity.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return (string) $l->t('You renamed %2$s to %1$s', $params);
                          Severity: Major
                          Found in apps/files/lib/Activity.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                                return (string) $l->t('%1$s was deleted due to automation rule', $params);
                            Severity: Major
                            Found in apps/files/lib/Activity.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                                  return [
                                                      0 => 'file',
                                                      1 => 'username',
                                                      2 => 'file',
                                                  ];
                              Severity: Major
                              Found in apps/files/lib/Activity.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return CallbackWrapper::wrap($source, null, null, function () use ($tmpFile, $fullPath) {
                                                    $this->flysystem->putStream($fullPath, \fopen($tmpFile, 'r'));
                                                    \unlink($tmpFile);
                                                });
                                Severity: Major
                                Found in lib/private/Files/Storage/Flysystem.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return (\strlen($fullPath) > \strlen($defaultRoot)) && (\substr($fullPath, 0, \strlen($defaultRoot) + 1) === $defaultRoot . '/');
                                  Severity: Major
                                  Found in lib/private/Files/View.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                            return $file->getMimetype() === $mimetype_filter;
                                    Severity: Major
                                    Found in lib/private/Files/View.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return self::PLAIN;
                                      Severity: Major
                                      Found in lib/private/Archive/TAR.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                    return [];
                                        Severity: Major
                                        Found in lib/private/Files/View.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language