Completed
Push — developer ( 5cfe13...9b4972 )
by Błażej
378:22 queued 330:47
created
include/recaptcha/recaptchalib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 	$http_request .= $req;
78 78
 
79 79
 	$response = '';
80
-	if (false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) )) {
80
+	if (false == ($fs = @fsockopen($host, $port, $errno, $errstr, 10))) {
81 81
 		die('Could not open socket');
82 82
 	}
83 83
 
Please login to merge, or discard this patch.
include/InventoryPDFController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
 			$subProducts = $productLineItem["subProductArray{$productLineItemIndex}"];
149 149
 			if ($subProducts != '') {
150 150
 				foreach ($subProducts as $subProduct) {
151
-					$productName .="\n" . " - " . decode_html($subProduct);
151
+					$productName .= "\n" . " - " . decode_html($subProduct);
152 152
 				}
153 153
 			}
154 154
 			$contentModel->set('Name', $productName);
Please login to merge, or discard this patch.
include/CRMEntity.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1970,7 +1970,7 @@  discard block
 block discarded – undo
1970 1970
 					$matrix->addDependency($tab_name, $crmentityRelModuleFieldTable);
1971 1971
 
1972 1972
 					if ($queryPlanner->requireTable($crmentityRelModuleFieldTable, $matrix)) {
1973
-						$relquery.= " left join vtiger_crmentity as $crmentityRelModuleFieldTable on $crmentityRelModuleFieldTable.crmid = $tab_name.$field_name and vtiger_crmentityRel$module$field_id.deleted=0";
1973
+						$relquery .= " left join vtiger_crmentity as $crmentityRelModuleFieldTable on $crmentityRelModuleFieldTable.crmid = $tab_name.$field_name and vtiger_crmentityRel$module$field_id.deleted=0";
1974 1974
 					}
1975 1975
 
1976 1976
 					for ($j = 0; $j < $adb->num_rows($ui10_modules_query); $j++) {
@@ -1984,7 +1984,7 @@  discard block
 block discarded – undo
1984 1984
 						$rel_tab_name_rel_module_table_alias = $rel_tab_name . "Rel$module$field_id";
1985 1985
 
1986 1986
 						if ($queryPlanner->requireTable($rel_tab_name_rel_module_table_alias)) {
1987
-							$relquery.= " left join $rel_tab_name as $rel_tab_name_rel_module_table_alias  on $rel_tab_name_rel_module_table_alias.$rel_tab_index = $crmentityRelModuleFieldTable.crmid";
1987
+							$relquery .= " left join $rel_tab_name as $rel_tab_name_rel_module_table_alias  on $rel_tab_name_rel_module_table_alias.$rel_tab_index = $crmentityRelModuleFieldTable.crmid";
1988 1988
 						}
1989 1989
 					}
1990 1990
 				}
@@ -2376,7 +2376,7 @@  discard block
 block discarded – undo
2376 2376
 		$entitycolumnnames = $entityfields['fieldname'];
2377 2377
 		$query = "select crmid as id, $querycolumnnames, $entitycolumnnames as name ";
2378 2378
 		$query .= " FROM $this->table_name ";
2379
-		$query .=" INNER JOIN vtiger_crmentity ON $this->table_name.$this->table_index = vtiger_crmentity.crmid && deleted = 0 ";
2379
+		$query .= " INNER JOIN vtiger_crmentity ON $this->table_name.$this->table_index = vtiger_crmentity.crmid && deleted = 0 ";
2380 2380
 
2381 2381
 		//remove the base table
2382 2382
 		$LookupTable = array_unique($lookuptables);
@@ -2391,7 +2391,7 @@  discard block
 block discarded – undo
2391 2391
 						on $this->table_name.$this->table_index = $tablename." . $this->tab_name_index[$tablename];
2392 2392
 		}
