Passed
Pull Request — developer (#15265)
by Arkadiusz
20:15
created
app/Mailer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
app/Integrations/Magento/Synchronizer/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
modules/HelpDesk/ConfigTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
 	],
Please login to merge, or discard this patch.
modules/Accounts/ConfigTemplate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 		'default' => 50,
16 16
 		'description' => 'Max depth of hierarchy',
17 17
 		'validation' => '\App\Validator::naturalNumber',
18
-		'sanitization' => function () {
18
+		'sanitization' => function() {
19 19
 			return (int) func_get_arg(0);
20 20
 		}
21 21
 	],
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	'defaultViewName' => [
35 35
 		'default' => 'List',
36 36
 		'description' => 'Default module view. Values: List, ListPreview or DashBoard, refresh menu files after you change this value',
37
-		'validation' => function () {
37
+		'validation' => function() {
38 38
 			$arg = func_get_arg(0);
39 39
 			return 'List' === $arg || 'ListPreview' === $arg || 'DashBoard' === $arg;
40 40
 		}
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	'defaultDetailViewName' => [
43 43
 		'default' => 'full',
44 44
 		'description' => 'Default record view for list preview. Values: full or summary',
45
-		'validation' => function () {
45
+		'validation' => function() {
46 46
 			$arg = func_get_arg(0);
47 47
 			return 'full' === $arg || 'summary' === $arg;
48 48
 		}
Please login to merge, or discard this patch.
modules/Settings/CurrencyUpdate/bankmodels/ECB.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
 			if ($time['time'] == $dateParam) {
119 119
 				$num = \count($time->Cube);
120 120
 				for ($i = 0; $i < $num; ++$i) {
121
-					$currency = (string) $time->Cube[$i]['currency'];   // currency code
121
+					$currency = (string) $time->Cube[$i]['currency']; // currency code
122 122
 					foreach ($otherCurrencyCode as $key => $currId) {
123 123
 						if ($key == $currency && $currency != $mainCurrency) {
124 124
 							$exchange = $time->Cube[$i]['rate'];
Please login to merge, or discard this patch.
modules/Settings/CurrencyUpdate/bankmodels/NBR.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
 			if ($time['date'] == $dateParam) {
117 117
 				$num = \count($time->Rate);
118 118
 				for ($i = 0; $i < $num; ++$i) {
119
-					$currency = (string) $time->Rate[$i]['currency'];   // currency code
119
+					$currency = (string) $time->Rate[$i]['currency']; // currency code
120 120
 					foreach ($otherCurrencyCode as $key => $currId) {
121 121
 						if ($key == $currency && $currency != $mainCurrency) {
122 122
 							$exchange = $time->Rate[$i];
Please login to merge, or discard this patch.
modules/Settings/Roles/views/DeleteAjax.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 		$baseParentRole = $recordModel->get('parentrole') . '::';
21 21
 		$allRoles = Settings_Roles_Record_Model::getAll();
22 22
 		unset($allRoles[$recordId]);
23
-		$allRoles = array_filter($allRoles, function (Settings_Roles_Record_Model $items) use ($baseParentRole) {
23
+		$allRoles = array_filter($allRoles, function(Settings_Roles_Record_Model $items) use ($baseParentRole) {
24 24
 			return false === strpos($items->get('parentrole'), $baseParentRole);
25 25
 		});
26 26
 		$viewer->assign('MODULE', $moduleName);
Please login to merge, or discard this patch.
modules/Vtiger/uitypes/MultiImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 		if (!\is_array($value)) {
136 136
 			return '';
137 137
 		}
138
-		$value = array_map(function ($v) {
138
+		$value = array_map(function($v) {
139 139
 			return $v['name'];
140 140
 		}, $value);
141 141
 		$result = implode(', ', $value);
Please login to merge, or discard this patch.
api/webservice/Portal/BaseModule/Pdf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 			$fileName .= ($increment[$fileName]++ > 0 ? '_' . $increment[$fileName] : '') . '.pdf';
66 66
 
67 67
 			$filePath = $template->getPath();
68
-			$pdfFiles[] = ['path' => $filePath,	'name' => $fileName];
68
+			$pdfFiles[] = ['path' => $filePath, 'name' => $fileName];
69 69
 			$pdf->output($filePath, 'F');
70 70
 		}
71 71
 		if (\count($pdfFiles) > 1) {
Please login to merge, or discard this patch.