From 3c7c95b0b1d5e01e026c15b62b58ba6a06652210 Mon Sep 17 00:00:00 2001 From: alext Date: Wed, 9 Nov 2016 20:10:27 +0100 Subject: [PATCH] Performed corrections to various codebase issues. --- src/application/controllers/Backend_api.php | 4 ++-- src/engine/Api/V1/Parsers/Providers.php | 4 ++-- src/engine/Api/V1/Processors/Filter.php | 14 +++++++------- src/engine/Api/V1/Response.php | 6 +++--- src/engine/Notifications/Email.php | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/application/controllers/Backend_api.php b/src/application/controllers/Backend_api.php index 2c76b7f7..de79a265 100644 --- a/src/application/controllers/Backend_api.php +++ b/src/application/controllers/Backend_api.php @@ -917,7 +917,7 @@ class Backend_api extends CI_Controller { * * @param numeric $_POST['admin_id'] The id of the record to be deleted. * - * @return string Returns the operation result constant (AJAX_SUCESS or AJAX_FAILURE). + * @return string Returns the operation result constant (AJAX_SUCCESS or AJAX_FAILURE). */ public function ajax_delete_admin() { try { @@ -971,7 +971,7 @@ class Backend_api extends CI_Controller { * @param array $_POST['provider'] A json encoded array that contains the provider data. If an 'id' * value is provided then the record is going to be updated. * - * @return string Returns the success contant 'AJAX_SUCCESS' so javascript knows that + * @return string Returns the success constant 'AJAX_SUCCESS' so javascript knows that * everything completed successfully. */ public function ajax_save_provider() { diff --git a/src/engine/Api/V1/Parsers/Providers.php b/src/engine/Api/V1/Parsers/Providers.php index 45e3d89b..b8e8747d 100644 --- a/src/engine/Api/V1/Parsers/Providers.php +++ b/src/engine/Api/V1/Parsers/Providers.php @@ -124,8 +124,8 @@ class Providers implements ParsersInterface { $decodedRequest['settings']['password'] = $request['settings']['password']; } - if (!empty($request['settings']['calendrView'])) { - $decodedRequest['settings']['calendr_view'] = $request['settings']['calendrView']; + if (!empty($request['settings']['calendarView'])) { + $decodedRequest['settings']['calendar_view'] = $request['settings']['calendarView']; } if ($request['settings']['notifications'] !== null) { diff --git a/src/engine/Api/V1/Processors/Filter.php b/src/engine/Api/V1/Processors/Filter.php index 0fdaa8dd..40777e92 100644 --- a/src/engine/Api/V1/Processors/Filter.php +++ b/src/engine/Api/V1/Processors/Filter.php @@ -1,4 +1,4 @@ -format($formatter)->search()->sort()->paginate()->minimize()->output(); + * $response->format($parser)->search()->sort()->paginate()->minimize()->output(); */ class Response { /** @@ -46,7 +46,7 @@ class Response { /** * Encode the response entries to the API compatible structure. * - * @param \Parsers\ParsersInterface $parser Provide the corresponding parser class. + * @param Parsers\ParsersInterface $parser Provide the corresponding parser class. * * @return \EA\Engine\Api\V1\Response */ diff --git a/src/engine/Notifications/Email.php b/src/engine/Notifications/Email.php index 2ef7293d..dbb57f94 100644 --- a/src/engine/Notifications/Email.php +++ b/src/engine/Notifications/Email.php @@ -43,7 +43,7 @@ class Email { /** * Class Constructor * - * @param CI_Controller $framework + * @param \CI_Controller $framework * @param array $config Contains the email configuration to be used. */ public function __construct(\CI_Controller $framework, array $config) { @@ -155,7 +155,7 @@ class Email { * @param array $company Some settings that are required for this function. By now this array must contain * the following values: "company_link", "company_name", "company_email". * @param \EA\Engine\Types\Email $recipientEmail The email address of the email recipient. - * @param \EA\Engine\Types\String $reason The reason why the appointment is deleted. + * @param \EA\Engine\Types\Text $reason The reason why the appointment is deleted. */ public function sendDeleteAppointment(array $appointment, array $provider, array $service, array $customer, array $company, EmailAddress $recipientEmail,