Passed
Pull Request — developer (#15456)
by Arkadiusz
20:21
created
api/webservice/WebserviceStandard/BaseModule/Fields.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 			$block = $fieldModel->get('block');
168 168
 			if ($returnBlocks && !isset($blocks[$block->id])) {
169 169
 				$blockProperties = get_object_vars($block);
170
-				$blocks[$block->id] = array_filter($blockProperties, function ($v) {
170
+				$blocks[$block->id] = array_filter($blockProperties, function($v) {
171 171
 					return !\is_object($v);
172 172
 				});
173 173
 				$blocks[$block->id]['name'] = \App\Language::translate($block->label, $moduleName);
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 				$fieldInfo['dbStructure'] = $fieldModel->getDBColumnType(false);
190 190
 			}
191 191
 			if ($returnQueryOperators) {
192
-				$fieldInfo['queryOperators'] = array_map(function ($value) use ($moduleName) {
192
+				$fieldInfo['queryOperators'] = array_map(function($value) use ($moduleName) {
193 193
 					return \App\Language::translate($value, $moduleName);
194 194
 				}, $fieldModel->getQueryOperators());
195 195
 			}
Please login to merge, or discard this patch.
api/webservice/WebserviceStandard/Users/Record.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
 				$rawData[$fieldModel->getName() . '_info'] = \Vtiger_Taxes_UIType::getValues($rawData[$fieldModel->getName()]);
153 153
 			}
154 154
 		}
155
-		unset($fieldsLabel['user_password'],$fieldsLabel['confirm_password'],$fieldsLabel['accesskey'],$displayData['user_password'],$displayData['confirm_password'],$displayData['accesskey'],$rawData['user_password'],$rawData['confirm_password'],$rawData['accesskey']);
155
+		unset($fieldsLabel['user_password'], $fieldsLabel['confirm_password'], $fieldsLabel['accesskey'], $displayData['user_password'], $displayData['confirm_password'], $displayData['accesskey'], $rawData['user_password'], $rawData['confirm_password'], $rawData['accesskey']);
156 156
 		$response = [
157 157
 			'name' => \App\Purifier::decodeHtml($this->recordModel->getName()),
158 158
 			'id' => $this->recordModel->getId(),
Please login to merge, or discard this patch.
api/webservice/WebserviceStandard/Save.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 	{
58 58
 		$fieldModelList = $this->record->getModule()->getFields();
59 59
 		$requestKeys = $request->getAllRaw();
60
-		unset($requestKeys['module'],$requestKeys['action'],$requestKeys['record']);
60
+		unset($requestKeys['module'], $requestKeys['action'], $requestKeys['record']);
61 61
 		foreach ($fieldModelList as $fieldName => $fieldModel) {
62 62
 			if (!$fieldModel->isWritable()) {
63 63
 				continue;
Please login to merge, or discard this patch.
api/webservice/WebservicePremium/BaseModule/Pdf.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
 			$fileName .= ($increment[$fileName]++ > 0 ? '_' . $increment[$fileName] : '') . '.pdf';
66 66
 
67 67
 			$filePath = $template->getPath();
68
-			$pdfFiles[] = ['path' => $filePath,	'name' => $fileName];
68
+			$pdfFiles[] = ['path' => $filePath, 'name' => $fileName];
69 69
 			$pdf->output($filePath, 'F');
70 70
 		}
71 71
 		if (\count($pdfFiles) > 1) {
Please login to merge, or discard this patch.
modules/com_vtiger_workflow/tasks/VTUpdateRelatedFieldTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 						if ($fieldModel->isEditable()) {
68 68
 							$fieldModel->getUITypeModel()->validate($fieldValue);
69 69
 							$relRecordModel->set($relatedData[2], $fieldValue);
70
-							if(false !== $relRecordModel->getPreviousValue($relatedData[2])){
70
+							if (false !== $relRecordModel->getPreviousValue($relatedData[2])) {
71 71
 								$relRecordModel->setHandlerExceptions(['disableHandlerClasses' => ['Vtiger_Workflow_Handler']]);
72 72
 								$relRecordModel->save();
73 73
 							}
Please login to merge, or discard this patch.
modules/Vtiger/uitypes/MultiReferenceValue.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	public static function setRecordToCron($moduleName, $destModule, $recordId, $type = 1)
136 136
 	{
137 137
 		$data = ['source_module' => $moduleName, 'dest_module' => $destModule, 'lastid' => $recordId, 'type' => $type];
138
-		if(!(new \App\Db\Query())->from('s_#__multireference')->where($data)->exists()){
138
+		if (!(new \App\Db\Query())->from('s_#__multireference')->where($data)->exists()) {
139 139
 			\App\Db::getInstance()->createCommand()->insert('s_#__multireference', $data)->execute();
140 140
 		}
141 141
 	}
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 		$tabIds = (new \App\Db\Query())
227 227
 			->select(['fieldid', 'tabid'])
228 228
 			->from('vtiger_field')
229
-			->where(['and',	['<>', 'presence', 1], ['uitype' => $fieldModel->getUIType()],	['and', ['like', 'fieldparams', '"field":"' . $fieldModel->getId() . '"']]
229
+			->where(['and', ['<>', 'presence', 1], ['uitype' => $fieldModel->getUIType()], ['and', ['like', 'fieldparams', '"field":"' . $fieldModel->getId() . '"']]
230 230
 			])->createCommand()->queryAllByGroup();
231 231
 		foreach ($tabIds as $fieldId => $tabId) {
232 232
 			$sourceModule = \App\Module::getModuleName($tabId);
Please login to merge, or discard this patch.
app/UserPrivilegesFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 			$userFocus->id = $userid;
49 49
 			foreach ($userFocus->column_fields as $field => $value) {
50 50
 				if (isset($userFocus->{$field})) {
51
-					if ('currency_symbol' === $field || $field === 'imagename'|| $field === 'othereventduration') {
51
+					if ('currency_symbol' === $field || $field === 'imagename' || $field === 'othereventduration') {
52 52
 						$userInfo[$field] = $userFocus->{$field};
53 53
 					} else {
54 54
 						$userInfo[$field] = is_numeric($userFocus->{$field}) ? $userFocus->{$field} : \App\Purifier::encodeHtml($userFocus->{$field});
Please login to merge, or discard this patch.
vtlib/Vtiger/PackageImport.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
 		$this->importCustomLinks($this->_modulexml, $moduleInstance);
657 657
 		$this->importCronTasks($this->_modulexml);
658 658
 		Module::fireEvent($moduleInstance->name, Module::EVENT_MODULE_POSTINSTALL);
659
-		register_shutdown_function(function () {
659
+		register_shutdown_function(function() {
660 660
 			try {
661 661
 				chdir(ROOT_DIRECTORY);
662 662
 				(new \App\BatchMethod(['method' => '\App\UserPrivilegesFile::recalculateAll', 'params' => []]))->save();
@@ -1154,7 +1154,7 @@  discard block
 block discarded – undo
1154 1154
 			$db->createCommand()->update('vtiger_version', ['current_version' => (string) $this->_modulexml->to_version])->execute();
1155 1155
 		}
1156 1156
 		Functions::recurseDelete($dirName);
1157
-		register_shutdown_function(function () {
1157
+		register_shutdown_function(function() {
1158 1158
 			try {
1159 1159
 				$viewer = \Vtiger_Viewer::getInstance();
1160 1160
 				$viewer->clearAllCache();
Please login to merge, or discard this patch.
app/Cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
 		if (static::$clearOpcache) {
192 192
 			return false;
193 193
 		}
194
-		register_shutdown_function(function () {
194
+		register_shutdown_function(function() {
195 195
 			try {
196 196
 				static::resetOpcache();
197 197
 			} catch (\Throwable $e) {
Please login to merge, or discard this patch.