Showing 5,566 of 7,504 total issues
Method numChannelsLookup
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function numChannelsLookup($index) {
switch ($index) {
case 0:
return 1;
break;
Method update_object_term_cache
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update_object_term_cache($object_ids, $object_type) {
if ( empty($object_ids) )
return;
if ( !is_array($object_ids) )
Method bitrateLookup
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function bitrateLookup($index) {
static $lookup = array(
0 => 32000,
1 => 56000,
2 => 64000,
Method MPEGaudioFrameLength
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function MPEGaudioFrameLength(&$bitrate, &$version, &$layer, $padding, &$samplerate) {
static $AudioFrameLengthCache = array();
if (!isset($AudioFrameLengthCache[$bitrate][$version][$layer][$padding][$samplerate])) {
$AudioFrameLengthCache[$bitrate][$version][$layer][$padding][$samplerate] = false;
Method widget
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function widget($args, $instance) {
if ( isset($instance['error']) && $instance['error'] )
return;
Method wp_default_styles
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_default_styles( &$styles ) {
// This checks to see if site_url() returns something and if it does not
// then it assigns $guess_url to wp_guess_url(). Strange format, but it works.
if ( ! $guessurl = site_url() )
$guessurl = wp_guess_url();
Method apop
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function apop ($login,$pass) {
// Attempts an APOP login. If this fails, it'll
// try a standard login. YOUR SERVER MUST SUPPORT
// THE USE OF THE APOP COMMAND!
// (apop is optional per rfc1939)
Method wp_set_auth_cookie
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_set_auth_cookie($user_id, $remember = false, $secure = '') {
if ( $remember ) {
$expiration = $expire = time() + apply_filters('auth_cookie_expiration', 1209600, $user_id, $remember);
} else {
$expiration = time() + apply_filters('auth_cookie_expiration', 172800, $user_id, $remember);
Method auth_redirect
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function auth_redirect() {
// Checks if a user is logged in, if not redirects them to the login page
if ( is_ssl() || force_ssl_admin() )
$secure = true;
Method methodSignature
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function methodSignature($method) {
if (!$this->hasMethod($method)) {
return new IXR_Error(-32601, 'server error. requested method "'.$method.'" not specified.');
}
// We should be returning an array of types
Method do_item
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function do_item( $handle, $group = false ) {
if ( !parent::do_item($handle) )
return false;
if ( 0 === $group && $this->groups[$handle] > 0 ) {
Method get_links
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name',
$show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) {
Function when
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.when = function (what, handler) {
var redirect, handlerIsString = isString(handler);
if (isString(what)) what = $urlMatcherFactory.compile(what);
if (!handlerIsString && !isFunction(handler) && !isArray(handler))
Function MockXhr
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MockXhr() {
// hack for testing $http, $httpBackend
MockXhr.$$lastInstance = this;
Function Video
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Video = function( type, id ) {
for( var i=0; i<_video._inst.length; i++ ) {
if ( _video._inst[i].id === id && _video._inst[i].type == type ) {
return _video._inst[i];
Function newsController
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var newsController = function ($http, $q, $location, dataService) {
var url = $location.absUrl();
var lastSlash = url.lastIndexOf('/');
var year = url.slice(lastSlash + 1);
Function _wp_Autop
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_wp_Autop : function(pee) {
var blocklist = 'table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6]|fieldset|legend';
if ( pee.indexOf('<object') != -1 ) {
pee = pee.replace(/<object[\s\S]+?<\/object>/g, function(a){
Function add
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add: function( e, s ) {
e = $(e);
var list = $(this), old = false, _s = { pos: 0, id: 0, oldId: null }, ba, ref, color;
if ( 'string' == typeof s ) { s = { what: s }; }
Function doResize
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doResize() {
if (abs(x2 - x1) < options.minWidth) {
x2 = x1 - options.minWidth * (x2 < x1 || -1);
if (x2 < left)
Function initCrop
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initCrop : function(postid, image, parent) {
var t = this, selW = $('#imgedit-sel-width-' + postid),
selH = $('#imgedit-sel-height-' + postid);
t.iasapi = $(image).imgAreaSelect({