@@ -16,9 +16,9 @@ |
||
| 16 | 16 | public function process(App\Request $request) |
| 17 | 17 | { |
| 18 | 18 | $recordModel = Settings_SlaPolicy_Record_Model::getInstanceById($request->getInteger('record')); |
| 19 | - $result = ['success' => true]; |
|
| 19 | + $result = ['success' => true]; |
|
| 20 | 20 | if ($recordModel) { |
| 21 | - $result = ['success' => (bool) $recordModel->delete()]; |
|
| 21 | + $result = ['success' => (bool) $recordModel->delete()]; |
|
| 22 | 22 | } |
| 23 | 23 | $response = new Vtiger_Response(); |
| 24 | 24 | $response->setResult($result); |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | $dbCommand->insert('vtiger_senotesrel', ['crmid' => $id, 'notesid' => $documentId])->execute(); |
| 76 | 76 | } |
| 77 | 77 | $dataReader->close(); |
| 78 | - unset($dataReader,$query, $dbCommand, $recordModel); |
|
| 78 | + unset($dataReader, $query, $dbCommand, $recordModel); |
|
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $viewer->assign('WID', ''); |
| 61 | 61 | $viewer->assign('WIDGETINFO', [ |
| 62 | 62 | 'data' => [ |
| 63 | - 'limit' => 5, 'relatedmodule' => '', 'columns' => '', |
|
| 63 | + 'limit' => 5, 'relatedmodule' => '', 'columns' => '', |
|
| 64 | 64 | 'action' => '', 'switchHeader' => '', 'filter' => '', |
| 65 | 65 | 'checkbox' => '', 'customView' => '[]', |
| 66 | 66 | ], |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public function testGetPicklistValue() |
| 48 | 48 | { |
| 49 | - \App\Db::getInstance()->createCommand()->insert('vtiger_activitytype', ['activitytype' => 'UnitTestCalendar', 'presence' => 1, 'sortorderid' => 99, 'color' => 'A0B584'])->execute(); |
|
| 49 | + \App\Db::getInstance()->createCommand()->insert('vtiger_activitytype', ['activitytype' => 'UnitTestCalendar', 'presence' => 1, 'sortorderid' => 99, 'color' => 'A0B584'])->execute(); |
|
| 50 | 50 | \App\Cache::clear(); |
| 51 | 51 | $this->assertGreaterThan(0, (\count(\Settings_Calendar_Module_Model::getPicklistValue())), 'Calendar activity type picklist is empty'); |
| 52 | 52 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | \App\Process::$requestMode = 'Cli'; |
| 15 | 15 | |
| 16 | -set_error_handler(function ($errNo, $errStr, $errFile, $errLine) { |
|
| 16 | +set_error_handler(function($errNo, $errStr, $errFile, $errLine) { |
|
| 17 | 17 | if (\in_array($errNo, [E_ERROR, E_WARNING, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR])) { |
| 18 | 18 | throw new \Exception($errNo . ': ' . $errStr . ' in ' . $errFile . ', line ' . $errLine); |
| 19 | 19 | } |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | */ |
| 72 | 72 | public function preProcess(): bool |
| 73 | 73 | { |
| 74 | - register_shutdown_function(function () { |
|
| 74 | + register_shutdown_function(function() { |
|
| 75 | 75 | if ($error = error_get_last()) { |
| 76 | 76 | $this->errorHandler($error['type'], $error['message'], $error['file'], $error['line']); |
| 77 | 77 | } |
@@ -133,13 +133,13 @@ |
||
| 133 | 133 | public function generateRoomName(string $prefix = ''): string |
| 134 | 134 | { |
| 135 | 135 | $prefix = preg_replace_callback_array([ |
| 136 | - '/[^a-z0-9 ]/' => function () { |
|
| 136 | + '/[^a-z0-9 ]/' => function() { |
|
| 137 | 137 | return ''; |
| 138 | 138 | }, |
| 139 | - '/\b[a-z]/' => function ($matches) { |
|
| 139 | + '/\b[a-z]/' => function($matches) { |
|
| 140 | 140 | return mb_strtoupper($matches[0]); |
| 141 | 141 | }, |
| 142 | - '/[\s]/' => function () { |
|
| 142 | + '/[\s]/' => function() { |
|
| 143 | 143 | return ''; |
| 144 | 144 | }, |
| 145 | 145 | ], strtolower(\App\Utils::sanitizeSpecialChars($prefix, ' '))); |
@@ -675,7 +675,7 @@ |
||
| 675 | 675 | { |
| 676 | 676 | $quickCreateFieldList = []; |
| 677 | 677 | foreach ($this->getFieldsByBlocks() as $blockFields) { |
| 678 | - uksort($blockFields, function ($a, $b) use ($blockFields) { |
|
| 678 | + uksort($blockFields, function($a, $b) use ($blockFields) { |
|
| 679 | 679 | if ($blockFields[$a]->get('quicksequence') === $blockFields[$b]->get('quicksequence')) { |
| 680 | 680 | return 0; |
| 681 | 681 | } |
@@ -185,7 +185,7 @@ |
||
| 185 | 185 | if (self::IGNORE_MODULE === $tabid) { |
| 186 | 186 | $permittedTabIdList = \vtlib\Deprecated::getPermittedModuleIdList(); |
| 187 | 187 | if (!empty($permittedTabIdList)) { |
| 188 | - $permittedTabIdList[] = 0; // Added to support one link for all modules |
|
| 188 | + $permittedTabIdList[] = 0; // Added to support one link for all modules |
|
| 189 | 189 | foreach ($permittedTabIdList as $moduleId) { |
| 190 | 190 | foreach ($type as $typ) { |
| 191 | 191 | if (isset($rows[$moduleId][$typ])) { |