@@ -30,7 +30,7 @@ |
||
| 30 | 30 | foreach (static::$extendedOperators as $exo) { |
| 31 | 31 | if (false !== strpos($valueToCondition, $exo) && false === $operatorWasFound) { |
| 32 | 32 | $ev = explode($exo, $valueToCondition); |
| 33 | - $condition[] = [$exo, $this->getColumnName(), $ev[1]]; |
|
| 33 | + $condition[] = [$exo, $this->getColumnName(), $ev[1]]; |
|
| 34 | 34 | $conditionFound = true; |
| 35 | 35 | $operatorWasFound = true; |
| 36 | 36 | } |
@@ -236,7 +236,7 @@ |
||
| 236 | 236 | $currencyId = $this->convertCurrency($this->row['SYM_WAL'], []); |
| 237 | 237 | } |
| 238 | 238 | $currencyParam = \App\Json::encode($this->getCurrencyParam($currencyId)); |
| 239 | - $dataReader = (new \App\Db\Query())->select(['ID_ARTYKULU', 'ILOSC', 'KOD_VAT', 'CENA_NETTO', 'JEDNOSTKA', 'OPIS', 'RABAT', 'RABAT2', 'CENA_NETTO_WAL']) |
|
| 239 | + $dataReader = (new \App\Db\Query())->select(['ID_ARTYKULU', 'ILOSC', 'KOD_VAT', 'CENA_NETTO', 'JEDNOSTKA', 'OPIS', 'RABAT', 'RABAT2', 'CENA_NETTO_WAL']) |
|
| 240 | 240 | ->from('dbo.POZYCJA_DOKUMENTU_MAGAZYNOWEGO') |
| 241 | 241 | ->where(['ID_DOK_HANDLOWEGO' => $this->waproId]) |
| 242 | 242 | ->createCommand($this->controller->getDb())->query(); |
@@ -202,7 +202,7 @@ |
||
| 202 | 202 | } |
| 203 | 203 | $teaser = $css = $btn = ''; |
| 204 | 204 | $loadData = $iframe = true; |
| 205 | - $btnTemplate = function (string $popoverText = '', ?string $btnClass = '', string $data = 'data-iframe="true"'): string { |
|
| 205 | + $btnTemplate = function(string $popoverText = '', ?string $btnClass = '', string $data = 'data-iframe="true"'): string { |
|
| 206 | 206 | $popoverText = \App\Language::translate($popoverText); |
| 207 | 207 | return "<a href=\"#\" class=\"js-more noLinkBtn font-weight-lighter js-popover-tooltip ml-2 {$btnClass}\" {$data} data-content=\"{$popoverText}\"><span class=\"mdi mdi-overscan\"></span></a>"; |
| 208 | 208 | }; |
@@ -637,10 +637,10 @@ |
||
| 637 | 637 | 'or', |
| 638 | 638 | ['like', 'position', "\"$fingerPrint\""], |
| 639 | 639 | ['like', 'size', "\"$fingerPrint\""], |
| 640 | - ], )->createCommand()->query(); |
|
| 640 | + ],)->createCommand()->query(); |
|
| 641 | 641 | |
| 642 | 642 | $createCommand = \App\Db::getInstance()->createCommand(); |
| 643 | - while (['id' => $id,'position' => $position,'size' => $size] = $dataReader->read()) { |
|
| 643 | + while (['id' => $id, 'position' => $position, 'size' => $size] = $dataReader->read()) { |
|
| 644 | 644 | $position = $position ? Json::decode($position) : []; |
| 645 | 645 | if (isset($position[$fingerPrint])) { |
| 646 | 646 | unset($position[$fingerPrint]); |
@@ -215,7 +215,7 @@ |
||
| 215 | 215 | */ |
| 216 | 216 | private function parseData(array $data): array |
| 217 | 217 | { |
| 218 | - unset($data['northDataUrl'],$data['id']); |
|
| 218 | + unset($data['northDataUrl'], $data['id']); |
|
| 219 | 219 | $data['address']['country'] = \App\Fields\Country::getCountryName($data['address']['country']); |
| 220 | 220 | if (isset($data['segmentCodes']['isic'])) { |
| 221 | 221 | $data['segmentCodes']['isic'] = implode(', ', $data['segmentCodes']['isic']); |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | 'imap_host' => [ |
| 10 | 10 | 'default' => ['ssl://imap.gmail.com:993' => 'ssl://imap.gmail.com:993'], |
| 11 | 11 | 'description' => 'Default host.', |
| 12 | - 'validation' => function () { |
|
| 12 | + 'validation' => function() { |
|
| 13 | 13 | $arg = func_get_arg(0); |
| 14 | 14 | if (!$arg) { |
| 15 | 15 | return false; |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | } |
| 23 | 23 | return true; |
| 24 | 24 | }, |
| 25 | - 'sanitization' => function () { |
|
| 25 | + 'sanitization' => function() { |
|
| 26 | 26 | $values = func_get_arg(0); |
| 27 | 27 | if (!\is_array($values)) { |
| 28 | 28 | $values = [$values]; |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | 'smtp_host' => [ |
| 39 | 39 | 'default' => 'ssl://smtp.gmail.com:465', |
| 40 | 40 | 'description' => 'Name of SMTP server', |
| 41 | - 'validation' => function () { |
|
| 41 | + 'validation' => function() { |
|
| 42 | 42 | $arg = func_get_arg(0); |
| 43 | 43 | return $arg && \App\Validator::url($arg); |
| 44 | 44 | }, |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | 'username_domain' => [ |
| 48 | 48 | 'default' => 'gmail.com', |
| 49 | 49 | 'description' => 'User name domain', |
| 50 | - 'validation' => function () { |
|
| 50 | + 'validation' => function() { |
|
| 51 | 51 | $arg = func_get_arg(0); |
| 52 | 52 | return '' === $arg || \App\Validator::domain($arg); |
| 53 | 53 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | 'smtp_user' => [ |
| 72 | 72 | 'default' => '%u', |
| 73 | 73 | 'description' => 'Login to SMTP server', |
| 74 | - 'validation' => function () { |
|
| 74 | + 'validation' => function() { |
|
| 75 | 75 | $arg = func_get_arg(0); |
| 76 | 76 | return $arg && !is_numeric($arg) && \is_string($arg) && $arg === strip_tags($arg) && 256 > \App\TextUtils::getTextLength($arg); |
| 77 | 77 | }, |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | 'smtp_pass' => [ |
| 81 | 81 | 'default' => '%p', |
| 82 | 82 | 'description' => "SMTP password (if required) if you use %p as the password Roundcube will use the current user's password for login", |
| 83 | - 'validation' => function () { |
|
| 83 | + 'validation' => function() { |
|
| 84 | 84 | $arg = func_get_arg(0); |
| 85 | 85 | return !empty($arg) && 256 > \App\TextUtils::getTextLength($arg); |
| 86 | 86 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | 'language' => [ |
| 89 | 89 | 'default' => 'en_US', |
| 90 | 90 | 'description' => 'Set default language', |
| 91 | - 'validation' => function () { |
|
| 91 | + 'validation' => function() { |
|
| 92 | 92 | $arg = func_get_arg(0); |
| 93 | 93 | return $arg && \in_array($arg, \Settings_OSSMail_Config_Model::LANGUAGES); |
| 94 | 94 | } |
@@ -96,11 +96,11 @@ discard block |
||
| 96 | 96 | 'skin_logo' => [ |
| 97 | 97 | 'default' => '/images/null.png', |
| 98 | 98 | 'description' => 'Skin logo', |
| 99 | - 'validation' => function () { |
|
| 99 | + 'validation' => function() { |
|
| 100 | 100 | $arg = func_get_arg(0); |
| 101 | 101 | return !empty($arg) && \App\Purifier::purify($arg); |
| 102 | 102 | }, |
| 103 | - 'sanitization' => function () { |
|
| 103 | + 'sanitization' => function() { |
|
| 104 | 104 | $arg = func_get_arg(0); |
| 105 | 105 | return ['*' => \App\Purifier::encodeHtml($arg)]; |
| 106 | 106 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | 'identities_level' => [ |
| 121 | 121 | 'default' => 0, |
| 122 | 122 | 'description' => 'Identities level.', |
| 123 | - 'validation' => function () { |
|
| 123 | + 'validation' => function() { |
|
| 124 | 124 | $arg = func_get_arg(0); |
| 125 | 125 | return is_numeric($arg) && \in_array($arg, [0, 1, 2, 3, 4]); |
| 126 | 126 | }, |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | 'useragent' => [ |
| 334 | 334 | 'default' => 'YetiForce Webmail', |
| 335 | 335 | 'description' => 'Add this user-agent to message headers when sending', |
| 336 | - 'validation' => function () { |
|
| 336 | + 'validation' => function() { |
|
| 337 | 337 | $arg = func_get_arg(0); |
| 338 | 338 | return $arg && \App\Purifier::purify($arg); |
| 339 | 339 | }, |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | 'linkicon' => ($isActive ? 'yfi-share-portal-record' : 'yfi-unshare-portal-record'), |
| 62 | 62 | 'linkclass' => 'js-action-confirm btn-sm ' . self::BTN_CLASS[$source][$isActive], |
| 63 | 63 | 'dataUrl' => "index.php?module={$recordModel->getModuleName()}&action=SaveAjax&record={$recordModel->getId()}&field={$fieldName}&value=" . ($isActive ? 0 : 1), |
| 64 | - 'linkdata' => ['add-btn-icon' => 1, 'source-view' => $source], |
|
| 64 | + 'linkdata' => ['add-btn-icon' => 1, 'source-view' => $source], |
|
| 65 | 65 | ]); |
| 66 | 66 | } else { |
| 67 | 67 | $return = \Vtiger_Link_Model::getInstanceFromValues([ |
@@ -227,7 +227,7 @@ |
||
| 227 | 227 | \App\Log::trace('Start', __METHOD__); |
| 228 | 228 | $query = (new \App\Db\Query())->select([ |
| 229 | 229 | 'dav_calendarobjects.*', |
| 230 | - 'vtiger_crmentity.modifiedtime', 'vtiger_crmentity.setype', 'assigned_user_id' => 'vtiger_crmentity.smownerid', |
|
| 230 | + 'vtiger_crmentity.modifiedtime', 'vtiger_crmentity.setype', 'assigned_user_id' => 'vtiger_crmentity.smownerid', |
|
| 231 | 231 | 'vtiger_crmentity.crmid', 'vtiger_crmentity.deleted', 'vtiger_activity.visibility' |
| 232 | 232 | ])->from('dav_calendarobjects') |
| 233 | 233 | ->leftJoin('vtiger_crmentity', 'vtiger_crmentity.crmid = dav_calendarobjects.crmid') |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | 'defaultSource' => [ |
| 10 | 10 | 'default' => ['current'], |
| 11 | 11 | 'description' => "Default record loading.\nValues available: ['current', 'related'].", |
| 12 | - 'validation' => function () { |
|
| 12 | + 'validation' => function() { |
|
| 13 | 13 | $arg = func_get_arg(0); |
| 14 | 14 | return \is_array($arg) && !array_diff($arg, ['current', 'related']); |
| 15 | 15 | }, |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | 'dateFormat' => [ |
| 19 | 19 | 'default' => 'user', |
| 20 | 20 | 'description' => "Date display mode in comments, values available: \n`user` - based on user settings, the view_date_format field \n`displayDate` - date and time in user format.", |
| 21 | - 'validation' => function () { |
|
| 21 | + 'validation' => function() { |
|
| 22 | 22 | $arg = func_get_arg(0); |
| 23 | 23 | return \is_array($arg) && !array_diff($arg, ['user', 'displayDate']); |
| 24 | 24 | }, |