Showing 5,566 of 7,504 total issues
Method export_to_file
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function export_to_file($filename) {
$fh = fopen($filename, 'wb');
if ( !$fh ) return false;
$entries = array_filter($this->entries, create_function('$e', 'return !empty($e->translations);'));
ksort($entries);
Method init
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init () {
if ( defined('MAGPIE_INITALIZED') ) {
return;
}
else {
Method build_time_query
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function build_time_query( $column, $compare, $hour = null, $minute = null, $second = null ) {
global $wpdb;
// Have to have at least one
if ( ! isset( $hour ) && ! isset( $minute ) && ! isset( $second ) )
Method feed_end_element
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function feed_end_element ($p, $el) {
$el = strtolower($el);
if ( $el == 'item' or $el == 'entry' )
{
Method sanitize_email
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function sanitize_email( $email ) {
// Test for the minimum length the email can be
if ( strlen( $email ) < 3 ) {
return apply_filters( 'sanitize_email', '', $email, 'email_too_short' );
}
Method wp_sprintf
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_sprintf( $pattern ) {
$args = func_get_args( );
$len = strlen($pattern);
$start = 0;
$result = '';
Method comments_popup_link
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) {
global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post;
if ( false === $zero ) $zero = __( 'No Comments' );
if ( false === $one ) $one = __( '1 Comment' );
Method sanitize_header
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function sanitize_header( $header, $value ) {
switch ( $header ) {
case 'Status' :
if ( ! $value ) {
$value = 'publish';
Method update_option
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update_option( $option, $value ) {
global $wpdb;
$option = trim($option);
if ( empty($option) )
Method add_option
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' ) {
global $wpdb;
if ( !empty( $deprecated ) )
_deprecated_argument( __FUNCTION__, '2.3' );
Method wp_get_sites
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_get_sites( $args = array() ) {
global $wpdb;
if ( wp_is_large_network() )
return array();
Method update_blog_status
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) {
global $wpdb;
if ( null !== $deprecated )
_deprecated_argument( __FUNCTION__, '3.1' );
Method getXml
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getXml() {
/* Return XML for this value */
switch ($this->type) {
case 'boolean':
return '<boolean>'.(($this->data) ? '1' : '0').'</boolean>';
Method processHeaders
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function processHeaders( $headers, $url = '' ) {
// split headers, one per array element
if ( is_string($headers) ) {
// tolerate line terminator: CRLF = LF (RFC 2616 19.3)
$headers = str_replace("\r\n", "\n", $headers);
Method SmtpConnect
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SmtpConnect() {
if($this->smtp == NULL) {
$this->smtp = new SMTP();
}
Method get_pagenum_link
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_pagenum_link($pagenum = 1) {
global $wp_rewrite;
$pagenum = (int) $pagenum;
Method EncodeQP
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function EncodeQP( $input = '', $line_max = 76, $space_conv = false ) {
$hex = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
$lines = preg_split('/(?:\r\n|\r|\n)/', $input);
$eol = "\r\n";
$escape = '=';
Method AttachAll
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AttachAll() {
/* Return text of body */
$mime = array();
/* Add all attachments */
Function inject
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.inject = angular.mock.inject = function() {
var blockFns = Array.prototype.slice.call(arguments, 0);
var errorForStack = new Error('Declaration Location');
return isSpecRunning() ? workFn.call(currentSpec) : workFn;
/////////////////////
Function enter
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
enter: function( callback ) {
fullscreen.beforeEnter(function() {
callback = fullscreen.parseCallback( callback, true );