@@ -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'; |
@@ -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) { |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | * @return array |
| 241 | 241 | */ |
| 242 | 242 | function searchPrincipals($prefixPath, array $searchProperties, $test = 'allof') { |
| 243 | - if (count($searchProperties) == 0) return []; //No criteria |
|
| 243 | + if (count($searchProperties) == 0) return []; //No criteria |
|
| 244 | 244 | |
| 245 | 245 | $query = sprintf('SELECT uri FROM %s WHERE ', $this->tableName); |
| 246 | 246 | $values = []; |
@@ -303,11 +303,11 @@ discard block |
||
| 303 | 303 | if ($value == null) return null; |
| 304 | 304 | |
| 305 | 305 | $uri = null; |
| 306 | - switch ($scheme){ |
|
| 306 | + switch ($scheme) { |
|
| 307 | 307 | case "mailto": |
| 308 | 308 | $query = sprintf('SELECT uri FROM %s WHERE lower(email)=lower(?)', $this->tableName); |
| 309 | 309 | $stmt = $this->pdo->prepare($query); |
| 310 | - $stmt->execute([ $value ]); |
|
| 310 | + $stmt->execute([$value]); |
|
| 311 | 311 | |
| 312 | 312 | while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) { |
| 313 | 313 | // Checking if the principal is in the prefix |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | function setGroupMemberSet($principal, array $members) { |
| 384 | 384 | |
| 385 | 385 | // Grabbing the list of principal id's. |
| 386 | - $stmt = $this->pdo->prepare(sprintf('SELECT id, uri FROM %s WHERE uri IN (? %s);',$this->tableName, str_repeat(', ? ', count($members)))); |
|
| 386 | + $stmt = $this->pdo->prepare(sprintf('SELECT id, uri FROM %s WHERE uri IN (? %s);', $this->tableName, str_repeat(', ? ', count($members)))); |
|
| 387 | 387 | $stmt->execute(array_merge([$principal], $members)); |
| 388 | 388 | |
| 389 | 389 | $memberIds = []; |
@@ -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; |