Showing 4,652 of 306,333 total issues
Function source
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
source: function (request, response) {
AppConnector.request({
module: app.getModuleName(),
action: 'Fields',
mode: 'findAddress',
Function select
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
select: (_event, ui) => {
this.recordsIds.push(ui.item.id);
AppConnector.request({
module: 'OpenStreetMap',
action: 'ClipBoard',
Function uncheck_node
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.uncheck_node = function (obj, e) {
if (this.settings.checkbox.tie_selection) {
return this.deselect_node(obj, false, e);
}
var t1, t2, dom;
Function validate
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function () {
let response = this._super();
if (response !== true) {
return response;
}
Function confirmedCallback
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
confirmedCallback: () => {
let progressIndicatorElement = $.progressIndicator({
position: 'html',
blockInfo: {
enabled: true
Function generateTree
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateTree(container) {
const self = this;
if (self.treeInstance === false) {
self.treeInstance = container;
self.treeInstance
Method setEntityIdentifier
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setEntityIdentifier(FieldBasic $fieldInstance)
{
$db = \App\Db::getInstance();
if ($this->basetableid) {
Method getModuleData
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getModuleData($mixed)
{
if (empty($mixed)) {
\App\Log::error(__METHOD__ . ' - Required parameter missing');
Method testTranslate
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testTranslate()
{
$this->assertSame(
'+$(general : CurrentDate)$ | ' . \App\Language::translate('LBL_SECONDS') . '==' . \App\Language::translate('LBL_COPY_BILLING_ADDRESS', 'Accounts') . '+',
self::$parserClean->setContent('+$(general : CurrentDate)$ | $(translate : LBL_SECONDS)$==$(translate : Accounts|LBL_COPY_BILLING_ADDRESS)$+')->parseTranslations()->getContent(),
Method purifyHtml
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function purifyHtml(string $input, $loop = true): string
{
if (empty($input)) {
return $input;
}
Method initForCustomViewById
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function initForCustomViewById($viewId, $onlyFields = false)
{
$this->fields[] = 'id';
$customView = CustomView::getInstance($this->moduleName, $this->user);
foreach ($customView->getColumnsListByCvid($viewId) as $cvColumn) {
Method custom
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function custom($params)
{
$instance = null;
if (false !== strpos($params, '||')) {
$params = explode('||', $params);
Method getAll
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getAll()
{
if (!\App\RequestUtil::isNetConnection()) {
\App\Log::warning('ERR_NO_INTERNET_CONNECTION', __METHOD__);
return [];
Method validateHeaderCsp
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function validateHeaderCsp(string $name, array $row, string $sapi)
{
unset($sapi);
$header = strtolower(\str_replace('Header: ', '', $name));
$row['recommended'] = trim(\App\Controller\Headers::getInstance()->getCspHeader());
Method getRoomsCrm
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getRoomsCrm(?int $userId = null): array
{
if (empty($userId)) {
$userId = User::getCurrentUserId();
}
Method calculate
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function calculate()
{
if (!\App\RequestUtil::isNetConnection()) {
throw new \App\Exceptions\AppException('ERR_NO_INTERNET_CONNECTION');
}
Method getInfo
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInfo()
{
$pdo = $this->getSlavePdo();
$statement = $pdo->prepare('SHOW VARIABLES');
$statement->execute();
Method getById
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getById($crmId)
{
$values = [];
if (\is_array($crmId)) {
foreach ($crmId as $id) {
Method getOptions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getOptions(): array
{
$caPathOrFile = \Composer\CaBundle\CaBundle::getSystemCaRootBundlePath();
$options = [
'headers' => [
Method getDependencyForModule
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getDependencyForModule(string $moduleName)
{
if (\App\Cache::has('Picklist::getDependencyForModule', $moduleName)) {
return \App\Cache::get('Picklist::getDependencyForModule', $moduleName);
}