Showing 398 of 4,293 total issues
Method enqueueScripts
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function enqueueScripts()
{
global $post;
$post_id = ( !empty( $post->ID ) ) ? $post->ID : null;
Method prepareTemplateData
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function prepareTemplateData($data)
{
$options = $this->getArg('options', []);
if (is_callable($options)) {
$options = call_user_func($options, $this);
Function update
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function (ev, ui) {
if (!isValidModule()) {
return false;
}
Function geocode
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
geocode: function(query, cb, context) {
var params = {
address: query
};
Method toJSON
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
final public function toJSON()
{
$toJSON = array(
'envVars' => $this->context,
'settings' => $this->properties->settings,
Function reverse
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
reverse: function(location, scale, cb, context) {
var params = {
latlng: encodeURIComponent(location.lat) + ',' + encodeURIComponent(location.lng)
};
params = L.Util.extend(params, this.options.reverseQueryParams);
Function _parseResults
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_parseResults: function(data, bboxname) {
var results = [];
L.geoJson(data, {
pointToLayer: function(feature, latlng) {
return L.circleMarker(latlng);
Function geocode
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
geocode: function(query, cb, context) {
var params = {
address: query
};
Function update
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function () {
var that = this;
var refresh = false;
jQuery.ajax({
url: ajaxurl,
Function reverse
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
reverse: function(location, scale, cb, context) {
var params = {
latlng: encodeURIComponent(location.lat) + ',' + encodeURIComponent(location.lng)
};
params = L.Util.extend(params, this.options.reverseQueryParams);
Method save
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function save($postId, \WP_Post $postObj)
{
// auth request
if (!$this->auth($postId)) {
return false;
Method html
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function html()
{
$this->handleLoggedInUsers();
$format = '<%1$s id="%4$s" %3$s>%2$s</%1$s>';
$formatWithLink = '<%1$s id="%4$s" %3$s><a href="%5$s">%2$s</a></%1$s>';
Function openFrame
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
openFrame: function () {
var that = this;
if (this.frame) {
this.frame.dispose();
}
Function openModal
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
openModal: function () {
var that = this;
// opens dialog if not already declared
if (this._frame) {
Function openModal
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
openModal: function () {
var that = this;
// opens dialog if not already declared
if (this._frame) {
Function initialize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function (options) {
var that = this;
// CategoryView
this.controller = options.controller;
// ModuleListController
Method action
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected static function action(Request $request)
{
$data = $request->request->filter('data', array(), FILTER_DEFAULT);
// bail if essentials are missing
Method getDefaultContextLayout
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getDefaultContextLayout()
{
$defaults = array(
'top' => array(
'id' => 'top',
Method setupMenu
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setupMenu()
{
if (!$this->menu) {
return false;
}
Method setupDiff
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setupDiff()
{
$trans = get_transient('kb_dynamic_areas');
if (!$trans) {