@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $url = 'https://passwords.yetiforce.eu/pwned'; |
| 41 | 41 | \App\Log::beginProfile("POST|YetiForce::check|{$url}", __NAMESPACE__); |
| 42 | 42 | $request = (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('POST', $url, |
| 43 | - ['json' => ['sha1' => sha1($password)], 'timeout' => 2, 'http_errors' => false, 'auth' => [$product['params']['login'], $product['params']['pass']], 'headers' => ['InsKey' => \App\YetiForce\Register::getInstanceKey()]]); |
|
| 43 | + ['json' => ['sha1' => sha1($password)], 'timeout' => 2, 'http_errors' => false, 'auth' => [$product['params']['login'], $product['params']['pass']], 'headers' => ['InsKey' => \App\YetiForce\Register::getInstanceKey()]]); |
|
| 44 | 44 | \App\Log::endProfile("POST|YetiForce::check|{$url}", __NAMESPACE__); |
| 45 | 45 | if (200 === $request->getStatusCode()) { |
| 46 | 46 | $response = \App\Json::decode($request->getBody()); |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | if ($this->getRecord()) { |
| 159 | 159 | $string = \App\TextParser::getInstanceByModel($this->getRecord())->setGlobalPermissions(false)->setContent($string)->parse()->getContent(); |
| 160 | 160 | } |
| 161 | - return preg_replace_callback('/{{picklist:([a-z0-9_]+)}}/i', function ($matches) { |
|
| 161 | + return preg_replace_callback('/{{picklist:([a-z0-9_]+)}}/i', function($matches) { |
|
| 162 | 162 | return $this->getRecord() ? $this->getPicklistValue($matches[1]) : $matches[1]; |
| 163 | 163 | }, $string); |
| 164 | 164 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | { |
| 68 | 68 | $changes = false; |
| 69 | 69 | $recordModel = \Vtiger_Record_Model::getInstanceById($recordId, static::$moduleName); |
| 70 | - if(!empty(static::$fieldPaymentStatusName)){ |
|
| 70 | + if (!empty(static::$fieldPaymentStatusName)) { |
|
| 71 | 71 | $statusFieldModel = $recordModel->getField(static::$fieldPaymentStatusName); |
| 72 | 72 | if ($statusFieldModel && $statusFieldModel->isActiveField()) { |
| 73 | 73 | $recordModel->set( |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $changes = true; |
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | - if(!empty(static::$fieldPaymentSumName)){ |
|
| 80 | + if (!empty(static::$fieldPaymentSumName)) { |
|
| 81 | 81 | $sumFieldModel = $recordModel->getField(static::$fieldPaymentSumName); |
| 82 | 82 | if ($sumFieldModel && $sumFieldModel->isActiveField()) { |
| 83 | 83 | $recordModel->set( |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | - } |
|
| 58 | - ++Vtiger_Field_Model::$tabIndexLastSeq; |
|
| 57 | + }++Vtiger_Field_Model::$tabIndexLastSeq; |
|
| 59 | 58 | return $this->structuredValues = $values; |
| 60 | 59 | } |
| 61 | 60 | } |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | - } |
|
| 58 | - ++Vtiger_Field_Model::$tabIndexLastSeq; |
|
| 57 | + }++Vtiger_Field_Model::$tabIndexLastSeq; |
|
| 59 | 58 | return $this->structuredValues = $values; |
| 60 | 59 | } |
| 61 | 60 | } |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | - } |
|
| 58 | - ++Vtiger_Field_Model::$tabIndexLastSeq; |
|
| 57 | + }++Vtiger_Field_Model::$tabIndexLastSeq; |
|
| 59 | 58 | return $this->structuredValues = $values; |
| 60 | 59 | } |
| 61 | 60 | } |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | - } |
|
| 58 | - ++Vtiger_Field_Model::$tabIndexLastSeq; |
|
| 57 | + }++Vtiger_Field_Model::$tabIndexLastSeq; |
|
| 59 | 58 | return $this->structuredValues = $values; |
| 60 | 59 | } |
| 61 | 60 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | public function vars(string $name, array $params, string $moduleName): ?array |
| 73 | 73 | { |
| 74 | 74 | if (\App\EventHandler::EDIT_VIEW_CHANGE_VALUE === $name) { |
| 75 | - [$recordModel,$view] = $params; |
|
| 75 | + [$recordModel, $view] = $params; |
|
| 76 | 76 | if (empty($recordModel)) { |
| 77 | 77 | $recordModel = Vtiger_Record_Model::getCleanInstance($moduleName); |
| 78 | 78 | } |
@@ -189,8 +189,7 @@ |
||
| 189 | 189 | $fieldModel->set('hideField', true); |
| 190 | 190 | } |
| 191 | 191 | $values[$fieldName] = $fieldModel; |
| 192 | - } |
|
| 193 | - ++Vtiger_Field_Model::$tabIndexLastSeq; |
|
| 192 | + }++Vtiger_Field_Model::$tabIndexLastSeq; |
|
| 194 | 193 | return $values; |
| 195 | 194 | } |
| 196 | 195 | |