Passed
Pull Request — developer (#16513)
by Arkadiusz
16:53
created
modules/OSSMailScanner/models/Record.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -339,7 +339,7 @@
 block discarded – undo
339 339
 				$actions = $account['actions'];
340 340
 			}
341 341
 			if (!\in_array('CreatedEmail', $actions)) {
342
-				array_unshift($actions, 'CreatedEmail', );
342
+				array_unshift($actions, 'CreatedEmail',);
343 343
 			}
344 344
 			$params['actions'] = $actions;
345 345
 		}
Please login to merge, or discard this patch.
modules/Calendar/ConfigTemplate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	'DASHBOARD_CALENDAR_WIDGET_FILTER_TYPE' => [
34 34
 		'default' => 'list',
35 35
 		'description' => 'Shows the switch button or filter list in the calendar widget: switch - Switch "To realize" and "History", list - filter list',
36
-		'validation' => function () {
36
+		'validation' => function() {
37 37
 			$arg = func_get_arg(0);
38 38
 			return 'list' === $arg || 'switch' === $arg;
39 39
 		},
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	'SHOW_QUICK_CREATE_BY_STATUS' => [
42 42
 		'default' => [],
43 43
 		'description' => 'Show the Calendar quick create window after changing the status: array - PLL_COMPLETED, PLL_CANCELLED',
44
-		'validation' => function () {
44
+		'validation' => function() {
45 45
 			$arg = func_get_arg(0);
46 46
 			return \is_array($arg) && empty(array_diff($arg, ['PLL_COMPLETED', 'PLL_CANCELLED']));
47 47
 		},
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	'HIDDEN_DAYS_IN_CALENDAR_VIEW' => [
68 68
 		'default' => [0, 6],
69 69
 		'description' => 'Exclude certain days-of-the-week from being displayed. The value is an array of day-of-week indices to hide. Each index is zero-base (Sunday=0) and ranges from 0-6. By default, no days are hidden',
70
-		'validation' => function () {
70
+		'validation' => function() {
71 71
 			$arg = func_get_arg(0);
72 72
 			return 'Extended' === $arg || 'Standard' === $arg;
73 73
 		},
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	'CALENDAR_VIEW' => [
106 106
 		'default' => 'Extended',
107 107
 		'description' => 'Calendar view - allowed values: Extended, Standard, refresh menu files after you change this value',
108
-		'validation' => function () {
108
+		'validation' => function() {
109 109
 			$arg = func_get_arg(0);
110 110
 			return 'Extended' === $arg || 'Standard' === $arg;
111 111
 		},
Please login to merge, or discard this patch.
api/webservice/Token/Auth/Basic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 	{
22 22
 		$this->api->app = [];
23 23
 		$type = $this->api->request->getByType('_container', \App\Purifier::STANDARD);
24
-		$query = (new \App\Db\Query())->from('w_#__servers')->where(['type' => $type,  'status' => 1]);
24
+		$query = (new \App\Db\Query())->from('w_#__servers')->where(['type' => $type, 'status' => 1]);
25 25
 		if ($row = $query->one()) {
26 26
 			$row['id'] = (int) $row['id'];
27 27
 			$this->api->app = $row;
Please login to merge, or discard this patch.
app/QueryGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 	public function setFields(array $fields)
206 206
 	{
207 207
 		$this->fields = [];
208
-		foreach($fields as $fieldName){
208
+		foreach ($fields as $fieldName) {
209 209
 			$this->setField($fieldName);
210 210
 		}
211 211
 
@@ -1451,7 +1451,7 @@  discard block
 block discarded – undo
1451 1451
 			$searchParamsConditions['condition'] = $glueOrder[$key];
1452 1452
 			$searchParamsConditions['rules'] = [];
1453 1453
 			foreach ($conditions as $condition) {
1454
-				[$fieldName, , $sourceFieldName] = array_pad(explode(':', $condition[0]), 3, false);
1454
+				[$fieldName,, $sourceFieldName] = array_pad(explode(':', $condition[0]), 3, false);
1455 1455
 				if (!$sourceFieldName) {
1456 1456
 					$condition[0] = "{$fieldName}:{$this->getModule()}";
1457 1457
 				}
Please login to merge, or discard this patch.
modules/Vtiger/models/RelationListView.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -688,9 +688,9 @@
 block discarded – undo
688 688
 				$relatedListFields[$fieldName] = $fieldModel;
689 689
 			} elseif (isset($relFields[$fieldName])) {
690 690
 				$relatedListFields[$fieldName] = $relFields[$fieldName];
691
-			} elseif(false !== strpos($fieldName,':')){
691
+			} elseif (false !== strpos($fieldName, ':')) {
692 692
 				[$relatedFieldName, $relatedModule, $sourceField] = array_pad(explode(':', $fieldName), 3, null);
693
-				if(($model = \Vtiger_Module_Model::getInstance($relatedModule)) && ($fieldModel = $model->getFieldByName($relatedFieldName)) && $fieldModel->isActiveField()){
693
+				if (($model = \Vtiger_Module_Model::getInstance($relatedModule)) && ($fieldModel = $model->getFieldByName($relatedFieldName)) && $fieldModel->isActiveField()) {
694 694
 					$fieldModel->set('source_field_name', $sourceField);
695 695
 					$relatedListFields[$fieldName] = $fieldModel;
696 696
 				}
Please login to merge, or discard this patch.