Showing 88 of 178 total issues
Method __construct
has 336 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(array $urlParams = []) {
parent::__construct('gallery', $urlParams);
$container = $this->getContainer();
File gallery.js
has 397 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* global Album, GalleryImage */
(function ($, OC, t) {
"use strict";
var Gallery = {
currentAlbum: null,
File galleryview.js
has 378 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* global Handlebars, Gallery */
(function ($, _, OC, t, Gallery) {
"use strict";
var TEMPLATE_ADDBUTTON = '<a href="#" class="button new"><img src="{{iconUrl}}" alt="{{addText}}"></img></a>';
File application.php
has 375 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Gallery
*
* This file is licensed under the Affero General Public License version 3 or
Function _mapFiles
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mapFiles: function (data) {
Gallery.imageMap = {};
var image = null;
var path = null;
var fileId = null;
File slideshow.js
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* global DOMPurify */
(function ($, OC, OCA, t) {
"use strict";
/**
* Slideshow featuring zooming
File rotate.js
has 285 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// VERSION: 2.3 LAST UPDATE: 11.07.2013
/*
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*
* Made by Wilq32, wilq32@gmail.com, Wroclaw, Poland, 01.2009
Function _getSlideshowTemplate
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getSlideshowTemplate: function () {
var defer = $.Deferred();
if (!this.$slideshowTemplate) {
var self = this;
var url = OC.generateUrl('apps/gallery/slideshow', null);
File slideshowcontrols.js
has 274 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* global OC, SlideShow */
(function ($, SlideShow) {
"use strict";
/**
* Button and key controls for the slideshow
Function _Loader
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_Loader:(function()
{
if (IE)
return function() {
var width=this._img.width;
Function slideShow
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
slideShow: function (images, startImage, autoPlay) {
if (startImage === undefined) {
OC.Notification.showTemporary(t('gallery',
'Aborting preview. Could not find the file'));
return false;
Function loadBatch
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadBatch: function (ids, square) {
var map = (square) ? Thumbnails.squareMap : Thumbnails.map;
// Prevents re-loading thumbnails when resizing the window
ids = ids.filter(function (id) {
return !map[id];
Function onView
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onView: function (filename, context) {
var imageUrl, downloadUrl;
var fileList = context.fileList;
var files = fileList.files;
var start = 0;
Function getFiles
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getFiles: function (currentLocation) {
// Cache the sorting order of the current album before loading new files
if (!$.isEmptyObject(Gallery.albumMap)) {
Gallery.albumMap[Gallery.currentAlbum].sorting = Gallery.config.albumSorting;
}
Function createFile
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createFile: function(name) {
var self = this;
var deferred = $.Deferred();
var promise = deferred.promise();
Function _setupUploader
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setupUploader: function () {
var self = this;
var $uploadEl = $('#file_upload_start');
var uploads = [];
if (!$uploadEl.exists()) {
Function _resize
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_resize: function (availableWidth) {
var crumbs = this.breadcrumbsElement.children();
var shorten = false;
var ellipsisPath = '';
var self = this;
Function show
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show: function (index) {
this.hideErrorNotification();
this.active = true;
this.container.show();
this.container.css('background-position', 'center');
Function Album
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var Album = function (path, subAlbums, images, name, fileId, mTime, etag, size, sharedWithUser,
owner, freeSpace, permissions) {
Function loadVisibleRows
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadVisibleRows: function (album) {
var view = this;
// Wait for the previous request to be completed
if (this.loadVisibleRows.processing) {
return;