@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | //Override the default expire time of token |
| 19 | 19 | \CsrfMagic\Csrf::$expires = 259200; |
| 20 | - \CsrfMagic\Csrf::$callback = function ($tokens) { |
|
| 20 | + \CsrfMagic\Csrf::$callback = function($tokens) { |
|
| 21 | 21 | throw new \App\Exceptions\AppException('Invalid request - Response For Illegal Access', 403); |
| 22 | 22 | }; |
| 23 | 23 | $js = 'vendor/yetiforce/csrf-magic/src/Csrf.min.js'; |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | } |
| 64 | 64 | } |
| 65 | 65 | } else { |
| 66 | - $bitmapValues = array_reduce(self::$levelMap, function ($carry, $item) { |
|
| 66 | + $bitmapValues = array_reduce(self::$levelMap, function($carry, $item) { |
|
| 67 | 67 | return $carry | $item; |
| 68 | 68 | }); |
| 69 | 69 | if (!($bitmapValues & $levels) && 0 !== $levels) { |
@@ -634,7 +634,7 @@ |
||
| 634 | 634 | $lastMessagesData[] = $roomLastMessage; |
| 635 | 635 | } |
| 636 | 636 | } |
| 637 | - $lastMessage = array_reduce($lastMessagesData, function ($a, $b) { |
|
| 637 | + $lastMessage = array_reduce($lastMessagesData, function($a, $b) { |
|
| 638 | 638 | return $a['created'] > $b['created'] ? $a : $b; |
| 639 | 639 | }); |
| 640 | 640 | if (isset($lastMessage)) { |
@@ -675,7 +675,7 @@ |
||
| 675 | 675 | ->innerJoin('vtiger_customview', 'vtiger_cvcolumnlist.cvid = vtiger_customview.cvid') |
| 676 | 676 | ->where(['vtiger_customview.cvid' => $cvId])->orderBy('vtiger_cvcolumnlist.columnindex') |
| 677 | 677 | ->createCommand()->queryAllByGroup(1); |
| 678 | - return array_map(function ($item) { |
|
| 678 | + return array_map(function($item) { |
|
| 679 | 679 | return "{$item['field_name']}:{$item['module_name']}" . ($item['source_field_name'] ? ":{$item['source_field_name']}" : ''); |
| 680 | 680 | }, $selectedFields); |
| 681 | 681 | } |
@@ -212,7 +212,7 @@ |
||
| 212 | 212 | $operator = $condition['operator']; |
| 213 | 213 | $value = $condition['value'] ?? ''; |
| 214 | 214 | if (!\in_array($operator, self::OPERATORS_WITHOUT_VALUES + array_keys(self::DATE_OPERATORS))) { |
| 215 | - [$fieldName, $fieldModuleName,] = array_pad(explode(':', $condition['fieldname']), 3, false); |
|
| 215 | + [$fieldName, $fieldModuleName, ] = array_pad(explode(':', $condition['fieldname']), 3, false); |
|
| 216 | 216 | $value = \Vtiger_Field_Model::getInstance($fieldName, \Vtiger_Module_Model::getInstance($fieldModuleName)) |
| 217 | 217 | ->getUITypeModel() |
| 218 | 218 | ->getDbConditionBuilderValue($value, $operator); |
@@ -73,14 +73,14 @@ discard block |
||
| 73 | 73 | $emojis = static::getEmojis(); |
| 74 | 74 | $textOut = \preg_replace_callback( |
| 75 | 75 | static::EMOJI_REGEX, |
| 76 | - function (array $matches) use ($emojis) { |
|
| 76 | + function(array $matches) use ($emojis) { |
|
| 77 | 77 | return $emojis[$matches[0]] ?? $matches[0]; |
| 78 | 78 | }, |
| 79 | 79 | $text |
| 80 | 80 | ); |
| 81 | 81 | return \preg_replace_callback( |
| 82 | 82 | static::ROW_REGEX, |
| 83 | - function (array $matches) use ($format) { |
|
| 83 | + function(array $matches) use ($format) { |
|
| 84 | 84 | return static::decodeRow($matches[0], $matches[1], (int) $matches[2], $matches[3], $format); |
| 85 | 85 | }, |
| 86 | 86 | $textOut |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $emojis = static::getEmojis(); |
| 100 | 100 | return \preg_replace_callback( |
| 101 | 101 | static::EMOJI_REGEX, |
| 102 | - function (array $matches) use ($emojis) { |
|
| 102 | + function(array $matches) use ($emojis) { |
|
| 103 | 103 | return $emojis[$matches[0]] ?? $matches[0]; |
| 104 | 104 | }, |
| 105 | 105 | $text |
@@ -120,14 +120,14 @@ discard block |
||
| 120 | 120 | $emojis = static::getEmojis(); |
| 121 | 121 | $textOut = \preg_replace_callback( |
| 122 | 122 | static::EMOJI_REGEX, |
| 123 | - function (array $matches) use ($emojis) { |
|
| 123 | + function(array $matches) use ($emojis) { |
|
| 124 | 124 | return $emojis[$matches[0]] ?? $matches[0]; |
| 125 | 125 | }, |
| 126 | 126 | $text |
| 127 | 127 | ); |
| 128 | 128 | return \preg_replace_callback( |
| 129 | 129 | static::ROW_REGEX, |
| 130 | - function (array $matches) { |
|
| 130 | + function(array $matches) { |
|
| 131 | 131 | $type = $matches[1]; |
| 132 | 132 | $id = (int) $matches[2]; |
| 133 | 133 | if (self::OWNER_SEPARATOR === $type) { |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | { |
| 186 | 186 | return \preg_replace_callback( |
| 187 | 187 | "/<a\\s+[^>]*data-id=(?:\"|')(.)(\\d+)(?:\"|')[^>]*>[^<]+<\\/a>/i", |
| 188 | - function (array $matches) { |
|
| 188 | + function(array $matches) { |
|
| 189 | 189 | $type = $matches[1]; |
| 190 | 190 | $recordName = strip_tags($matches[0]); |
| 191 | 191 | return "{$type}{$type}{$matches[2]}_{$recordName}{$type}{$type}"; |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $tabIds = (new \App\Db\Query()) |
| 78 | 78 | ->select(['fieldid', 'tabid']) |
| 79 | 79 | ->from('vtiger_field') |
| 80 | - ->where(['and', ['<>', 'presence', 1], ['uitype' => 305], ['and', ['like', 'fieldparams', '"field":"' . $id . '"']] |
|
| 80 | + ->where(['and', ['<>', 'presence', 1], ['uitype' => 305], ['and', ['like', 'fieldparams', '"field":"' . $id . '"']] |
|
| 81 | 81 | ])->createCommand()->queryAllByGroup(); |
| 82 | 82 | foreach ($tabIds as $fieldId => $tabId) { |
| 83 | 83 | $sourceModule = \App\Module::getModuleName($tabId); |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | 'Š' => 'S', 'Ț' => 'T', 'Ù' => 'U', 'Û' => 'U', 'Ú' => 'U', 'Ü' => 'Ue', 'Ý' => 'Y', 'Ź' => 'Z', 'Ž' => 'Z', |
| 202 | 202 | 'Ż' => 'Z', 'â' => 'a', 'ǎ' => 'a', 'ą' => 'a', 'á' => 'a', 'ă' => 'a', 'ã' => 'a', 'Ǎ' => 'a', 'а' => 'a', |
| 203 | 203 | 'А' => 'a', 'å' => 'a', 'à' => 'a', 'א' => 'a', 'Ǻ' => 'a', 'Ā' => 'a', 'ǻ' => 'a', 'ā' => 'a', 'ä' => 'ae', |
| 204 | - 'æ' => 'ae', 'Ǽ' => 'ae', 'ǽ' => 'ae', 'б' => 'b', 'ב' => 'b', 'Б' => 'b', 'þ' => 'b', 'ĉ' => 'c', 'Ĉ' => 'c', |
|
| 204 | + 'æ' => 'ae', 'Ǽ' => 'ae', 'ǽ' => 'ae', 'б' => 'b', 'ב' => 'b', 'Б' => 'b', 'þ' => 'b', 'ĉ' => 'c', 'Ĉ' => 'c', |
|
| 205 | 205 | 'Ċ' => 'c', 'ć' => 'c', 'ç' => 'c', 'ц' => 'c', 'צ' => 'c', 'ċ' => 'c', 'Ц' => 'c', 'Č' => 'c', 'č' => 'c', |
| 206 | 206 | 'Ч' => 'ch', 'ч' => 'ch', 'ד' => 'd', 'ď' => 'd', 'Đ' => 'd', 'Ď' => 'd', 'đ' => 'd', 'д' => 'd', 'Д' => 'D', |
| 207 | 207 | 'ð' => 'd', 'є' => 'e', 'ע' => 'e', 'е' => 'e', 'Е' => 'e', 'Ə' => 'e', 'ę' => 'e', 'ĕ' => 'e', 'ē' => 'e', |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | 'ы' => 'y', 'ŷ' => 'y', 'ý' => 'y', 'ÿ' => 'y', 'Ÿ' => 'y', 'Ŷ' => 'y', 'Ы' => 'y', 'ž' => 'z', 'З' => 'z', |
| 232 | 232 | 'з' => 'z', 'ź' => 'z', 'ז' => 'z', 'ż' => 'z', 'ſ' => 'z', 'Ж' => 'zh', 'ж' => 'zh', 'Ð' => 'D', 'Θ' => '8', |
| 233 | 233 | '©' => '(c)', 'Α' => 'A', 'Β' => 'B', 'Γ' => 'G', 'Δ' => 'D', 'Ε' => 'E', 'Ζ' => 'Z', 'Η' => 'H', 'Ι' => 'I', |
| 234 | - 'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Ξ' => '3', 'Ο' => 'O', 'Π' => 'P', 'Ρ' => 'R', 'Σ' => 'S', |
|
| 234 | + 'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Ξ' => '3', 'Ο' => 'O', 'Π' => 'P', 'Ρ' => 'R', 'Σ' => 'S', |
|
| 235 | 235 | 'Τ' => 'T', 'Υ' => 'Y', 'Φ' => 'F', 'Χ' => 'X', 'Ψ' => 'PS', 'Ω' => 'W', 'Ά' => 'A', 'Έ' => 'E', 'Ί' => 'I', |
| 236 | 236 | 'Ό' => 'O', 'Ύ' => 'Y', 'Ή' => 'H', 'Ώ' => 'W', 'Ϊ' => 'I', 'Ϋ' => 'Y', 'α' => 'a', 'β' => 'b', 'γ' => 'g', |
| 237 | 237 | 'δ' => 'd', 'ε' => 'e', 'ζ' => 'z', 'η' => 'h', 'θ' => '8', 'ι' => 'i', 'κ' => 'k', 'λ' => 'l', 'μ' => 'm', |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $validator = []; |
| 20 | 20 | if ('estimated_date' === $this->getName()) { |
| 21 | 21 | $validator[] = ['name' => 'greaterThanDependentField', |
| 22 | - 'params' => ['startdate', $this->getName()], ]; |
|
| 22 | + 'params' => ['startdate', $this->getName()], ]; |
|
| 23 | 23 | } elseif ('estimated_margin' === $this->getName()) { |
| 24 | 24 | $validator[] = ['name' => 'lessThanDependentField', |
| 25 | 25 | 'params' => ['estimated', $this->getName()], ]; |