Showing 4,652 of 306,333 total issues
Function build
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function build(filePath, isWatched = false) {
const outputFile = `../${filePath.replace('.js', '.vue.js')}`
const inputOptions = {
input: filePath,
external: 'vue',
Function callback
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function () {
let progressIndicatorElement = $.progressIndicator({
blockInfo: { enabled: true }
});
let formData = new FormData();
Function validate
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function (dependentFieldList) {
let field = this.getElement();
let fieldInfo = field.data('fieldinfo');
let fieldLabel = fieldInfo.label;
let contextFormElem = field.closest('form');
Method __create
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __create($moduleInstance)
{
$this->module = $moduleInstance;
$this->isdefault = (true === $this->isdefault || 'true' == $this->isdefault) ? 1 : 0;
$this->inmetrics = (true === $this->inmetrics || 'true' == $this->inmetrics) ? 1 : 0;
Method testCheckConditions
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testCheckConditions()
{
$recordModel = \Tests\Base\C_RecordActions::createSQuotesRecord();
$checkConditions = \App\Condition::checkConditions([
'condition' => 'AND',
Method updateUnlockStatus
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function updateUnlockStatus(int $id, int $status): void
{
\App\Db::getInstance()
->createCommand()
->update('u_#__interests_conflict_unlock', [
Method setUpBeforeClass
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function setUpBeforeClass(): void
{
if (!empty($_SERVER['YETI_MAIL_PASS'])) {
$db = \App\Db::getInstance();
$db->createCommand()
Method process
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(\App\Request $request)
{
if (\Config\Security::$forceHttpsRedirection && !\App\RequestUtil::isHttps()) {
header("location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}", true, 301);
}
Method getArray
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getArray($key, $type = false, $value = [], ?string $keyType = null)
{
if (isset($this->purifiedValuesByArray[$key])) {
return $this->purifiedValuesByArray[$key];
}
Method getVendorLibraries
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getVendorLibraries()
{
$libraries = [];
if (file_exists(ROOT_DIRECTORY . '/composer.lock')) {
$composerLock = \App\Json::decode(file_get_contents(ROOT_DIRECTORY . '/composer.lock'), true);
Method getRoomsUser
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getRoomsUser(?int $userId = null): array
{
if (empty($userId)) {
$userId = User::getCurrentUserId();
}
Method ram
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function ram(): array
{
$mathCountGroup = 1000;
$writeTime = $readTime = $readOperations = $writeOperations = 0;
for ($i = 0; $i < 5; ++$i) {
Method saveFromContent
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function saveFromContent(self $file, $params = [])
{
$notesTitle = $fileName = \App\Purifier::decodeHtml(\App\Purifier::purify($file->getName()));
$fileNameLength = \App\TextUtils::getTextLength($fileName);
$record = \Vtiger_Record_Model::getCleanInstance('Documents');
Method addAdditionalInvData
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function addAdditionalInvData(): array
{
$additionalData = [];
$additionalAmount = $this->data['grand_total'] - $this->data['subtotal_incl_tax'] - $this->data['discount_amount'] - $this->data['shipping_incl_tax'];
if (!empty($additionalAmount)) {
Method search
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function search(): array
{
if (!$this->isActive()) {
return [];
}
Method save
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function save()
{
$entityInstance = $this->getModule()->getEntityInstance();
$entityInstance->column_fields['user_name'] = $this->get('user_name');
if (!$this->isNew() && empty($this->getPreviousValue())) {
Method updateForeignKey
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateForeignKey(Base $importer)
{
if (!isset($importer->foreignKey)) {
return;
}
Method afterSaveToDb
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function afterSaveToDb()
{
$dbCommand = \App\Db::getInstance()->createCommand();
$this->cleanAttachments();
if ($this->isNew() || false !== $this->getPreviousValue('roleid') || false !== $this->getPreviousValue('is_admin')) {
Method importUserModuleStep3
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function importUserModuleStep3(App\Request $request)
{
$viewer = $this->getViewer($request);
$qualifiedModuleName = $request->getModule(false);
$importModuleName = $request->get('module_import_name');
Method process
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
if ($mode = $request->getMode()) {
$this->invokeExposedMethod($mode, $request);
} else {