@@ -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) { |
@@ -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 | } |
@@ -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}"; |
@@ -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()], ]; |
@@ -65,7 +65,7 @@ |
||
65 | 65 | 'store_code' => ['required' => 1, 'default' => 'all', 'purifyType' => 'Alnum'], |
66 | 66 | 'store_id' => ['required' => 1, 'default' => 1, 'min' => 1, 'purifyType' => 'Integer'], |
67 | 67 | 'storage_id' => ['required' => 0, 'default' => 0, 'tooltip' => true, 'purifyType' => 'Integer'], |
68 | - 'storage_quantity_location' => ['required' => 1, 'tooltip' => true, 'default' => 'Products', 'purifyType' => 'Text'], |
|
68 | + 'storage_quantity_location' => ['required' => 1, 'tooltip' => true, 'default' => 'Products', 'purifyType' => 'Text'], |
|
69 | 69 | 'shipping_service_id' => ['required' => 0, 'default' => 0, 'tooltip' => true, 'min' => 0, 'purifyType' => 'Integer'], |
70 | 70 | 'payment_paypal_service_id' => ['required' => 0, 'default' => 0, 'tooltip' => true, 'min' => 0, 'purifyType' => 'Integer'], |
71 | 71 | 'payment_cash_service_id' => ['required' => 0, 'default' => 0, 'tooltip' => true, 'min' => 0, 'purifyType' => 'Integer'], |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $this->mailer = new \PHPMailer\PHPMailer\PHPMailer(false); |
39 | 39 | if (\App\Config::debug('MAILER_DEBUG')) { |
40 | 40 | $this->mailer->SMTPDebug = 2; |
41 | - $this->mailer->Debugoutput = function ($str, $level) { |
|
41 | + $this->mailer->Debugoutput = function($str, $level) { |
|
42 | 42 | if (false !== stripos($str, 'error') || false !== stripos($str, 'failed')) { |
43 | 43 | static::$error[] = $str; |
44 | 44 | Log::error(trim($str), 'Mailer'); |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | { |
453 | 453 | $this->mailer->SMTPDebug = 2; |
454 | 454 | static::$error = []; |
455 | - $this->mailer->Debugoutput = function ($str, $level) { |
|
455 | + $this->mailer->Debugoutput = function($str, $level) { |
|
456 | 456 | if (false !== strpos(strtolower($str), 'error') || false !== strpos(strtolower($str), 'failed')) { |
457 | 457 | static::$error[] = trim($str); |
458 | 458 | Log::error(trim($str), 'Mailer'); |
@@ -79,7 +79,7 @@ |
||
79 | 79 | } |
80 | 80 | $dataCrm['accountid'] = $dataCrm['parent_id']; |
81 | 81 | $dataCrm['parent_id'] = $parentOrder; |
82 | - unset($dataCrm['birthday'],$dataCrm['leadsource'],$dataCrm['mobile'],$dataCrm['mobile_extra'],$dataCrm['phone'],$dataCrm['phone_extra'],$dataCrm['salutationtype']); |
|
82 | + unset($dataCrm['birthday'], $dataCrm['leadsource'], $dataCrm['mobile'], $dataCrm['mobile_extra'], $dataCrm['phone'], $dataCrm['phone_extra'], $dataCrm['salutationtype']); |
|
83 | 83 | $dataCrm['magento_id'] = $order['entity_id']; |
84 | 84 | $mapModel->setDataCrm($dataCrm); |
85 | 85 | $crmId = $this->createOrderInCrm($mapModel); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | 'default' => 50, |
15 | 15 | 'description' => 'Max depth of hierarchy', |
16 | 16 | 'validation' => '\App\Validator::naturalNumber', |
17 | - 'sanitization' => function () { |
|
17 | + 'sanitization' => function() { |
|
18 | 18 | return (int) func_get_arg(0); |
19 | 19 | } |
20 | 20 | ], |