Passed
Push — developer ( d60a2b...4b1805 )
by Radosław
20:08
created
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.
modules/Vtiger/models/QuickCreateRecordStructure.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
 				$fieldModel->set('isMandatory', true);
60 60
 			}
61 61
 			$this->structuredValues[$fieldName] = $fieldModel;
62
-		}
63
-		++Vtiger_Field_Model::$tabIndexLastSeq;
62
+		}++Vtiger_Field_Model::$tabIndexLastSeq;
64 63
 		return $this->structuredValues;
65 64
 	}
66 65
 }
Please login to merge, or discard this patch.
app/Cli/System.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	 */
30 30
 	public function history(): void
31 31
 	{
32
-		$table = array_map(function ($item) {
32
+		$table = array_map(function($item) {
33 33
 			$item['result'] = $item['result'] ? 'OK' : 'Error';
34 34
 			unset($item['id']);
35 35
 			return $item;
Please login to merge, or discard this patch.
modules/SSalesProcesses/dashboards/TeamsEstimatedSales.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
 		$viewer->assign('WIDGET', $widget);
141 141
 		$viewer->assign('MODULE_NAME', $moduleName);
142 142
 		$viewer->assign('DATA', $data);
143
-		$viewer->assign('DTIME',  implode(',', \App\Fields\Date::formatRangeToDisplay($time)));
143
+		$viewer->assign('DTIME', implode(',', \App\Fields\Date::formatRangeToDisplay($time)));
144 144
 		$viewer->assign('COMPARE', $compare);
145 145
 		$viewer->assign('ACCESSIBLE_USERS', \App\Fields\Owner::getInstance('Accounts', $currentUserId)->getAccessibleUsersForModule());
146 146
 		$viewer->assign('ACCESSIBLE_GROUPS', \App\Fields\Owner::getInstance('Accounts', $currentUserId)->getAccessibleGroupForModule());
Please login to merge, or discard this patch.
modules/Settings/SlaPolicy/actions/DeleteAjax.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 	public function process(App\Request $request)
17 17
 	{
18 18
 		$recordModel = Settings_SlaPolicy_Record_Model::getInstanceById($request->getInteger('record'));
19
-		$result =  ['success' => true];
19
+		$result = ['success' => true];
20 20
 		if ($recordModel) {
21
-			$result =  ['success' => (bool) $recordModel->delete()];
21
+			$result = ['success' => (bool) $recordModel->delete()];
22 22
 		}
23 23
 		$response = new Vtiger_Response();
24 24
 		$response->setResult($result);
Please login to merge, or discard this patch.
app/Mail/ScannerAction/CreatedHelpDesk.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 				$dbCommand->insert('vtiger_senotesrel', ['crmid' => $id, 'notesid' => $documentId])->execute();
76 76
 			}
77 77
 			$dataReader->close();
78
-			unset($dataReader,$query, $dbCommand, $recordModel);
78
+			unset($dataReader, $query, $dbCommand, $recordModel);
79 79
 		}
80 80
 	}
81 81
 
Please login to merge, or discard this patch.
modules/Settings/Widgets/views/Widget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 		$viewer->assign('WID', '');
61 61
 		$viewer->assign('WIDGETINFO', [
62 62
 			'data' => [
63
-				'limit' => 5, 'relatedmodule' => '',  'columns' => '',
63
+				'limit' => 5, 'relatedmodule' => '', 'columns' => '',
64 64
 				'action' => '', 'switchHeader' => '', 'filter' => '',
65 65
 				'checkbox' => '', 'customView' => '[]',
66 66
 			],
Please login to merge, or discard this patch.