@@ -98,7 +98,7 @@ |
||
98 | 98 | break; |
99 | 99 | case 'members': |
100 | 100 | foreach ($value as $memberTypeId) { |
101 | - [$type, $memberId] = explode(':', $memberTypeId); |
|
101 | + [$type, $memberId] = explode(':', $memberTypeId); |
|
102 | 102 | switch ($type) { |
103 | 103 | case 'Users': |
104 | 104 | $users[] = (int) $memberId; |
@@ -649,7 +649,7 @@ |
||
649 | 649 | } |
650 | 650 | } |
651 | 651 | } |
652 | - uksort($quickCreateFieldList, function ($a, $b) use ($quickCreateFieldList) { |
|
652 | + uksort($quickCreateFieldList, function($a, $b) use ($quickCreateFieldList) { |
|
653 | 653 | if ($quickCreateFieldList[$a]->get('quicksequence') === $quickCreateFieldList[$b]->get('quicksequence')) { |
654 | 654 | return 0; |
655 | 655 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function entityAfterLinkForSource(App\EventHandler $eventHandler) |
142 | 142 | { |
143 | - ['sourceModule' => $sourceModule, 'sourceRecordId' => $sourceRecordId,'destinationModule' => $destinationModule,'destinationRecordId' => $destinationRecordId, 'relationId' => $relationId] = $eventHandler->getParams(); |
|
143 | + ['sourceModule' => $sourceModule, 'sourceRecordId' => $sourceRecordId, 'destinationModule' => $destinationModule, 'destinationRecordId' => $destinationRecordId, 'relationId' => $relationId] = $eventHandler->getParams(); |
|
144 | 144 | if (!ModTracker::isTrackingEnabledForModule($destinationModule) || Vtiger_Relation_Model::getInstanceById($relationId)->isDirectRelation()) { |
145 | 145 | return false; |
146 | 146 | } |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | */ |
183 | 183 | public function entityAfterUnLinkForSource(App\EventHandler $eventHandler) |
184 | 184 | { |
185 | - ['sourceModule' => $sourceModule, 'sourceRecordId' => $sourceRecordId,'destinationModule' => $destinationModule,'destinationRecordId' => $destinationRecordId, 'relationId' => $relationId] = $eventHandler->getParams(); |
|
185 | + ['sourceModule' => $sourceModule, 'sourceRecordId' => $sourceRecordId, 'destinationModule' => $destinationModule, 'destinationRecordId' => $destinationRecordId, 'relationId' => $relationId] = $eventHandler->getParams(); |
|
186 | 186 | if (!ModTracker::isTrackingEnabledForModule($destinationModule) || Vtiger_Relation_Model::getInstanceById($relationId)->isDirectRelation()) { |
187 | 187 | return false; |
188 | 188 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | { |
93 | 93 | $dbCommand = \App\Db::getInstance()->createCommand(); |
94 | 94 | if (null !== $name) { |
95 | - $data = ['name' => "{$type}_last_{$name}", 'value' => $id]; |
|
95 | + $data = ['name' => "{$type}_last_{$name}", 'value' => $id]; |
|
96 | 96 | } else { |
97 | 97 | $data = ['name' => $type . '_start_date', 'value' => date('Y-m-d H:i:s')]; |
98 | 98 | } |
@@ -318,7 +318,7 @@ |
||
318 | 318 | */ |
319 | 319 | protected static function getWebserviceApps(): array |
320 | 320 | { |
321 | - $row = (new \App\Db\Query())->from('w_#__servers')->where(['type' => 'WooCommerce', 'status' => 1]) |
|
321 | + $row = (new \App\Db\Query())->from('w_#__servers')->where(['type' => 'WooCommerce', 'status' => 1]) |
|
322 | 322 | ->one(\App\Db::getInstance('webservice')) ?: []; |
323 | 323 | if (!$row) { |
324 | 324 | return []; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | $this->api->app = []; |
23 | 23 | $type = $this->api->request->getByType('_container', \App\Purifier::STANDARD); |
24 | - $query = (new \App\Db\Query())->from('w_#__servers')->where(['type' => $type, 'status' => 1]); |
|
24 | + $query = (new \App\Db\Query())->from('w_#__servers')->where(['type' => $type, 'status' => 1]); |
|
25 | 25 | if ($row = $query->one()) { |
26 | 26 | $row['id'] = (int) $row['id']; |
27 | 27 | $this->api->app = $row; |