PSR compliance and formatting changes

- Replaced TRUE/FALSE constants with true/false keywords
- Replaced NULL constant with null keyword
- Replaced `<?php echo` in views with shortened `<?=`
- Added missing variable declaration
- Added missing function return type in declaration
- replaced `== true`, `== false`, `=== true` and `=== false` in if statements with simplified forms
This commit is contained in:
objecttothis
2023-12-04 12:10:16 +04:00
committed by jekkos
parent 588f96a945
commit 7b224be665
186 changed files with 3161 additions and 3073 deletions

View File

@@ -49,7 +49,7 @@ class Secure_Controller extends BaseController
// load up global global_view_data visible to all the loaded views
$this->session = session();
if($menu_group == NULL)
if($menu_group == null)
{
$menu_group = $this->session->get('menu_group');
}
@@ -62,6 +62,7 @@ class Secure_Controller extends BaseController
? $this->module->get_allowed_home_modules($logged_in_employee_info->person_id)
: $this->module->get_allowed_office_modules($logged_in_employee_info->person_id);
$global_view_data = [];
foreach($allowed_modules->getResult() as $module)
{
$global_view_data['allowed_modules'][] = $module;