Completed
Push — developer ( 17749e...f48bb9 )
by Błażej
246:54 queued 202:57
created
api.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,38 +11,38 @@
 block discarded – undo
11 11
 require_once 'config/api.php';
12 12
 $service = $_REQUEST['service'];
13 13
 
14
-if(isset($service))
14
+if (isset($service))
15 15
 {
16
-	if(!in_array($service,$enabledServices)){
17
-		die($service.' - Service is not active');
16
+	if (!in_array($service, $enabledServices)) {
17
+		die($service . ' - Service is not active');
18 18
 	}	
19
-	if($service == "customerportal")
19
+	if ($service == "customerportal")
20 20
 	{
21 21
 		include("api/customerportal.php");
22 22
 	}	
23
-	elseif($service == "mobile")	
23
+	elseif ($service == "mobile")	
24 24
 	{		
25 25
 		include("api/mobile.php");
26 26
 	}
27
-	elseif($service == "yetiportal")	
27
+	elseif ($service == "yetiportal")	
28 28
 	{		
29 29
 		include("api/yetiportal.php");
30 30
 	}
31
-	elseif($service == "firefox")
31
+	elseif ($service == "firefox")
32 32
 	{
33 33
 		include("api/firefoxtoolbar.php");
34 34
 	}
35
-	elseif($service == "wordplugin")
35
+	elseif ($service == "wordplugin")
36 36
 	{
37 37
 		include("api/wordplugin.php");
38 38
 	}
39
-	elseif($service == "thunderbird")
39
+	elseif ($service == "thunderbird")
40 40
 	{
41 41
 		include("api/thunderbirdplugin.php");
42 42
 	}
43 43
 	else
44 44
 	{
45
-		echo "No Service Configured for ". strip_tags($service);
45
+		echo "No Service Configured for " . strip_tags($service);
46 46
 	}
47 47
 }
48 48
 else
Please login to merge, or discard this patch.
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/database/Postgres8.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	if ($debug)
73 73
 		$log->info("fixPostgresQuery result: " . $query);
74 74
 
75
-	return( $query);
75
+	return($query);
76 76
 }
77 77
 
78 78
 // Postgres8 will not accept a "tablename.*" entry in the GROUP BY clause
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	if ($expanded != '')
112 112
 		$expanded = " GROUP BY " . trim($expanded, ",");
113 113
 	//return the expanded fieldlist
114
-	return( $expanded);
114
+	return($expanded);
115 115
 }
116 116
 
117 117
 //return an expanded table field list
@@ -195,5 +195,5 @@  discard block
 block discarded – undo
195 195
 		$result = substr($result, 0, strlen($result) - 1);
196 196
 
197 197
 	//return out new string
198
-	return( $result);
198
+	return($result);
199 199
 }
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.