Formatting

- Convert indents to tabs
- Remove unnecessary else statement
- Correct PHPDoc formatting
This commit is contained in:
objecttothis
2023-02-07 11:07:43 +04:00
committed by jekkos
parent 38a1815d31
commit ae357cab4a
147 changed files with 6208 additions and 2849 deletions

View File

@@ -10,6 +10,16 @@ use CodeIgniter\Model;
*/
class Module extends Model
{
protected $table = 'modules';
protected $primaryKey = 'module_id';
protected $useAutoIncrement = false;
protected $useSoftDeletes = false;
protected $allowedFields = [
'name_lang_key',
'desc_lang_key',
'sort'
];
public function get_module_name(string $module_id): string
{
$builder = $this->db->table('modules');
@@ -128,4 +138,4 @@ class Module extends Model
return $builder->get()->getRow()->sort;
}
}
}