Snake case variable name

This commit is contained in:
Alex Tselegidis 2020-12-02 19:50:17 +02:00
parent 931044cd62
commit c0a6370544

View file

@ -95,10 +95,10 @@ class Backend_api extends EA_Controller {
} }
$userId = $this->session->userdata('user_id'); $userId = $this->session->userdata('user_id');
$roleSlug = $this->session->userdata('role_slug'); $role_slug = $this->session->userdata('role_slug');
// If the current user is a provider he must only see his own appointments. // If the current user is a provider he must only see his own appointments.
if ($roleSlug === DB_SLUG_PROVIDER) if ($role_slug === DB_SLUG_PROVIDER)
{ {
foreach ($response['appointments'] as $index => $appointment) foreach ($response['appointments'] as $index => $appointment)
{ {
@ -118,7 +118,7 @@ class Backend_api extends EA_Controller {
} }
// If the current user is a secretary he must only see the appointments of his providers. // If the current user is a secretary he must only see the appointments of his providers.
if ($roleSlug === DB_SLUG_SECRETARY) if ($role_slug === DB_SLUG_SECRETARY)
{ {
$this->load->model('secretaries_model'); $this->load->model('secretaries_model');
$providers = $this->secretaries_model->get_row($userId)['providers']; $providers = $this->secretaries_model->get_row($userId)['providers'];