Showing 506 of 851 total issues
Function onok
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dialog.onok = function () {
var remote = false, list = [], id, tabs = $G('tabhead').children;
for (var i = 0; i < tabs.length; i++) {
if (domUtils.hasClass(tabs[i], 'focus')) {
id = tabs[i].getAttribute('data-content-id');
Function initColorPicker
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initColorPicker() {
var me = editor,
cp = $G("colorPicker");
/* 生成颜色选择器ui对象 */
Method addAnAddress
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function addAnAddress($kind, $address, $name = '')
{
if (!in_array($kind, array('to', 'cc', 'bcc', 'Reply-To'))) {
$error_message = $this->lang('Invalid recipient kind: ') . $kind;
$this->setError($error_message);
Method LoadDict
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function LoadDict($maindic = '')
{
$startt = microtime(true);
//正常读取文件
$dicAddon = $this->addonDicFile;
Function InitNewTagsEditor
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function InitNewTagsEditor() {
$("#AlternativeTag").keydown(function (e) {
var e = e || event;
switch (e.keyCode) {
case 13:
Function append
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
append: function(line) {
var mylen = this.text.length, mk = line.marked, mymk = this.marked;
this.text += line.text;
copyStyles(0, line.text.length, line.styles, this.styles);
if (mymk) {
Function Toast
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Toast = function (containerEl, opts) {
if (typeof containerEl === "string" || containerEl instanceof String) {
this.container = document.getElementById(containerEl);
} else {
Function setTabFocus
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setTabFocus(id) {
if(!id) return;
var i, bodyId, tabs = $G('tabhead').children;
for (i = 0; i < tabs.length; i++) {
bodyId = tabs[i].getAttribute('data-content-id');
Function getCodeLinesHtml
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getCodeLinesHtml: function(html, lineNumbers)
{
html = trim(html);
var lines = splitLines(html),
Function initEvents
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initEvents: function () {
var _this = this,
locker = $G('lock');
/* 改变url */
Method addAttachment
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function addAttachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment')
{
try {
if (!@is_file($path)) {
throw new phpmailerException($this->lang('file_access') . $path, self::STOP_CONTINUE);
Method searchLike
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function searchLike( $pKeywords, $index='*', $pStart = 0,
$pSize=12, $filter = '', $sort = '', $columns=array("ID") ) {
self::getSingle();
$sp = self::$sphinx;
empty( $sort ) || $sp->SetSortMode ( SPH_SORT_EXTENDED, $sort );
Method mailSend
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function mailSend($header, $body)
{
$toArr = array();
foreach ($this->to as $toaddr) {
$toArr[] = $this->addrFormat($toaddr);
Method parseHelloFields
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function parseHelloFields($type)
{
$this->server_caps = array();
$lines = explode("\n", $this->helo_rply);
Function loadMoreMessages
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadMoreMessages(forceToShow) {
var MessagesList = $("#MessagesList");
var InboxID = $("#InboxID").val();
var MessagesPage = $("#MessagesPage");
var MessagesLoading = $("#MessagesLoading");
Function onready
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onready: function () {
//从草稿中恢复
if (window.localStorage) {
if (typeof SaveDraftTimer !== "undefined") {
clearInterval(SaveDraftTimer);
Function loadMoreMessages
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadMoreMessages(forceToShow) {
var MessagesList = $("#MessagesList");
var InboxID = $("#InboxID").val();
var MessagesPage = $("#MessagesPage");
var MessagesLoading = $("#MessagesLoading");
Function redirectMouseToTouch
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var redirectMouseToTouch = function (type, originalEvent, newTarget,skipPrevent) {
var theTarget = newTarget ? newTarget : originalEvent.target;
if(!skipPrevent)
preventAllButInputs(originalEvent, theTarget);
Function updateFormState
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateFormState (radio, color, url, align, x, y) {
var nocolorRadio = $G('nocolorRadio'),
coloredRadio = $G('coloredRadio');
if(radio) {
Function Brush
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Brush()
{
var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
'current_user day isnull left lower month nullif replace right ' +
'session_user space substring sum system_user upper user year';