Added missing type hints for method params

This commit is contained in:
Alex Tselegidis 2021-10-29 13:10:54 +02:00
parent 3dee2ef4ef
commit 8b02cbb369

View file

@ -259,7 +259,7 @@ class Appointments_model extends EA_Model {
// Check if the required field is part of the appointment data. // Check if the required field is part of the appointment data.
$appointment = $query->row_array(); $appointment = $query->row_array();
$this->cast($appointment); $this->cast($appointment);
if ( ! array_key_exists($field, $appointment)) if ( ! array_key_exists($field, $appointment))
@ -426,7 +426,7 @@ class Appointments_model extends EA_Model {
* *
* @return int Returns the number of appointments that match the provided criteria. * @return int Returns the number of appointments that match the provided criteria.
*/ */
public function get_other_service_attendants_number(DateTime $start, DateTime $end, int $service_id, $provider_id, $exclude_appointment_id = NULL): int public function get_other_service_attendants_number(DateTime $start, DateTime $end, int $service_id, int $provider_id, int $exclude_appointment_id = NULL): int
{ {
if ($exclude_appointment_id) if ($exclude_appointment_id)
{ {