2393 2393
 		if (!empty($lookupcolumns) && $value !== false) {
2394
-			$query .=" WHERE ";
2394
+			$query .= " WHERE ";
2395 2395
 			$i = 0;
2396 2396
 			$columnCount = count($lookupcolumns);
2397 2397
 			foreach ($lookupcolumns as $columnname) {
Please login to merge, or discard this patch.
include/ChartUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 				$x = "";
57 57
 				for ($j = 0; $j < count($val); $j++) {
58 58
 					if ($j != $n) {
59
-						$x .=" " . $val[$j];
59
+						$x .= " " . $val[$j];
60 60
 					} else {
61 61
 						$x .= "@#" . $val[$j];
62 62
 					}
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 				$x = "";
241 241
 				for ($j = 0; $j < count($val); $j++) {
242 242
 					if ($j != $n) {
243
-						$x .=" " . $val[$j];
243
+						$x .= " " . $val[$j];
244 244
 					} else {
245 245
 						$x .= "@#" . $val[$j];
246 246
 					}
Please login to merge, or discard this patch.
include/simplehtmldom/simple_html_dom.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 	{
225 225
 	// I am SURE that this doesn't work properly.
226 226
 	// It fails to unset the current node from it's current parents nodes or children list first.
227
-	if($parent !== null)
227
+	if ($parent !== null)
228 228
 	{
229 229
 	$this->parent = $parent;
230 230
 	$this->parent->nodes[] = $this;
@@ -1427,7 +1427,7 @@  discard block
 block discarded – undo
1427 1427
 		$node->tag = 'unknown';
1428 1428
 	}
1429 1429
 	if ($this->char === '>')
1430
-		$node->_[HDOM_INFO_TEXT].='>';
1430
+		$node->_[HDOM_INFO_TEXT] .= '>';
1431 1431
 	$this->link_nodes($node, true);
1432 1432
 	$this->char = ( ++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
1433 1433
 	return true;
@@ -1450,7 +1450,7 @@  discard block
 block discarded – undo
1450 1450
 	}
1451 1451
 
1452 1452
 	if ($this->char === '>')
1453
-		$node->_[HDOM_INFO_TEXT].='>';
1453
+		$node->_[HDOM_INFO_TEXT] .= '>';
1454 1454
 	$this->link_nodes($node, false);
1455 1455
 	$this->char = ( ++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
1456 1456
 	return true;
Please login to merge, or discard this patch.
include/utils/EmailTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 				$moduleTableIndexList = $meta->getEntityTableIndexList();
121 121
 				foreach ($tableList as $index => $tableName) {
122 122
 					if ($tableName != $tableList[0]) {
123
-						$sql .=' INNER JOIN ' . $tableName . ' ON ' . $tableList[0] . '.' .
123
+						$sql .= ' INNER JOIN ' . $tableName . ' ON ' . $tableList[0] . '.' .
124 124
 							$moduleTableIndexList[$tableList[0]] . '=' . $tableName . '.' .
125 125
 							$moduleTableIndexList[$tableName];
126 126
 					}
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 				//If module is Leads and if you are not selected any leads fields then query failure is happening.
129 129
 				//By default we are checking where condition on base table.
130 130
 				if ($module == 'Leads' && !in_array('vtiger_leaddetails', $tableList)) {
131
-					$sql .=' INNER JOIN vtiger_leaddetails ON vtiger_leaddetails.leadid = vtiger_crmentity.crmid';
131
+					$sql .= ' INNER JOIN vtiger_leaddetails ON vtiger_leaddetails.leadid = vtiger_crmentity.crmid';
132 132
 				}
133 133
 
134 134
 				$sql .= ' WHERE';
Please login to merge, or discard this patch.
include/utils/InventoryUtils.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 	$moduleName = $entity->getModuleName();
314 314
 
315 315
 	$statusChanged = false;
316
-	$vtEntityDelta = new VTEntityDelta ();
316
+	$vtEntityDelta = new VTEntityDelta();
317 317
 	$oldEntity = $vtEntityDelta->getOldValue($moduleName, $entity_id, $statusFieldName);
318 318
 	$recordDetails = $entity->getData();
319 319
 	$statusChanged = $vtEntityDelta->hasChanged($moduleName, $entity_id, $statusFieldName);
@@ -941,19 +941,19 @@  discard block
 block discarded – undo
941 941
 		for ($i = 0; $i < $noOfRows; ++$i) {
942 942
 			$status = $adb->query_result($result, $i, 'temp_status');
943 943
 			if ($obj->getImportRecordStatus('none') == $status) {
944
-				$statusCount['PENDING'] ++;
944
+				$statusCount['PENDING']++;
945 945
 			} elseif ($obj->getImportRecordStatus('failed') == $status) {
946
-				$statusCount['FAILED'] ++;
946
+				$statusCount['FAILED']++;
947 947
 			} else {
948
-				$statusCount['IMPORTED'] ++;
948
+				$statusCount['IMPORTED']++;
949 949
 				switch ($status) {
950
-					case $obj->getImportRecordStatus('created') : $statusCount['CREATED'] ++;
950
+					case $obj->getImportRecordStatus('created') : $statusCount['CREATED']++;
951 951
 						break;
952
-					case $obj->getImportRecordStatus('skipped') : $statusCount['SKIPPED'] ++;
952
+					case $obj->getImportRecordStatus('skipped') : $statusCount['SKIPPED']++;
953 953
 						break;
954
-					case $obj->getImportRecordStatus('updated') : $statusCount['UPDATED'] ++;
954
+					case $obj->getImportRecordStatus('updated') : $statusCount['UPDATED']++;
955 955
 						break;
956
-					case $obj->getImportRecordStatus('merged') : $statusCount['MERGED'] ++;
956
+					case $obj->getImportRecordStatus('merged') : $statusCount['MERGED']++;
957 957
 						break;
958 958
 				}
959 959
 			}
Please login to merge, or discard this patch.
include/utils/UserInfoUtil.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 		if (\AppConfig::security('PERMITTED_BY_RECORD_HIERARCHY')) {
406 406
 			$userPrivilegesModel = Users_Privileges_Model::getCurrentUserPrivilegesModel();
407 407
 			$role = $userPrivilegesModel->getRoleDetail();
408
-			if ((($actionid == 3 || $actionid == 4) && $role->get('previewrelatedrecord') != 0 ) || (($actionid == 0 || $actionid == 1) && $role->get('editrelatedrecord') != 0 )) {
408
+			if ((($actionid == 3 || $actionid == 4) && $role->get('previewrelatedrecord') != 0) || (($actionid == 0 || $actionid == 1) && $role->get('editrelatedrecord') != 0)) {
409 409
 				$parentRecord = Users_Privileges_Model::getParentRecord($record_id, $module, $role->get('previewrelatedrecord'), $actionid);
410 410
 				if ($parentRecord) {
411 411
 					$recordMetaData = vtlib\Functions::getCRMRecordMetadata($parentRecord);
@@ -1084,7 +1084,7 @@  discard block
 block discarded – undo
1084 1084
 		$query = sprintf("SELECT shareid FROM %s WHERE %s = ?", $tablename, $colNameArr[0]);
1085 1085
 		$params = array($grpId);
1086 1086
 		if (sizeof($colNameArr) > 1) {
1087
-			$query .=" or " . $colNameArr[1] . "=?";
1087
+			$query .= " or " . $colNameArr[1] . "=?";
1088 1088
 			array_push($params, $grpId);
1089 1089
 		}
1090 1090
 
@@ -1120,7 +1120,7 @@  discard block
 block discarded – undo
1120 1120
 		$query = sprintf("SELECT shareid FROM %s WHERE %s = ?", $tablename, $colNameArr[0]);
1121 1121
 		$params = array($grpId);
1122 1122
 		if (sizeof($colNameArr) > 1) {
1123
-			$query .=" or " . $colNameArr[1] . "=?";
1123
+			$query .= " or " . $colNameArr[1] . "=?";
1124 1124
 			array_push($params, $grpId);
1125 1125
 		}
1126 1126
 
Please login to merge, or discard this patch.
include/utils/ListViewUtils.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -194,15 +194,15 @@  discard block
 block discarded – undo
194 194
 
195 195
 			//added to fix #5135
196 196
 			if (AppRequest::get('from_homepage') == 'upcoming_activities' || AppRequest::get('from_homepage') == 'pending_activities') {
197
-				$query.=' LEFT OUTER JOIN vtiger_recurringevents ON vtiger_recurringevents.activityid=vtiger_activity.activityid';
197
+				$query .= ' LEFT OUTER JOIN vtiger_recurringevents ON vtiger_recurringevents.activityid=vtiger_activity.activityid';
198 198
 			}
199 199
 			//end
200 200
 			$instance = CRMEntity::getInstance($module);
201
-			$query.=" WHERE vtiger_crmentity.deleted = 0 && activitytype != 'Emails' ";
201
+			$query .= " WHERE vtiger_crmentity.deleted = 0 && activitytype != 'Emails' ";
202 202
 			$securityParameter = $instance->getUserAccessConditionsQuerySR($module, $current_user);
203 203
 			if ($securityParameter != '')
204
-				$query.= $securityParameter;
205
-			$query.= ' ' . $where;
204
+				$query .= $securityParameter;
205
+			$query .= ' ' . $where;
206 206
 			break;
207 207
 		Case "Emails":
208 208
 			$query = "SELECT DISTINCT vtiger_crmentity.crmid, vtiger_crmentity.smownerid,
@@ -616,7 +616,7 @@  discard block
 block discarded – undo
616 616
 	$chars = preg_split('/(&[^;\s]+;)|/', $str, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE);
617 617
 	$html_length = count($chars);
618 618
 	// check if we can predict the return value and save some processing time
619
-	if (($html_length === 0) || ( $start >= $html_length) || ( isset($length) && ( $length <= -$html_length)))
619
+	if (($html_length === 0) || ($start >= $html_length) || (isset($length) && ($length <= -$html_length)))
620 620
 		return "";
621 621
 
622 622
 	//calculate start position
Please login to merge, or discard this patch.