Showing 5,566 of 7,504 total issues
Method sanitize_term_field
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) {
if ( 'parent' == $field || 'term_id' == $field || 'count' == $field || 'term_group' == $field ) {
$value = (int) $value;
if ( $value < 0 )
$value = 0;
Method CodecIDtoCommonName
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function CodecIDtoCommonName($codecid) {
// http://www.matroska.org/technical/specs/codecid/index.html
static $CodecIDlist = array();
if (empty($CodecIDlist)) {
$CodecIDlist['A_AAC'] = 'aac';
Method wp_post_mime_type_where
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_post_mime_type_where($post_mime_types) {
$where = '';
$wildcards = array('', '%', '%/%');
if ( is_string($post_mime_types) )
$post_mime_types = array_map('trim', explode(',', $post_mime_types));
Method parseSTREAMINFO
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function parseSTREAMINFO($BlockData) {
$info = &$this->getid3->info;
$info['flac']['STREAMINFO'] = array();
$streaminfo = &$info['flac']['STREAMINFO'];
Method sanitize_bookmark_field
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sanitize_bookmark_field($field, $value, $bookmark_id, $context) {
$int_fields = array('link_id', 'link_rating');
if ( in_array($field, $int_fields) )
$value = (int) $value;
Method image_downsize
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function image_downsize($id, $size = 'medium') {
if ( !wp_attachment_is_image($id) )
return false;
Method utf8_uri_encode
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function utf8_uri_encode( $utf8_string, $length = 0 ) {
$unicode = '';
$values = array();
$num_octets = 1;
$unicode_length = 0;
Method markup_header
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function markup_header( $header, $value, $translate ) {
switch ( $header ) {
case 'Name' :
if ( empty( $value ) )
$value = $this->get_stylesheet();
Method update_site_option
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update_site_option( $option, $value ) {
global $wpdb;
wp_protect_special_option( $option );
Method __get
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __get( $offset ) {
switch ( $offset ) {
case 'name' :
case 'title' :
return $this->get('Name');
Method all_deps
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function all_deps( $handles, $recursion = false, $group = false ) {
if ( !$handles = (array) $handles )
return false;
foreach ( $handles as $handle ) {
Method Execute
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void Execute(ICommandQueries commandQueries, IContingentViewQueries contingentViewQueries, MessageDispatcher dispatcher)
{
var commands = new List<ReorderParticipant>();
var provinces = new List<string> { "BC", "AB", "SK", "MB", "NO", "SO", "QC", "NL" };
Method Quit
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Quit($close_on_error=true) {
$this->error = null; # so there is no confusion
if(!$this->connected()) {
$this->error = array(
Method SendChangeNotification
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void SendChangeNotification(DateTime cutoff, List<String> recipients, string title, string message)
{
Syslog.Initialize("logs2.papertrailapp.com", 10236);
Syslog.Info("SendChangeNotification");
Syslog.Info($"apikey: {apiKey}");
Method Handle
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Handle(ParticipantGameCompleted e)
{
var divisionName = SimplifyDivision(e.Division);
var year = "2014";
if (Matches.ContainsKey(e.Id))
Function toPlainData
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toPlainData: function (fn){
this._to({}, fn, function (file, data, queue){
if( file.file ){
data.type = file.file;
}
Function _readAs
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _readAs(file, fn, as, encoding){
if( api.isBlob(file) && _hasSupportReadAs(as) ){
var Reader = new FileReader;
// Add event listener
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 editTeam
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function editTeam(team) {
var dfd = $q.defer();
team.Bowlers = team.Bowlers || [];
Function _StackFrame
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _StackFrame = (function (_super) {
__extends(_StackFrame, _super);
function _StackFrame(frame, level) {
_super.call(this);
this.sizeInBytes = 0;