@@ -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'; |
@@ -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 | |
@@ -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) { |
@@ -82,8 +82,7 @@ |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | $namespace = isset($elem['attributes']['namespace']) ? |
| 85 | - $elem['attributes']['namespace'] : |
|
| 86 | - 'DAV:'; |
|
| 85 | + $elem['attributes']['namespace'] : 'DAV:'; |
|
| 87 | 86 | |
| 88 | 87 | $propName = '{' . $namespace . '}' . $elem['attributes']['name']; |
| 89 | 88 | |
@@ -177,7 +177,7 @@ |
||
| 177 | 177 | |
| 178 | 178 | $privileges = []; |
| 179 | 179 | |
| 180 | - foreach ((array)$reader->parseInnerTree($elementMap) as $element) { |
|
| 180 | + foreach ((array) $reader->parseInnerTree($elementMap) as $element) { |
|
| 181 | 181 | |
| 182 | 182 | if ($element['name'] !== '{DAV:}ace') { |
| 183 | 183 | continue; |
@@ -277,6 +277,6 @@ |
||
| 277 | 277 | if (preg_match('/^(?:(?:(.*)(?:\/+))?([^\/]+))(?:\/?)$/u', $path, $matches)) { |
| 278 | 278 | return [$matches[1], $matches[2]]; |
| 279 | 279 | } |
| 280 | - return [null,null]; |
|
| 280 | + return [null, null]; |
|
| 281 | 281 | |
| 282 | 282 | } |
@@ -401,7 +401,7 @@ |
||
| 401 | 401 | if (!file_exists($tplpath . $tplname)) { |
| 402 | 402 | $initialContent = "{* License Text *}\n"; |
| 403 | 403 | // Enable debug to make it easy to implement. |
| 404 | - $initialContent.= "{debug}{* REMOVE THIS LINE AFTER IMPLEMENTATION *}\n\n"; |
|
| 404 | + $initialContent .= "{debug}{* REMOVE THIS LINE AFTER IMPLEMENTATION *}\n\n"; |
|
| 405 | 405 | file_put_contents($tplpath . $tplname, $initialContent); |
| 406 | 406 | } |
| 407 | 407 | file_put_contents($tplpath . $tplname, "{* $file *}\n", FILE_APPEND); |