Passed
Pull Request — developer (#16008)
by Arkadiusz
31:13 queued 12:16
created
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.
app/Integrations/Magento/Synchronizer/Invoice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 									$customerDataCrm = $customerMapModel->getDataCrm();
75 75
 									$dataCrm['accountid'] = $this->syncAccount($customerDataCrm);
76 76
 								}
77
-								unset($dataCrm['birthday'],$dataCrm['leadsource'],$dataCrm['mobile'],$dataCrm['mobile_extra'],$dataCrm['phone'],$dataCrm['phone_extra'],$dataCrm['salutationtype']);
77
+								unset($dataCrm['birthday'], $dataCrm['leadsource'], $dataCrm['mobile'], $dataCrm['mobile_extra'], $dataCrm['phone'], $dataCrm['phone_extra'], $dataCrm['salutationtype']);
78 78
 								$mapModel->setDataCrm($dataCrm);
79 79
 								$crmId = $this->createInvoiceInCrm($mapModel);
80 80
 								\App\Cache::staticSave('CrmIdByMagentoIdSSingleOrders', $invoice['entity_id'], $crmId);
Please login to merge, or discard this patch.
app/Installer/Developer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 	 */
24 24
 	public static function generateSwagger(): string
25 25
 	{
26
-		set_error_handler(function ($errNo, $errStr, $errFile, $errLine) {
26
+		set_error_handler(function($errNo, $errStr, $errFile, $errLine) {
27 27
 			$errorString = \App\ErrorHandler::error2string($errNo);
28 28
 			$msg = reset($errorString) . ": {$errStr}\nFile: {$errFile}\nLine: $errLine" . PHP_EOL;
29 29
 			echo "<pre>$msg</pre><hr>";
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	public static function generateSwaggerByType(string $type, $errorHandler = true): string
47 47
 	{
48 48
 		if ($errorHandler) {
49
-			set_error_handler(function ($errNo, $errStr, $errFile, $errLine) {
49
+			set_error_handler(function($errNo, $errStr, $errFile, $errLine) {
50 50
 				$errorString = \App\ErrorHandler::error2string($errNo);
51 51
 				$msg = reset($errorString) . ": {$errStr}\nFile: {$errFile}\nLine: $errLine" . PHP_EOL;
52 52
 				echo "<pre>$msg</pre><hr>";
Please login to merge, or discard this patch.
modules/Settings/Magento/actions/Active.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 				'displaytype' => 2,
47 47
 				'maximumlength' => '255',
48 48
 				'typeofdata' => 'V~O',
49
-				'picklistValues' => ['PLL_PENDING', 'PLL_PENDING_PAYMENT', 'PLL_PENDING_PAYPAL',  'PLL_PAID', 'PLL_PROCESSING', 'PLL_ON_HOLD', 'PLL_SEND', 'PLL_FRAUD', 'PLL_PAYMENT_REVIEW', 'PLL_PAYPAL_CANCELED_REVERSAL', 'PLL_PAYPAL_REVERSED', 'PLL_CANCELLED', 'PLL_CLOSED', 'PLL_COMPLETE']
49
+				'picklistValues' => ['PLL_PENDING', 'PLL_PENDING_PAYMENT', 'PLL_PENDING_PAYPAL', 'PLL_PAID', 'PLL_PROCESSING', 'PLL_ON_HOLD', 'PLL_SEND', 'PLL_FRAUD', 'PLL_PAYMENT_REVIEW', 'PLL_PAYPAL_CANCELED_REVERSAL', 'PLL_PAYPAL_REVERSED', 'PLL_CANCELLED', 'PLL_CLOSED', 'PLL_COMPLETE']
50 50
 			]
51 51
 		];
52 52
 		$fieldsExists = (new \App\Db\Query())->select(['fieldname'])->from('vtiger_field')->where(['tabid' => $sSingleOrderTabId, 'fieldname' => array_keys($fields)])->column();
Please login to merge, or discard this patch.
modules/Vtiger/models/TransferOwnership.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 	{
62 62
 		foreach ($relatedModuleRecordIds as $record) {
63 63
 			$recordModel = Vtiger_Record_Model::getInstanceById($record, $module);
64
-			if($recordModel->isEditable()){
64
+			if ($recordModel->isEditable()) {
65 65
 				$recordModel->set('assigned_user_id', $transferOwnerId);
66 66
 				$recordModel->save();
67 67
 			}
Please login to merge, or discard this patch.
app/Components/InterestsConflict.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -294,7 +294,7 @@
 block discarded – undo
294 294
 		if (\App\Cache::has($cacheName, '')) {
295 295
 			return \App\Cache::get($cacheName, '');
296 296
 		}
297
-		$allModules = array_map(function ($v) {
297
+		$allModules = array_map(function($v) {
298 298
 			return 0 > $v ? 999 : sprintf('%03d', $v);
299 299
 		}, array_column(\vtlib\Functions::getAllModules(false, true), 'tabsequence', 'name'));
300 300
 		$excludedModules = ['SMSNotifier', 'ModComments'];
Please login to merge, or discard this patch.
app/Extension/PwnedPassword/YetiForce.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 			$url = 'https://passwords.yetiforce.eu/pwned';
41 41
 			\App\Log::beginProfile("POST|YetiForce::check|{$url}", __NAMESPACE__);
42 42
 			$request = (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('POST', $url,
43
-				['json' => ['sha1' => sha1($password)], 'timeout' => 2,  'http_errors' => false,  'auth' => [$product['params']['login'], $product['params']['pass']], 'headers' => ['InsKey' => \App\YetiForce\Register::getInstanceKey()]]);
43
+				['json' => ['sha1' => sha1($password)], 'timeout' => 2, 'http_errors' => false, 'auth' => [$product['params']['login'], $product['params']['pass']], 'headers' => ['InsKey' => \App\YetiForce\Register::getInstanceKey()]]);
44 44
 			\App\Log::endProfile("POST|YetiForce::check|{$url}", __NAMESPACE__);
45 45
 			if (200 === $request->getStatusCode()) {
46 46
 				$response = \App\Json::decode($request->getBody());
Please login to merge, or discard this patch.
app/Fields/RecordNumber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
 		if ($this->getRecord()) {
159 159
 			$string = \App\TextParser::getInstanceByModel($this->getRecord())->setGlobalPermissions(false)->setContent($string)->parse()->getContent();
160 160
 		}
161
-		return preg_replace_callback('/{{picklist:([a-z0-9_]+)}}/i', function ($matches) {
161
+		return preg_replace_callback('/{{picklist:([a-z0-9_]+)}}/i', function($matches) {
162 162
 			return $this->getRecord() ? $this->getPicklistValue($matches[1]) : $matches[1];
163 163
 		}, $string);
164 164
 	}
Please login to merge, or discard this patch.
modules/PaymentsIn/models/PaymentStatus.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	{
68 68
 		$changes = false;
69 69
 		$recordModel = \Vtiger_Record_Model::getInstanceById($recordId, static::$moduleName);
70
-		if(!empty(static::$fieldPaymentStatusName)){
70
+		if (!empty(static::$fieldPaymentStatusName)) {
71 71
 			$statusFieldModel = $recordModel->getField(static::$fieldPaymentStatusName);
72 72
 			if ($statusFieldModel && $statusFieldModel->isActiveField()) {
73 73
 				$recordModel->set(
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 				$changes = true;
78 78
 			}
79 79
 		}
80
-		if(!empty(static::$fieldPaymentSumName)){
80
+		if (!empty(static::$fieldPaymentSumName)) {
81 81
 			$sumFieldModel = $recordModel->getField(static::$fieldPaymentSumName);
82 82
 			if ($sumFieldModel && $sumFieldModel->isActiveField()) {
83 83
 				$recordModel->set(
Please login to merge, or discard this patch.