Passed
Pull Request — developer (#16159)
by Arkadiusz
16:31
created
modules/ApprovalsRegister/models/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 					->setOrder('registration_date', \App\Db::DESC)
63 63
 					->createQuery()->createCommand()->queryAllByGroup(2);
64 64
 
65
-				$approves = array_keys(array_filter($approvalAll, function ($item) {
65
+				$approves = array_keys(array_filter($approvalAll, function($item) {
66 66
 					return 'PLL_ACCEPTANCE' === $item[0];
67 67
 				}));
68 68
 
Please login to merge, or discard this patch.
modules/Calendar/handlers/VerifyIsHolidayDate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 				'result' => false,
28 28
 				'type'=>'confirm',
29 29
 				'message' => App\Language::translate('LBL_DATES_SELECTED_HOLIDAYS_CONFIRM', $recordModel->getModuleName()),
30
-				'hash' => hash('sha256', implode('|',$recordModel->getData()))
30
+				'hash' => hash('sha256', implode('|', $recordModel->getData()))
31 31
 			];
32 32
 		}
33 33
 
Please login to merge, or discard this patch.
config/csrf_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 	{
19 19
 		//Override the default expire time of token
20 20
 		\CsrfMagic\Csrf::$expires = \App\Config::security('csrfLifetimeToken', 7200);
21
-		\CsrfMagic\Csrf::$callback = function ($tokens) {
21
+		\CsrfMagic\Csrf::$callback = function($tokens) {
22 22
 			throw new \App\Exceptions\Csrf('Invalid request - Response For Illegal Access', 403);
23 23
 		};
24 24
 		$js = 'vendor/yetiforce/csrf-magic/src/Csrf.min.js';
Please login to merge, or discard this patch.
modules/com_vtiger_workflow/tasks/VTEmailTemplateTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 				}
50 50
 			}
51 51
 			if ($this->relations_email && '-' !== $this->relations_email) {
52
-				[$relatedModule,$relatedFieldName,$onlyFirst] = array_pad(explode('::', $this->relations_email), 3, false);
52
+				[$relatedModule, $relatedFieldName, $onlyFirst] = array_pad(explode('::', $this->relations_email), 3, false);
53 53
 				$relationListView = Vtiger_RelationListView_Model::getInstance($recordModel, $relatedModule);
54 54
 				$relationListView->setFields(['id', $relatedFieldName]);
55 55
 				$relationListView->set('search_key', $relatedFieldName);
Please login to merge, or discard this patch.
app/Pdf/Drivers/Chromium.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 		'TABLOID' => [11.00, 17.00], // = (  279 x 432  ) mm  = ( 11.00 x 17.00 ) in
87 87
 		'EXECUTIVE' => [7.25, 10.50], // = (  184 x 267  ) mm  = (  7.25 x 10.50 ) in
88 88
 		'FOLIO' => [8.50, 13.00], // = (  216 x 330  ) mm  = (  8.50 x 13.00 ) in
89
-		'B' => [5.04, 7.80],  // = (  128 x 198  ) mm  = (  5.04 x 7.80 ) in
89
+		'B' => [5.04, 7.80], // = (  128 x 198  ) mm  = (  5.04 x 7.80 ) in
90 90
 		'A' => [4.37, 7.00], // = (  111 x 178  ) mm  = (  4.37 x 7.00 ) in
91 91
 		'DEMY' => [8.50, 5.31], // = (  135 x 216  ) mm  = (  8.50 x 5.31 ) in
92 92
 		'ROYAL' => [6.02, 9.21], // = (  153 x 234  ) mm  = (  6.02 x 9.21 ) in
Please login to merge, or discard this patch.
modules/Settings/PDF/models/Module.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
 	public static $allFields = [
25 25
 		'module_name', 'status', 'generator', 'primary_name', 'secondary_name', 'meta_author', 'meta_keywords', 'metatags_status', 'meta_subject', 'meta_title',
26 26
 		'page_format', 'margin_chkbox', 'margin_top', 'margin_bottom', 'margin_left', 'margin_right', 'header_height', 'footer_height', 'page_orientation',
27
-		'language',	'filename',	'visibility', 'default',	'header_content', 'body_content', 'footer_content', 'conditions',
28
-		'watermark_type', 'watermark_text', 'watermark_angle', 'template_members',	'watermark_image',	'one_pdf',	'type',   'styles',
27
+		'language', 'filename', 'visibility', 'default', 'header_content', 'body_content', 'footer_content', 'conditions',
28
+		'watermark_type', 'watermark_text', 'watermark_angle', 'template_members', 'watermark_image', 'one_pdf', 'type', 'styles',
29 29
 	];
30 30
 
31 31
 	public static $step1Fields = ['status', 'generator', 'primary_name', 'secondary_name', 'module_name', 'metatags_status', 'meta_subject', 'meta_title', 'meta_author', 'meta_keywords', 'page_format', 'margin_chkbox', 'margin_top', 'margin_bottom', 'margin_left', 'margin_right', 'header_height', 'footer_height', 'page_orientation', 'language', 'filename', 'visibility', 'default', 'one_pdf', 'template_members', 'watermark_type', 'watermark_text', 'watermark_image', 'watermark_angle'];
32
-	public static $step2Fields = ['module_name', 'header_content', 'module_name', 'body_content', 'footer_content',  'styles'];
32
+	public static $step2Fields = ['module_name', 'header_content', 'module_name', 'body_content', 'footer_content', 'styles'];
33 33
 	public static $step3Fields = ['conditions'];
34 34
 	public static $module = 'PDF';
35 35
 	public static $parent = 'Settings';
Please login to merge, or discard this patch.
app/Condition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 					$operator = $condition['operator'];
236 236
 					$value = $condition['value'] ?? '';
237 237
 					if (!\in_array($operator, array_merge(self::OPERATORS_WITHOUT_VALUES, self::FIELD_COMPARISON_OPERATORS, array_keys(self::DATE_OPERATORS)))) {
238
-						[$fieldName, $fieldModuleName,] = array_pad(explode(':', $condition['fieldname']), 3, false);
238
+						[$fieldName, $fieldModuleName, ] = array_pad(explode(':', $condition['fieldname']), 3, false);
239 239
 						$value = \Vtiger_Module_Model::getInstance($fieldModuleName)->getFieldByName($fieldName)
240 240
 							->getUITypeModel()
241 241
 							->getDbConditionBuilderValue($value, $operator);
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 			$advancedConditions['relationConditions'] = self::getConditionsFromRequest($advancedConditions['relationConditions']);
406 406
 		}
407 407
 		if (!empty($advancedConditions['relationColumns'])) {
408
-			array_map(function ($v) {
408
+			array_map(function($v) {
409 409
 				if (!\App\Validator::integer($v)) {
410 410
 					throw new \App\Exceptions\IllegalValue('ERR_NOT_ALLOWED_VALUE||' . $v, 406);
411 411
 				}
Please login to merge, or discard this patch.
app/Utils/ConfReport.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -339,13 +339,13 @@  discard block
 block discarded – undo
339 339
 		'lastCronStart' => ['container' => 'env', 'testCli' => false, 'label' => 'LAST_CRON_START', 'isHtml' => true],
340 340
 		'crmProvider' => ['container' => 'env', 'testCli' => true, 'label' => 'CRM_PROVIDER'],
341 341
 		'appId' => ['container' => 'env', 'testCli' => true, 'label' => 'APP_ID'],
342
-		'open_basedir' => ['container' => 'php',  'type' => 'OpenBasedir', 'testCli' => true, 'mode' => 'showWarnings'],
342
+		'open_basedir' => ['container' => 'php', 'type' => 'OpenBasedir', 'testCli' => true, 'mode' => 'showWarnings'],
343 343
 		'caCertBundle' => ['recommended' => 'On', 'container' => 'env', 'type' => 'OnOff', 'testCli' => true, 'label' => 'CACERTBUNDLE'],
344 344
 		'caCertBundlePath' => ['recommended' => 'On', 'container' => 'env', 'testCli' => true, 'label' => 'CACERTBUNDLE_PATH'],
345 345
 		'SSL_CERT_FILE' => ['container' => 'env', 'testCli' => true, 'label' => 'SSL_CERT_FILE'],
346 346
 		'SSL_CERT_DIR' => ['container' => 'env', 'testCli' => true, 'label' => 'SSL_CERT_DIR'],
347
-		'openssl.cafile' => ['container' => 'php',  'type' => 'NotEmpty', 'testCli' => true, 'mode' => 'showWarnings'],
348
-		'openssl.capath' => ['container' => 'php',  'type' => 'NotEmpty', 'testCli' => true, 'mode' => 'showWarnings'],
347
+		'openssl.cafile' => ['container' => 'php', 'type' => 'NotEmpty', 'testCli' => true, 'mode' => 'showWarnings'],
348
+		'openssl.capath' => ['container' => 'php', 'type' => 'NotEmpty', 'testCli' => true, 'mode' => 'showWarnings'],
349 349
 	];
350 350
 
351 351
 	/**
@@ -429,11 +429,11 @@  discard block
 block discarded – undo
429 429
 	 * @var array
430 430
 	 */
431 431
 	public static $functionalVerification = [
432
-		'branding' => ['type' => 'Branding',  'testCli' => false, 'label' => 'FOOTER', 'mode' => 'onlyText'],
433
-		'shop' => ['type' => 'ShopProducts',  'testCli' => false, 'label' => 'PREMIUM_MODULES', 'mode' => 'onlyText'],
434
-		'watchdog' => ['type' => 'Watchdog',  'testCli' => true, 'label' => 'WATCHDOG', 'mode' => 'onlyText'],
435
-		'register' => ['type' => 'Register',  'testCli' => true, 'label' => 'REGISTER', 'mode' => 'onlyText'],
436
-		'shopCache' => ['type' => 'ShopCache',  'testCli' => true, 'label' => 'SHOP_CACHE', 'mode' => 'onlyText'],
432
+		'branding' => ['type' => 'Branding', 'testCli' => false, 'label' => 'FOOTER', 'mode' => 'onlyText'],
433
+		'shop' => ['type' => 'ShopProducts', 'testCli' => false, 'label' => 'PREMIUM_MODULES', 'mode' => 'onlyText'],
434
+		'watchdog' => ['type' => 'Watchdog', 'testCli' => true, 'label' => 'WATCHDOG', 'mode' => 'onlyText'],
435
+		'register' => ['type' => 'Register', 'testCli' => true, 'label' => 'REGISTER', 'mode' => 'onlyText'],
436
+		'shopCache' => ['type' => 'ShopCache', 'testCli' => true, 'label' => 'SHOP_CACHE', 'mode' => 'onlyText'],
437 437
 	];
438 438
 	/**
439 439
 	 * Php variables.
Please login to merge, or discard this patch.
app/TextParser/CorectionAmountSummary.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,18 +33,18 @@
 block discarded – undo
33 33
 		$inventoryData = $this->textParser->recordModel->getInventoryData();
34 34
 		$rows = reset($inventoryData);
35 35
 		$currency = \App\Fields\Currency::getById($rows['currency']);
36
-		$differenceOfAmounts = \App\Fields\Double::formatToDisplay($this->textParser->recordModel->get('sum_gross') -$relatedRecordModel->get('sum_gross') ) . ' ' . $currency['currency_symbol'];
36
+		$differenceOfAmounts = \App\Fields\Double::formatToDisplay($this->textParser->recordModel->get('sum_gross') - $relatedRecordModel->get('sum_gross')) . ' ' . $currency['currency_symbol'];
37 37
 		$differenceOfAmountsDesciption = $differenceOfAmounts > 0 ? \App\Language::translate('LBL_SURCHARGE_AMOUNT', 'Other.PDF') : \App\Language::translate('LBL_SURCHARGE_AMOUNT', 'Other.PDF');
38 38
 		
39 39
 		return '<table cellspacing="0" style="border-collapse:collapse;width:100%;">
40 40
 				<thead>
41 41
 					<tr>
42
-						<th style="font-size:10px;">'.$differenceOfAmountsDesciption.'</th>
42
+						<th style="font-size:10px;">'.$differenceOfAmountsDesciption . '</th>
43 43
 					</tr>
44 44
 				</thead>
45 45
 				<tbody>
46 46
 					<tr>
47
-						<td style="border-color:#dddddd;border-style:solid;border-width:1px;font-size:12px;font-weight:bold;text-align:center;">'.$differenceOfAmounts .'</td>
47
+						<td style="border-color:#dddddd;border-style:solid;border-width:1px;font-size:12px;font-weight:bold;text-align:center;">'.$differenceOfAmounts . '</td>
48 48
 					</tr>
49 49
 				</tbody>
50 50
 			</table>';
Please login to merge, or discard this patch.