@@ -77,7 +77,7 @@ |
||
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 |
@@ -224,7 +224,7 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -120,7 +120,7 @@ discard block |
||
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 |
||
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'; |
@@ -313,7 +313,7 @@ discard block |
||
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 |
||
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 | } |
@@ -1401,7 +1401,7 @@ |
||
1401 | 1401 | function isRecordExists($recordId, $cache = true) |
1402 | 1402 | { |
1403 | 1403 | $recordMetaData = vtlib\Functions::getCRMRecordMetadata($recordId); |
1404 | - return (isset($recordMetaData) && $recordMetaData['deleted'] == 0 ) ? true : false; |
|
1404 | + return (isset($recordMetaData) && $recordMetaData['deleted'] == 0) ? true : false; |
|
1405 | 1405 | } |
1406 | 1406 | |
1407 | 1407 | /** Function to set date values compatible to database (YY_MM_DD) |
@@ -270,8 +270,7 @@ |
||
270 | 270 | foreach ($moduleFields as $fieldName => $webserviceField) { |
271 | 271 | array_push($fields, $this->getDescribeFieldArray($webserviceField)); |
272 | 272 | } |
273 | - $label = ($app_strings[$this->meta->getObectIndexColumn()]) ? $app_strings[$this->meta->getObectIndexColumn()] : |
|
274 | - $this->meta->getObectIndexColumn(); |
|
273 | + $label = ($app_strings[$this->meta->getObectIndexColumn()]) ? $app_strings[$this->meta->getObectIndexColumn()] : $this->meta->getObectIndexColumn(); |
|
275 | 274 | $this->moduleFields = $fields; |
276 | 275 | } |
277 | 276 | return $this->moduleFields; |
@@ -71,7 +71,7 @@ |
||
71 | 71 | if (!empty($filterClause)) { |
72 | 72 | $query .= " " . $filterClause; |
73 | 73 | } |
74 | - $query.=";"; |
|
74 | + $query .= ";"; |
|
75 | 75 | $relatedRecords = vtws_query($query, $user); |
76 | 76 | } |
77 | 77 |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $params = array_merge($params, $ownerIds); |
118 | 118 | } |
119 | 119 | |
120 | - $q .=" order by modifiedtime limit $numRecordsLimit"; |
|
120 | + $q .= " order by modifiedtime limit $numRecordsLimit"; |
|
121 | 121 | $result = $adb->pquery($q, $params); |
122 | 122 | |
123 | 123 | $modTime = []; |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | // since not all fields present in delete condition will be present in the fieldnames of the module |
157 | 157 | foreach ($deleteColumnNames as $table_fieldName => $columnName) { |
158 | 158 | if (!in_array($columnName, $moduleFieldNames)) { |
159 | - $selectClause .=", " . $table_fieldName; |
|
159 | + $selectClause .= ", " . $table_fieldName; |
|
160 | 160 | } |
161 | 161 | } |
162 | 162 | if ($elementType == "Emails") |
@@ -166,10 +166,10 @@ discard block |
||
166 | 166 | |
167 | 167 | $fromClause .= " INNER JOIN (select modifiedtime, crmid,deleted,setype FROM $baseCRMTable WHERE setype=? and modifiedtime >? and modifiedtime<=?"; |
168 | 168 | if (!$applicationSync) { |
169 | - $fromClause.= 'and smownerid IN(' . generateQuestionMarks($ownerIds) . ')'; |
|
169 | + $fromClause .= 'and smownerid IN(' . generateQuestionMarks($ownerIds) . ')'; |
|
170 | 170 | $params = array_merge($params, $ownerIds); |
171 | 171 | } |
172 | - $fromClause.= ' ) vtiger_ws_sync ON (vtiger_crmentity.crmid = vtiger_ws_sync.crmid)'; |
|
172 | + $fromClause .= ' ) vtiger_ws_sync ON (vtiger_crmentity.crmid = vtiger_ws_sync.crmid)'; |
|
173 | 173 | $q = $selectClause . " " . $fromClause; |
174 | 174 | $result = $adb->pquery($q, $params); |
175 | 175 | $recordDetails = []; |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | $params[] = $entityModule; |
207 | 207 | } |
208 | 208 | if (!$applicationSync) { |
209 | - $q.='and smownerid IN(' . generateQuestionMarks($ownerIds) . ')'; |
|
209 | + $q .= 'and smownerid IN(' . generateQuestionMarks($ownerIds) . ')'; |
|
210 | 210 | $params = array_merge($params, $ownerIds); |
211 | 211 | } |
212 | 212 |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | { |
90 | 90 | |
91 | 91 | public $stateno; /* The state-number */ |
92 | - public $major; /* The major token value. This is the code |
|
92 | + public $major; /* The major token value. This is the code |
|
93 | 93 | * * number for the token at this stack level */ |
94 | 94 | public $minor; /* The user-supplied minor token value. This |
95 | 95 | * * is the value of the token */ |
@@ -663,17 +663,17 @@ discard block |
||
663 | 663 | /** |
664 | 664 | * @var int |
665 | 665 | */ |
666 | - public $yyidx; /* Index of top element in stack */ |
|
666 | + public $yyidx; /* Index of top element in stack */ |
|
667 | 667 | |
668 | 668 | /** |
669 | 669 | * @var int |
670 | 670 | */ |
671 | - public $yyerrcnt; /* Shifts left before out of the error */ |
|
671 | + public $yyerrcnt; /* Shifts left before out of the error */ |
|
672 | 672 | |
673 | 673 | /** |
674 | 674 | * @var array |
675 | 675 | */ |
676 | - public $yystack = []; /* The parser's stack */ |
|
676 | + public $yystack = []; /* The parser's stack */ |
|
677 | 677 | |
678 | 678 | /** |
679 | 679 | * For tracing shifts, the names of all terminals and nonterminals |
@@ -782,7 +782,7 @@ discard block |
||
782 | 782 | * * which appear on the RHS of the rule, but which are not used |
783 | 783 | * * inside the C code. |
784 | 784 | */ |
785 | - default: break; /* If no destructor action specified: do nothing */ |
|
785 | + default: break; /* If no destructor action specified: do nothing */ |
|
786 | 786 | } |
787 | 787 | } |
788 | 788 | |
@@ -1608,7 +1608,7 @@ discard block |
||
1608 | 1608 | { |
1609 | 1609 | // $yyact; /* The parser action. */ |
1610 | 1610 | // $yyendofinput; /* True if we are at the end of input */ |
1611 | - $yyerrorhit = 0; /* True if yymajor has invoked an error */ |
|
1611 | + $yyerrorhit = 0; /* True if yymajor has invoked an error */ |
|
1612 | 1612 | |
1613 | 1613 | /* (re)initialize the parser, if necessary */ |
1614 | 1614 | if ($this->yyidx === null || $this->yyidx < 0) { |