Showing 7,504 of 7,504 total issues
Method value
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function value()
{
if ($this->is_linear_whitespace())
{
$this->linear_whitespace();
Method standalone_value
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function standalone_value()
{
if ($standalone = $this->get_value())
{
switch ($standalone)
Method _getTransport
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function &_getTransport( $args = array() ) {
static $working_transport, $blocking_transport, $nonblocking_transport;
if ( is_null($working_transport) ) {
if ( true === WP_Http_ExtHttp::test($args) ) {
Method __construct
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function __construct( $data ) {
if ( is_string( $data ) ) {
// Assume it's a header string direct from a previous request
$pairs = explode( ';', $data );
Method connect
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function connect ($server, $port = 110) {
// Opens a socket to the specified server. Unless overridden,
// port defaults to 110. Returns true on success, false on fail
// If MAILSERVER is set, override $server with it's value
Method ms_subdomain_constants
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ms_subdomain_constants() {
static $error = null;
static $error_warn = false;
if ( false === $error )
Method get_bookmark
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_bookmark($bookmark, $output = OBJECT, $filter = 'raw') {
global $wpdb;
if ( empty($bookmark) ) {
if ( isset($GLOBALS['link']) )
Method get_results
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_results($query = null, $output = OBJECT) {
$this->func_call = "\$db->get_results(\"$query\", $output)";
if ( $query )
$this->query($query);
Method start_el
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
$class_names = '';
Method wp_validate_auth_cookie
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_validate_auth_cookie($cookie = '', $scheme = '') {
if ( ! $cookie_elements = wp_parse_auth_cookie($cookie, $scheme) ) {
do_action('auth_cookie_malformed', $cookie, $scheme);
return false;
}
Method set_scheme
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function set_scheme($scheme)
{
if ($scheme === null || $scheme === '')
{
$this->scheme = null;
Method standalone_value
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function standalone_value()
{
if ($standalone = $this->get_value())
{
switch ($standalone)
Method get_image_url
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_image_url()
{
if ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'image'))
{
return $this->sanitize($return[0]['attribs']['']['href'], SIMPLEPIE_CONSTRUCT_IRI);
Method split_ns
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function split_ns($string)
{
static $cache = array();
if (!isset($cache[$string]))
{
Method parse
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parse() {
set_error_handler(array(&$this, 'error_handler'));
array_unshift($this->ns_contexts, array());
Method wp_signon
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_signon( $credentials = '', $secure_cookie = '' ) {
if ( empty($credentials) ) {
if ( ! empty($_POST['log']) )
$credentials['user_login'] = $_POST['log'];
if ( ! empty($_POST['pwd']) )
Method wp_scheduled_delete
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_scheduled_delete() {
global $wpdb;
$delete_timestamp = time() - (60*60*24*EMPTY_TRASH_DAYS);
Method MsgHTML
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function MsgHTML($message,$basedir='') {
preg_match_all("/(src|background)=\"(.*)\"/Ui", $message, $images);
if(isset($images[2])) {
foreach($images[2] as $i => $url) {
// do not change urls for absolute images (thanks to corvuscorax)
Method iis7_url_rewrite_rules
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function iis7_url_rewrite_rules($add_parent_tags = false, $indent = " ", $end_of_line = "\n") {
if ( ! $this->using_permalinks()) {
return '';
}
Method call
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function call($methodname, $args) {
if (!$this->hasMethod($methodname)) {
return new IXR_Error(-32601, 'server error. requested method '.
$methodname.' does not exist.');
}