Showing 701 of 9,653 total issues
Method admin_footer
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function admin_footer()
{
global $pagenow;
// Only run in post/page creation and edit screens
Function magnificPopup
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.magnificPopup = function(options) {
_checkInstance();
var jqEl = $(this);
Method _resize
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _resize($new_x, $new_y, $options = null)
{
// there's no technical reason why resize can't be called multiple
// times...it's just silly to do so
$scaleMethod = $this->_getOption('scaleMethod', $options, 'smooth');
Method image_type_to_mime_type
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function image_type_to_mime_type($type)
{
switch ($type) {
case IMAGETYPE_GIF:
return 'image/gif';
Method rebuild
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function rebuild()
{
$data = $this->getTreeWithChildren();
$n = 0; // need a variable to hold the running n tally
Function bindControls
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindControls: function() {
var i;
carousel.next.on( 'click:fast', function(e) {
Function rescale
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rescale: function(event) {
// calculate
var width = M.min( $win.width()-40, lightbox.width ),
height = M.min( $win.height()-60, lightbox.height ),
Function bindControls
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindControls: function() {
var i;
carousel.next.on( 'click:fast', function(e) {
Function rescale
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rescale: function(event) {
// calculate
var width = M.min( $win.width()-40, lightbox.width ),
height = M.min( $win.height()-60, lightbox.height ),
Function historyLoad
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
historyLoad: function(hash){
var newhash;
hash = decodeURIComponent(hash.replace(/\?.*$/, ''));
if (jQuery.browser.safari) {
Function scaleButtons
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function scaleButtons( $btns, $capt, timeout )
{
if ( _viewScale )
{
var scale = _viewScale.getScale();
Method loadTableFromArrayWithReplace
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadTableFromArrayWithReplace($table, $data, $search, $replace)
{
/** @var \XoopsMySQLDatabase $db */
$db = \XoopsDatabaseFactory::getDatabaseConnection();
Method resize_image
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function resize_image($orig_size, $dest_size, $dest_file_name)
{
// load image
$image = wp_get_image_editor($this->path);
Method updateBlock
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateBlock($bid, $btitle, $bside, $bweight, $bvisible, $bcachetime, $bmodule, $options, $groups)
{
$myblock = new \XoopsBlock($bid);
$myblock->setVar('title', $btitle);
$myblock->setVar('weight', $bweight);
Method getServerStats
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getServerStats()
{
//mb $wfdownloads = WfdownloadsWfdownloads::getInstance();
$moduleDirName = \basename(\dirname(__DIR__, 2));
$moduleDirNameUpper = mb_strtoupper($moduleDirName);
Method makeSelect
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function makeSelect($cats, $name, $selectMode, $addEmpty, $selected, $extra, $displayWeight)
{
$ret = '<select name="' . $name . '" id="' . $name . '"' . $extra . '>';
if ($addEmpty) {
$ret .= '<option value="0">-----</option>';
Method DrawCharacters
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function DrawCharacters()
{
$iShadowColour = '';
// loop through and write out selected number of characters
for ($i = 0, $iMax = mb_strlen($this->sCode); $i < $iMax; ++$i) {
Function galleria
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.galleria = function( options ) {
var selector = this.selector;
// try domReady if element not found
Function complete
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
complete: function( next ) {
Utils.show( next.container );
// toggle low quality for IE
Function show
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
show : function( elem, speed, callback ) {
callback = callback || F;
var $elem = $(elem);