@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | // maximum file size for uploaded files in bytes also used when uploading import files |
| 75 | 75 | // upload_maxsize default value = 3000000 |
| 76 | -$upload_maxsize = 52428800; // 50MB |
|
| 76 | +$upload_maxsize = 52428800; // 50MB |
|
| 77 | 77 | // flag to allow export functionality |
| 78 | 78 | // 'all' to allow anyone to use exports |
| 79 | 79 | // 'admin' to only allow admins to export |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | if ($tabid === self::IGNORE_MODULE) { |
| 184 | 184 | $permittedTabIdList = \vtlib\Deprecated::getPermittedModuleIdList(); |
| 185 | 185 | if (!empty($permittedTabIdList)) { |
| 186 | - $permittedTabIdList[] = 0; // Added to support one link for all modules |
|
| 186 | + $permittedTabIdList[] = 0; // Added to support one link for all modules |
|
| 187 | 187 | foreach ($permittedTabIdList as $moduleId) { |
| 188 | 188 | foreach ($type as $typ) { |
| 189 | 189 | if (isset($rows[$moduleId][$typ])) { |
@@ -740,7 +740,7 @@ |
||
| 740 | 740 | public function generateQuestionMarks($items) |
| 741 | 741 | { |
| 742 | 742 | // array_map will call the function specified in the first parameter for every element of the list in second parameter |
| 743 | - return implode(',', array_map(function ($a) { |
|
| 743 | + return implode(',', array_map(function($a) { |
|
| 744 | 744 | return '?'; |
| 745 | 745 | }, is_array($items) ? $items : explode(',', $items))); |
| 746 | 746 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $recepients = explode(',', $recepient); |
| 33 | 33 | $toNumbers = []; |
| 34 | 34 | foreach ($recepients as $toNumber) { |
| 35 | - $parseNumber = preg_replace_callback('/[^\d]/s', function ($m) { |
|
| 35 | + $parseNumber = preg_replace_callback('/[^\d]/s', function($m) { |
|
| 36 | 36 | return ''; |
| 37 | 37 | }, $toNumber); |
| 38 | 38 | if (!empty($parseNumber) && !in_array($parseNumber, $toNumbers)) { |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $numberSelected = false; |
| 48 | 48 | foreach ($phoneFieldList as $fieldName) { |
| 49 | 49 | if (!empty($row[$fieldName])) { |
| 50 | - $toNumbers[] = preg_replace_callback('/[^\d]/s', function ($m) { |
|
| 50 | + $toNumbers[] = preg_replace_callback('/[^\d]/s', function($m) { |
|
| 51 | 51 | return ''; |
| 52 | 52 | }, $row[$fieldName]); |
| 53 | 53 | $numberSelected = true; |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | if ($time['date'] == $dateParam) { |
| 119 | 119 | $num = count($time->Rate); |
| 120 | 120 | for ($i = 0; $i < $num; ++$i) { |
| 121 | - $currency = (string) $time->Rate[$i]['currency']; // currency code |
|
| 121 | + $currency = (string) $time->Rate[$i]['currency']; // currency code |
|
| 122 | 122 | foreach ($otherCurrencyCode as $key => $currId) { |
| 123 | 123 | if ($key == $currency && $currency != $mainCurrency) { |
| 124 | 124 | $exchange = $time->Rate[$i]; |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | if ($time['time'] == $dateParam) { |
| 125 | 125 | $num = count($time->Cube); |
| 126 | 126 | for ($i = 0; $i < $num; ++$i) { |
| 127 | - $currency = (string) $time->Cube[$i]['currency']; // currency code |
|
| 127 | + $currency = (string) $time->Cube[$i]['currency']; // currency code |
|
| 128 | 128 | foreach ($otherCurrencyCode as $key => $currId) { |
| 129 | 129 | if ($key == $currency && $currency != $mainCurrency) { |
| 130 | 130 | $exchange = $time->Cube[$i]['rate']; |
@@ -34,11 +34,11 @@ |
||
| 34 | 34 | $html .= "<hr><strong>$type</strong><ul>"; |
| 35 | 35 | foreach ($entries[$typeId] as $notification) { |
| 36 | 36 | $title = preg_replace_callback( |
| 37 | - $pattern, function ($matches) { |
|
| 37 | + $pattern, function($matches) { |
|
| 38 | 38 | return \AppConfig::main('site_URL') . $matches[0]; |
| 39 | 39 | }, $notification->getTitle()); |
| 40 | 40 | $massage = preg_replace_callback( |
| 41 | - $pattern, function ($matches) { |
|
| 41 | + $pattern, function($matches) { |
|
| 42 | 42 | return \AppConfig::main('site_URL') . $matches[0]; |
| 43 | 43 | }, $notification->getMessage()); |
| 44 | 44 | $html .= "<li>$title<br />$massage</li>"; |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function getArrayValue() |
| 30 | 30 | { |
| 31 | - return array_map(function ($row) { |
|
| 31 | + return array_map(function($row) { |
|
| 32 | 32 | $parts = explode(' ', $row); |
| 33 | 33 | |
| 34 | 34 | return \DateTimeField::convertToDBFormat(reset($parts)); |