Passed
Pull Request — developer (#16323)
by Arkadiusz
17:12
created
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.
modules/Vtiger/models/EditRecordStructure.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
 					}
55 55
 				}
56 56
 			}
57
-		}
58
-		++Vtiger_Field_Model::$tabIndexLastSeq;
57
+		}++Vtiger_Field_Model::$tabIndexLastSeq;
59 58
 		return $this->structuredValues = $values;
60 59
 	}
61 60
 }
Please login to merge, or discard this patch.
modules/Users/models/EditRecordStructure.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
 					}
55 55
 				}
56 56
 			}
57
-		}
58
-		++Vtiger_Field_Model::$tabIndexLastSeq;
57
+		}++Vtiger_Field_Model::$tabIndexLastSeq;
59 58
 		return $this->structuredValues = $values;
60 59
 	}
61 60
 }
Please login to merge, or discard this patch.
modules/Calendar/models/EditRecordStructure.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
 					}
55 55
 				}
56 56
 			}
57
-		}
58
-		++Vtiger_Field_Model::$tabIndexLastSeq;
57
+		}++Vtiger_Field_Model::$tabIndexLastSeq;
59 58
 		return $this->structuredValues = $values;
60 59
 	}
61 60
 }
Please login to merge, or discard this patch.
modules/Documents/models/EditRecordStructure.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
 					}
55 55
 				}
56 56
 			}
57
-		}
58
-		++Vtiger_Field_Model::$tabIndexLastSeq;
57
+		}++Vtiger_Field_Model::$tabIndexLastSeq;
59 58
 		return $this->structuredValues = $values;
60 59
 	}
61 60
 }
Please login to merge, or discard this patch.
modules/Vtiger/handlers/FieldsDependency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 	public function vars(string $name, array $params, string $moduleName): ?array
73 73
 	{
74 74
 		if (\App\EventHandler::EDIT_VIEW_CHANGE_VALUE === $name) {
75
-			[$recordModel,$view] = $params;
75
+			[$recordModel, $view] = $params;
76 76
 			if (empty($recordModel)) {
77 77
 				$recordModel = Vtiger_Record_Model::getCleanInstance($moduleName);
78 78
 			}
Please login to merge, or discard this patch.
modules/Vtiger/views/QuickEditModal.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,8 +189,7 @@
 block discarded – undo
189 189
 				$fieldModel->set('hideField', true);
190 190
 			}
191 191
 			$values[$fieldName] = $fieldModel;
192
-		}
193
-		++Vtiger_Field_Model::$tabIndexLastSeq;
192
+		}++Vtiger_Field_Model::$tabIndexLastSeq;
194 193
 		return $values;
195 194
 	}
196 195
 
Please login to merge, or discard this patch.
modules/Settings/PublicHoliday/actions/Holiday.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -132,8 +132,7 @@  discard block
 block discarded – undo
132 132
 				$recordModel = Settings_PublicHoliday_Record_Model::getInstanceById((int) $id);
133 133
 				$deleteResult = $recordModel->delete();
134 134
 				$message = 0 === $deleteResult ?
135
-									\App\Language::translate('LBL_HOLIDAY_DELETE_ALREADYDELETED', $moduleName) :
136
-									\App\Language::translate('LBL_HOLIDAY_DELETE_OK', $moduleName);
135
+									\App\Language::translate('LBL_HOLIDAY_DELETE_ALREADYDELETED', $moduleName) : \App\Language::translate('LBL_HOLIDAY_DELETE_OK', $moduleName);
137 136
 			} else {
138 137
 				$result = false;
139 138
 				$message = \App\Language::translate('LBL_HOLIDAY_DELETE_NOTHINGTODELETE', $moduleName);
@@ -168,8 +167,7 @@  discard block
 block discarded – undo
168 167
 					$deletedRecords += $recordModel->delete();
169 168
 				}
170 169
 				$message = $deletedRecords === \count($records) ?
171
-									\App\Language::translate('LBL_HOLIDAY_DELETE_OK', $moduleName) :
172
-									\App\Language::translate('LBL_HOLIDAY_DELETE_SOMENOTDELETED', $moduleName);
170
+									\App\Language::translate('LBL_HOLIDAY_DELETE_OK', $moduleName) : \App\Language::translate('LBL_HOLIDAY_DELETE_SOMENOTDELETED', $moduleName);
173 171
 			} else {
174 172
 				$result = false;
175 173
 				$message = \App\Language::translate('LBL_HOLIDAY_DELETE_NOTHINGTODELETE', $moduleName);
Please login to merge, or discard this patch.
modules/Settings/MailRbl/actions/GetData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	{
64 64
 		$rows = [];
65 65
 		$query = $this->getQuery($request);
66
-		$query->from('s_#__mail_rbl_request')->select(['id',  'type', 'datetime', 'user', 'header']);
66
+		$query->from('s_#__mail_rbl_request')->select(['id', 'type', 'datetime', 'user', 'header']);
67 67
 		$query->andWhere(['status' => 0]);
68 68
 		$dataReader = $query->createCommand(\App\Db::getInstance('admin'))->query();
69 69
 		while ($row = $dataReader->read()) {
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	{
100 100
 		$rows = [];
101 101
 		$query = $this->getQuery($request);
102
-		$query->from('s_#__mail_rbl_request')->select(['id',  'type', 'datetime', 'user', 'header']);
102
+		$query->from('s_#__mail_rbl_request')->select(['id', 'type', 'datetime', 'user', 'header']);
103 103
 		$query->andWhere(['status' => 1]);
104 104
 		$dataReader = $query->createCommand(\App\Db::getInstance('admin'))->query();
105 105
 		while ($row = $dataReader->read()) {
Please login to merge, or discard this patch.