Passed
Pull Request — developer (#16291)
by Arkadiusz
19:20 queued 26s
created
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.
app/Cli/Environment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,12 +103,12 @@
 block discarded – undo
103 103
 	public function htmlToText(array &$item): void
104 104
 	{
105 105
 		if (false !== strpos($item['val'], '<b class="text-danger">')) {
106
-			$item['val'] = preg_replace_callback("'<b class=\"text-danger\">(.*?)</b>'si", function ($match) {
106
+			$item['val'] = preg_replace_callback("'<b class=\"text-danger\">(.*?)</b>'si", function($match) {
107 107
 				return "<light_red>{$match['1']}</light_red>";
108 108
 			}, $item['val']);
109 109
 		}
110 110
 		if (false !== strpos($item['recommended'], '<b class="text-danger">')) {
111
-			$item['recommended'] = preg_replace_callback("'<b class=\"text-danger\">(.*?)</b>'si", function ($match) {
111
+			$item['recommended'] = preg_replace_callback("'<b class=\"text-danger\">(.*?)</b>'si", function($match) {
112 112
 				return "<light_red>{$match['1']}</light_red>";
113 113
 			}, $item['recommended']);
114 114
 		}
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.
tests/Settings/Calendar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 	 */
47 47
 	public function testGetPicklistValue()
48 48
 	{
49
-		\App\Db::getInstance()->createCommand()->insert('vtiger_activitytype', ['activitytype' => 'UnitTestCalendar', 'presence' => 1,  'sortorderid' => 99, 'color' => 'A0B584'])->execute();
49
+		\App\Db::getInstance()->createCommand()->insert('vtiger_activitytype', ['activitytype' => 'UnitTestCalendar', 'presence' => 1, 'sortorderid' => 99, 'color' => 'A0B584'])->execute();
50 50
 		\App\Cache::clear();
51 51
 		$this->assertGreaterThan(0, (\count(\Settings_Calendar_Module_Model::getPicklistValue())), 'Calendar activity type picklist is empty');
52 52
 	}
Please login to merge, or discard this patch.
cli.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
 \App\Process::$requestMode = 'Cli';
15 15
 
16
-set_error_handler(function ($errNo, $errStr, $errFile, $errLine) {
16
+set_error_handler(function($errNo, $errStr, $errFile, $errLine) {
17 17
 	if (\in_array($errNo, [E_ERROR, E_WARNING, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR])) {
18 18
 		throw new \Exception($errNo . ': ' . $errStr . ' in ' . $errFile . ', line ' . $errLine);
19 19
 	}
Please login to merge, or discard this patch.