Showing 4,652 of 306,333 total issues
Method getLabel
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getLabel($mixedId)
{
$multiMode = \is_array($mixedId);
$ids = $multiMode ? $mixedId : [$mixedId];
$missing = [];
Method rename
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function rename()
{
$newValue = $this->name;
$previousValue = $this->getPreviousValue('name');
$fieldName = $this->fieldModel->getName();
Method process
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(): int
{
$dataReader = (new \App\Db\Query())->from('dbo.FIRMA')
->leftJoin('dbo.ADRESY_FIRMY', 'dbo.FIRMA.ID_ADRESU_DOMYSLNEGO = dbo.ADRESY_FIRMY.ID_ADRESY_FIRMY')
->where(['>', 'dbo.FIRMA.ID_FIRMY', 0])->createCommand($this->controller->getDb())->query();
Method getDataFromApi
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getDataFromApi($params): void
{
$params['format'] = 'json';
if (!empty($this->token)) {
$params['token'] = $this->token;
Method send
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function send(): bool
{
$eventHandler = new EventHandler();
$eventHandler->setParams(['mailer' => $this]);
$eventHandler->trigger('MailerBeforeSend');
Method getListViewMassActions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getListViewMassActions($linkParams)
{
$links['LISTVIEWMASSACTION'] = [];
$massActionLinks = [];
if ('Users' === $linkParams['MODULE'] && 'List' === $linkParams['ACTION'] && App\User::getCurrentUserModel()->isAdmin()) {
Method getHeaderLinks
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getHeaderLinks(): array
{
$links = [];
$detailUrl = $this->recordModel->getFullDetailViewUrl();
$editUrl = $this->recordModel->isEditable() ? $this->recordModel->getEditViewUrl() : '';
Method process
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$userModel = \App\User::getCurrentUserModel();
$groupId = $request->getInteger('groupID');
if ($userModel->isAdmin()) {
Method getRecordLinks
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getRecordLinks(): array
{
$links = [];
$recordLinks = [
Method getRecordLinks
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getRecordLinks(): array
{
$links = [];
$recordLinks = [
Method getRecordLinks
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getRecordLinks(): array
{
$links = [];
$recordLinks = [
[
Method process
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$mode = $request->getMode();
if (!empty($mode)) {
echo $this->invokeExposedMethod($mode, $request);
Method delete
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function delete($transferToRole)
{
$db = App\Db::getInstance();
$roleId = $this->getId();
$transferRoleId = $transferToRole->getId();
Method getRecordLinks
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getRecordLinks(): array
{
$recordLinks = [
[
'linktype' => 'LISTVIEWRECORD',
Method updateBlockedIp
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateBlockedIp()
{
\App\Log::trace('Start ' . __METHOD__);
$db = \App\Db::getInstance('admin');
$time = $this->get('timelock');
Method getFields
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getFields(string $moduleName): array
{
$config = App\Config::module('MailIntegration', null, []);
$outlookUrls = $config['outlookUrls'] ?? [];
$fields = [
Method addTranslation
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function addTranslation(App\Request $request)
{
$moduleName = $request->getModule(false);
try {
$langs = $request->getArray('langs', 1);
Method process
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$db = \App\Db::getInstance('admin');
$dbCommand = $db->createCommand();
if (\in_array($request->getMode(), ['forVerification', 'toSend', 'request'])) {
Method createMenu
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createMenu(App\Request $request)
{
$data = $request->getMultiDimensionArray('mdata', [
'type' => 'Alnum',
'module' => 'Alnum',
Method insertIntoActivityReminderPopup
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function insertIntoActivityReminderPopup()
{
$cbrecord = $this->getId();
if (!empty($cbrecord)) {
$cbdate = $this->get('date_start');