@@ -179,7 +179,7 @@ |
||
| 179 | 179 | if (static::$clearOpcache) { |
| 180 | 180 | return false; |
| 181 | 181 | } |
| 182 | - register_shutdown_function(function () { |
|
| 182 | + register_shutdown_function(function() { |
|
| 183 | 183 | static::resetOpcache(); |
| 184 | 184 | }); |
| 185 | 185 | static::$clearOpcache = true; |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | $timings = []; |
| 37 | 37 | $stack = []; |
| 38 | 38 | foreach ($this->messages as $i => $log) { |
| 39 | - list($token, $level, , $timestamp) = $log; |
|
| 39 | + list($token, $level,, $timestamp) = $log; |
|
| 40 | 40 | $log[5] = $i; |
| 41 | 41 | if ($level == Logger::LEVEL_PROFILE_BEGIN) { |
| 42 | 42 | $stack[] = $log; |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | //Override the default expire time of token |
| 19 | 19 | \CsrfMagic\Csrf::$expires = 259200; |
| 20 | - \CsrfMagic\Csrf::$callback = function ($tokens) { |
|
| 20 | + \CsrfMagic\Csrf::$callback = function($tokens) { |
|
| 21 | 21 | throw new \App\Exceptions\AppException('Invalid request - Response For Illegal Access'); |
| 22 | 22 | }; |
| 23 | 23 | $js = 'vendor/yetiforce/csrf-magic/src/Csrf.min.js'; |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | if (!is_array($value)) { |
| 124 | 124 | return ''; |
| 125 | 125 | } |
| 126 | - $value = array_map(function ($v) { |
|
| 126 | + $value = array_map(function($v) { |
|
| 127 | 127 | return $v['name']; |
| 128 | 128 | }, $value); |
| 129 | 129 | $result = implode(', ', $value); |
@@ -189,7 +189,7 @@ |
||
| 189 | 189 | */ |
| 190 | 190 | public static function getMethods() |
| 191 | 191 | { |
| 192 | - return array_filter(openssl_get_cipher_methods(), function ($methodName) { |
|
| 192 | + return array_filter(openssl_get_cipher_methods(), function($methodName) { |
|
| 193 | 193 | return stripos($methodName, 'gcm') === false && stripos($methodName, 'ccm') === false; |
| 194 | 194 | }); |
| 195 | 195 | } |
@@ -1030,7 +1030,7 @@ |
||
| 1030 | 1030 | */ |
| 1031 | 1031 | public static function parse(array $value) |
| 1032 | 1032 | { |
| 1033 | - return array_reduce($value, function ($result, $item) { |
|
| 1033 | + return array_reduce($value, function($result, $item) { |
|
| 1034 | 1034 | $result[$item['key']] = $item; |
| 1035 | 1035 | return $result; |
| 1036 | 1036 | }, []); |
@@ -271,7 +271,7 @@ |
||
| 271 | 271 | $requestUrl = (\App\RequestUtil::getBrowserInfo()->https ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']; |
| 272 | 272 | try { |
| 273 | 273 | $request = Requests::get($requestUrl, [], ['timeout' => 1]); |
| 274 | - $headers = array_map(function ($value) { |
|
| 274 | + $headers = array_map(function($value) { |
|
| 275 | 275 | return is_array($value) ? strtolower(implode(',', $value)) : strtolower($value); |
| 276 | 276 | }, $request->headers->getAll()); |
| 277 | 277 | } catch (\Exception $exc) { |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$is_admin=true; |
|
| 4 | -$user_info=['user_name'=>'admin', 'is_admin'=>'on', 'user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02', 'confirm_password'=>'', 'first_name'=>'', 'last_name'=>'Administrator', 'roleid'=>'H2', 'email1'=>'[email protected]', 'status'=>'Active', 'activity_view'=>'This Month', 'lead_view'=>'Today', 'hour_format'=>'24', 'start_hour'=>'08:00', 'reports_to_id'=>0, 'date_format'=>'yyyy-mm-dd', 'description'=>'', 'accesskey'=>'aOFXop10GCJ1uw0P', 'time_zone'=>'Europe/Sarajevo', 'currency_id'=>1, 'currency_grouping_pattern'=>'123456789', 'currency_decimal_separator'=>'.', 'currency_grouping_separator'=>' ', 'currency_symbol_placement'=>'1.0$', 'imagename'=>'', 'internal_mailer'=>1, 'theme'=>'twilight', 'language'=>'pl_pl', 'reminder_interval'=>'15 Minutes', 'phone_crm_extension'=>'', 'no_of_currency_decimals'=>'2', 'truncate_trailing_zeros'=>1, 'dayoftheweek'=>'Monday', 'callduration'=>'60', 'othereventduration'=>'60', 'default_record_view'=>'Summary', 'leftpanelhide'=>0, 'rowheight'=>'medium', 'defaulteventstatus'=>'PLL_PLANNED', 'defaultactivitytype'=>'Meeting', 'is_owner'=>'1', 'end_hour'=>'23:00', 'emailoptout'=>1, 'available'=>1, 'auto_assign'=>0, 'view_date_format'=>'PLL_ELAPSED', 'login_method'=>'PLL_PASSWORD', 'currency_name'=>'Poland, Zlotych', 'currency_code'=>'PLN', 'currency_symbol'=>'zł', 'conv_rate'=>'1.00000', 'id'=>1]; |
|
| 3 | +$is_admin = true; |
|
| 4 | +$user_info = ['user_name'=>'admin', 'is_admin'=>'on', 'user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02', 'confirm_password'=>'', 'first_name'=>'', 'last_name'=>'Administrator', 'roleid'=>'H2', 'email1'=>'[email protected]', 'status'=>'Active', 'activity_view'=>'This Month', 'lead_view'=>'Today', 'hour_format'=>'24', 'start_hour'=>'08:00', 'reports_to_id'=>0, 'date_format'=>'yyyy-mm-dd', 'description'=>'', 'accesskey'=>'aOFXop10GCJ1uw0P', 'time_zone'=>'Europe/Sarajevo', 'currency_id'=>1, 'currency_grouping_pattern'=>'123456789', 'currency_decimal_separator'=>'.', 'currency_grouping_separator'=>' ', 'currency_symbol_placement'=>'1.0$', 'imagename'=>'', 'internal_mailer'=>1, 'theme'=>'twilight', 'language'=>'pl_pl', 'reminder_interval'=>'15 Minutes', 'phone_crm_extension'=>'', 'no_of_currency_decimals'=>'2', 'truncate_trailing_zeros'=>1, 'dayoftheweek'=>'Monday', 'callduration'=>'60', 'othereventduration'=>'60', 'default_record_view'=>'Summary', 'leftpanelhide'=>0, 'rowheight'=>'medium', 'defaulteventstatus'=>'PLL_PLANNED', 'defaultactivitytype'=>'Meeting', 'is_owner'=>'1', 'end_hour'=>'23:00', 'emailoptout'=>1, 'available'=>1, 'auto_assign'=>0, 'view_date_format'=>'PLL_ELAPSED', 'login_method'=>'PLL_PASSWORD', 'currency_name'=>'Poland, Zlotych', 'currency_code'=>'PLN', 'currency_symbol'=>'zł', 'conv_rate'=>'1.00000', 'id'=>1]; |
|
| 5 | 5 | return ['details'=>['user_name'=>'admin', 'is_admin'=>'1', 'user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02', 'confirm_password'=>'', 'first_name'=>'', 'last_name'=>'Administrator', 'roleid'=>'H2', 'email1'=>'[email protected]', 'status'=>'Active', 'activity_view'=>'This Month', 'lead_view'=>'Today', 'hour_format'=>'24', 'start_hour'=>'08:00', 'reports_to_id'=>0, 'date_format'=>'yyyy-mm-dd', 'description'=>'', 'accesskey'=>'aOFXop10GCJ1uw0P', 'time_zone'=>'Europe/Sarajevo', 'currency_id'=>1, 'currency_grouping_pattern'=>'123456789', 'currency_decimal_separator'=>'.', 'currency_grouping_separator'=>' ', 'currency_symbol_placement'=>'1.0$', 'imagename'=>'', 'internal_mailer'=>1, 'theme'=>'twilight', 'language'=>'pl_pl', 'reminder_interval'=>'15 Minutes', 'phone_crm_extension'=>'', 'no_of_currency_decimals'=>'2', 'truncate_trailing_zeros'=>1, 'dayoftheweek'=>'Monday', 'callduration'=>'60', 'othereventduration'=>'60', 'default_record_view'=>'Summary', 'leftpanelhide'=>0, 'rowheight'=>'medium', 'defaulteventstatus'=>'PLL_PLANNED', 'defaultactivitytype'=>'Meeting', 'is_owner'=>'1', 'end_hour'=>'23:00', 'emailoptout'=>1, 'available'=>1, 'auto_assign'=>0, 'records_limit'=>'', 'phone_crm_extension_extra'=>'', 'date_password_change'=>'', 'force_password_change'=>'', 'view_date_format'=>'PLL_ELAPSED', 'authy_methods'=>'', 'authy_secret_totp'=>'', 'login_method'=>'PLL_PASSWORD', 'currency_name'=>'Poland, Zlotych', 'currency_code'=>'PLN', 'currency_symbol'=>'zł', 'conv_rate'=>'1.00000', 'record_id'=>1, 'record_module'=>'Users'], 'displayName'=>'Administrator', 'profiles'=>[1], 'groups'=>[3], 'parent_roles'=>['H1'], 'parent_role_seq'=>'H1::H2']; |
@@ -1023,7 +1023,7 @@ |
||
| 1023 | 1023 | $db->createCommand()->update('vtiger_version', ['current_version' => (string) $this->_modulexml->to_version])->execute(); |
| 1024 | 1024 | } |
| 1025 | 1025 | Functions::recurseDelete($dirName); |
| 1026 | - register_shutdown_function(function () { |
|
| 1026 | + register_shutdown_function(function() { |
|
| 1027 | 1027 | $viewer = \Vtiger_Viewer::getInstance(); |
| 1028 | 1028 | $viewer->clearAllCache(); |
| 1029 | 1029 | Functions::recurseDelete('cache/templates_c'); |