@@ -57,7 +57,7 @@ |
||
| 57 | 57 | { |
| 58 | 58 | $fieldModelList = $this->record->getModule()->getFields(); |
| 59 | 59 | $requestKeys = $request->getAllRaw(); |
| 60 | - unset($requestKeys['module'],$requestKeys['action'],$requestKeys['record']); |
|
| 60 | + unset($requestKeys['module'], $requestKeys['action'], $requestKeys['record']); |
|
| 61 | 61 | foreach ($fieldModelList as $fieldName => $fieldModel) { |
| 62 | 62 | if (!$fieldModel->isWritable()) { |
| 63 | 63 | continue; |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | $fileName .= ($increment[$fileName]++ > 0 ? '_' . $increment[$fileName] : '') . '.pdf'; |
| 66 | 66 | |
| 67 | 67 | $filePath = $template->getPath(); |
| 68 | - $pdfFiles[] = ['path' => $filePath, 'name' => $fileName]; |
|
| 68 | + $pdfFiles[] = ['path' => $filePath, 'name' => $fileName]; |
|
| 69 | 69 | $pdf->output($filePath, 'F'); |
| 70 | 70 | } |
| 71 | 71 | if (\count($pdfFiles) > 1) { |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | if ($fieldModel->isEditable()) { |
| 68 | 68 | $fieldModel->getUITypeModel()->validate($fieldValue); |
| 69 | 69 | $relRecordModel->set($relatedData[2], $fieldValue); |
| 70 | - if(false !== $relRecordModel->getPreviousValue($relatedData[2])){ |
|
| 70 | + if (false !== $relRecordModel->getPreviousValue($relatedData[2])) { |
|
| 71 | 71 | $relRecordModel->setHandlerExceptions(['disableHandlerClasses' => ['Vtiger_Workflow_Handler']]); |
| 72 | 72 | $relRecordModel->save(); |
| 73 | 73 | } |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | public static function setRecordToCron($moduleName, $destModule, $recordId, $type = 1) |
| 136 | 136 | { |
| 137 | 137 | $data = ['source_module' => $moduleName, 'dest_module' => $destModule, 'lastid' => $recordId, 'type' => $type]; |
| 138 | - if(!(new \App\Db\Query())->from('s_#__multireference')->where($data)->exists()){ |
|
| 138 | + if (!(new \App\Db\Query())->from('s_#__multireference')->where($data)->exists()) { |
|
| 139 | 139 | \App\Db::getInstance()->createCommand()->insert('s_#__multireference', $data)->execute(); |
| 140 | 140 | } |
| 141 | 141 | } |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | $tabIds = (new \App\Db\Query()) |
| 227 | 227 | ->select(['fieldid', 'tabid']) |
| 228 | 228 | ->from('vtiger_field') |
| 229 | - ->where(['and', ['<>', 'presence', 1], ['uitype' => $fieldModel->getUIType()], ['and', ['like', 'fieldparams', '"field":"' . $fieldModel->getId() . '"']] |
|
| 229 | + ->where(['and', ['<>', 'presence', 1], ['uitype' => $fieldModel->getUIType()], ['and', ['like', 'fieldparams', '"field":"' . $fieldModel->getId() . '"']] |
|
| 230 | 230 | ])->createCommand()->queryAllByGroup(); |
| 231 | 231 | foreach ($tabIds as $fieldId => $tabId) { |
| 232 | 232 | $sourceModule = \App\Module::getModuleName($tabId); |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $userFocus->id = $userid; |
| 49 | 49 | foreach ($userFocus->column_fields as $field => $value) { |
| 50 | 50 | if (isset($userFocus->{$field})) { |
| 51 | - if ('currency_symbol' === $field || $field === 'imagename'|| $field === 'othereventduration') { |
|
| 51 | + if ('currency_symbol' === $field || $field === 'imagename' || $field === 'othereventduration') { |
|
| 52 | 52 | $userInfo[$field] = $userFocus->{$field}; |
| 53 | 53 | } else { |
| 54 | 54 | $userInfo[$field] = is_numeric($userFocus->{$field}) ? $userFocus->{$field} : \App\Purifier::encodeHtml($userFocus->{$field}); |
@@ -191,7 +191,7 @@ |
||
| 191 | 191 | if (static::$clearOpcache) { |
| 192 | 192 | return false; |
| 193 | 193 | } |
| 194 | - register_shutdown_function(function () { |
|
| 194 | + register_shutdown_function(function() { |
|
| 195 | 195 | try { |
| 196 | 196 | static::resetOpcache(); |
| 197 | 197 | } catch (\Throwable $e) { |
@@ -193,7 +193,7 @@ |
||
| 193 | 193 | 'time' => (int) ($readOperations / (microtime(true) - $timeStart)), |
| 194 | 194 | ]; |
| 195 | 195 | } |
| 196 | - register_shutdown_function(function () { |
|
| 196 | + register_shutdown_function(function() { |
|
| 197 | 197 | try { |
| 198 | 198 | \vtlib\Functions::recurseDelete('cache/speed'); |
| 199 | 199 | } catch (\Throwable $e) { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | { |
| 77 | 77 | $entity = static::getEntitiesInfo(); |
| 78 | 78 | if ($sort) { |
| 79 | - usort($entity, function ($a, $b) { |
|
| 79 | + usort($entity, function($a, $b) { |
|
| 80 | 80 | return $a['sequence'] < $b['sequence'] ? -1 : 1; |
| 81 | 81 | }); |
| 82 | 82 | } |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | Log::error("The file $filename does not exist"); |
| 285 | 285 | } |
| 286 | 286 | static::initFromDb(); |
| 287 | - register_shutdown_function(function () { |
|
| 287 | + register_shutdown_function(function() { |
|
| 288 | 288 | try { |
| 289 | 289 | YetiForce\Shop::generateCache(); |
| 290 | 290 | } catch (\Throwable $e) { |
@@ -178,7 +178,7 @@ |
||
| 178 | 178 | ->execute(); |
| 179 | 179 | } |
| 180 | 180 | \App\Log::trace('Exit OSSMail_Record_Model::imapConnect() method ...'); |
| 181 | - register_shutdown_function(function () use ($mbox, $user) { |
|
| 181 | + register_shutdown_function(function() use ($mbox, $user) { |
|
| 182 | 182 | try { |
| 183 | 183 | \App\Log::beginProfile('OSSMail_Record_Model|imap_close|' . $user, 'Mail|IMAP'); |
| 184 | 184 | imap_close($mbox); |