Passed
Push — developer ( d60a2b...4b1805 )
by Radosław
20:08
created
app/Mail/RecordFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
 		$moduleData = \App\Fields\RecordNumber::getInstance($moduleName);
232 232
 		$prefix = str_replace(['\{\{YYYY\}\}', '\{\{YY\}\}', '\{\{MM\}\}', '\{\{DD\}\}', '\{\{M\}\}', '\{\{D\}\}'], ['\d{4}', '\d{2}', '\d{2}', '\d{2}', '\d{1,2}', '\d{1,2}'], preg_quote($moduleData->get('prefix'), '/'));
233 233
 		$postfix = str_replace(['\{\{YYYY\}\}', '\{\{YY\}\}', '\{\{MM\}\}', '\{\{DD\}\}', '\{\{M\}\}', '\{\{D\}\}'], ['\d{4}', '\d{2}', '\d{2}', '\d{2}', '\d{1,2}', '\d{1,2}'], preg_quote($moduleData->get('postfix'), '/'));
234
-		$redex = preg_replace_callback('/\\\\{\\\\{picklist\\\\:([a-z0-9_]+)\\\\}\\\\}/i', function ($matches) {
234
+		$redex = preg_replace_callback('/\\\\{\\\\{picklist\\\\:([a-z0-9_]+)\\\\}\\\\}/i', function($matches) {
235 235
 			$picklistPrefix = array_column(\App\Fields\Picklist::getValues($matches[1]), 'prefix');
236 236
 			if (!$picklistPrefix) {
237 237
 				return '';
Please login to merge, or discard this patch.
modules/ModTracker/ConfigTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 	'DEFAULT_VIEW' => [
10 10
 		'default' => 'TimeLine',
11 11
 		'description' => 'default view in History (Timeline/List)',
12
-		'validation' => function () {
12
+		'validation' => function() {
13 13
 			$arg = func_get_arg(0);
14 14
 			return \in_array($arg, ['Timeline', 'List']);
15 15
 		}
Please login to merge, or discard this patch.
app/QueryGenerator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1331,7 +1331,7 @@
 block discarded – undo
1331 1331
 			$searchParamsConditions['condition'] = $glueOrder[$key];
1332 1332
 			$searchParamsConditions['rules'] = [];
1333 1333
 			foreach ($conditions as $condition) {
1334
-				[$fieldName, , $sourceFieldName] = array_pad(explode(':', $condition[0]), 3, false);
1334
+				[$fieldName,, $sourceFieldName] = array_pad(explode(':', $condition[0]), 3, false);
1335 1335
 				if (!$sourceFieldName) {
1336 1336
 					$condition[0] = "{$fieldName}:{$this->getModule()}";
1337 1337
 				}
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1003,8 +1003,8 @@
 block discarded – undo
1003 1003
 		}
1004 1004
 		if ($this->searchFieldsForDuplicates) {
1005 1005
 			$duplicateCheckClause = [];
1006
-            $queryGenerator = new self($this->moduleName, $this->user->getId());
1007
-            $queryGenerator->setStateCondition($this->getState());
1006
+			$queryGenerator = new self($this->moduleName, $this->user->getId());
1007
+			$queryGenerator->setStateCondition($this->getState());
1008 1008
 			$queryGenerator->permissions = $this->permissions;
1009 1009
 			$queryGenerator->setFields(array_keys($this->searchFieldsForDuplicates));
1010 1010
 			foreach ($this->searchFieldsForDuplicates as $fieldName => $ignoreEmptyValue) {
Please login to merge, or discard this patch.
app/Utils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
modules/SSalesProcesses/models/Field.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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()], ];
Please login to merge, or discard this patch.
modules/Settings/Magento/models/Module.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
 		'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'],
Please login to merge, or discard this patch.
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.