Showing 5,566 of 7,504 total issues
Function exports
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
Method privWriteCentralFileHeader
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function privWriteCentralFileHeader(&$p_header)
{
$v_result=1;
// TBC
Method delete
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function delete()
{
$v_result=1;
// ----- Reset the error handler
Function lazyLoadChunks
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
lazyLoadChunks: function( size, delay ) {
var len = this.getDataLength(),
i = 0,
n = 0,
Method privDuplicate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function privDuplicate($p_archive_filename)
{
$v_result=1;
// ----- Look if the $p_archive_filename exists
Method upgrade
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function upgrade($theme) {
$this->init();
$this->upgrade_strings();
Method upgrade_210
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function upgrade_210() {
global $wpdb, $wp_current_db_version;
if ( $wp_current_db_version < 3506 ) {
// Update status and type.
Method make_site_theme
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function make_site_theme() {
// Name the theme after the blog.
$theme_name = __get_option('blogname');
$template = sanitize_title($theme_name);
$site_dir = WP_CONTENT_DIR . "/themes/$template";
Method get_columns
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function get_columns() {
$posts_columns = array();
$posts_columns['cb'] = '<input type="checkbox" />';
$posts_columns['icon'] = '';
/* translators: column name */
Method prepare_items
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepare_items() {
global $role, $usersearch;
$usersearch = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : '';
Method wp_ajax_add_link_category
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_add_link_category( $action ) {
if ( empty( $action ) )
$action = 'add-link-category';
check_ajax_referer( $action );
if ( !current_user_can( 'manage_categories' ) )
Method wp_ajax_query_themes
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_query_themes() {
global $themes_allowedtags, $theme_field_defaults;
if ( ! current_user_can( 'install_themes' ) ) {
wp_send_json_error();
Method wp_ajax_dim_comment
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_dim_comment() {
$id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0;
if ( !$comment = get_comment( $id ) ) {
$x = new WP_Ajax_Response( array(
Method wp_ajax_wp_fullscreen_save_post
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_ajax_wp_fullscreen_save_post() {
$post_id = isset( $_POST['post_ID'] ) ? (int) $_POST['post_ID'] : 0;
$post = $post_type = null;
Method wp_doc_link_parse
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wp_doc_link_parse( $content ) {
if ( !is_string( $content ) || empty( $content ) )
return array();
if ( !function_exists('token_get_all') )
Method add_submenu_page
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function add_submenu_page( $parent, $page_title, $menu_title, $access_level, $file, $function = '' ) {
global $submenu;
global $menu;
global $_wp_real_parent_file;
global $_wp_submenu_nopriv;
Method step_3
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function step_3() {
check_admin_referer('custom-header');
if ( $_POST['oitar'] > 1 ) {
$_POST['x1'] = $_POST['x1'] * $_POST['oitar'];
$_POST['y1'] = $_POST['y1'] * $_POST['oitar'];
Method akismet_rightnow
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function akismet_rightnow() {
global $submenu, $wp_db_version;
if ( 8645 < $wp_db_version ) // 2.7
$link = 'edit-comments.php?comment_status=spam';
Method twentytwelve_widgets_init
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function twentytwelve_widgets_init() {
register_sidebar( array(
'name' => __( 'Main Sidebar', 'twentytwelve' ),
'id' => 'sidebar-1',
'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ),
Method http_post
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function http_post( $request, $path, $ip=null ) {
$akismet_ua = sprintf( 'WordPress/%s | Akismet/%s', $GLOBALS['wp_version'], constant( 'AKISMET_VERSION' ) );
$akismet_ua = apply_filters( 'akismet_ua', $akismet_ua );