Performed corrections to various codebase issues.

This commit is contained in:
alext 2016-11-09 20:10:27 +01:00
parent 388a079834
commit 3c7c95b0b1
5 changed files with 16 additions and 16 deletions

View file

@ -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() {

View file

@ -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) {

View file

@ -1,4 +1,4 @@
<?php
<?php
/* ----------------------------------------------------------------------------
* Easy!Appointments - Open Source Web Scheduler
@ -11,21 +11,21 @@
* @since v1.2.0
* ---------------------------------------------------------------------------- */
namespace EA\Engine\Api\V1\Processors;
namespace EA\Engine\Api\V1\Processors;
/**
* Filter Processor
* Filter Processor
*
* This class will handle custom filters upon the response array. In some specific cases it might be
* easier to apply some custom filtering in order to get the required results.
* This class will handle custom filters upon the response array. In some specific cases it might be
* easier to apply some custom filtering in order to get the required results.
*
* @todo Implement this processor class.
*/
class Filter implements ProcessorsInterface {
class Filter implements ProcessorsInterface
{
/**
* Process Response Array
*
*
* @param array &$response The response array to be processed.
*/
public static function process(array &$response) {

View file

@ -22,9 +22,9 @@ use EA\Engine\Types\NonEmptyText;
* use directly the provided GET parameters for easier manipulation.
*
* Example:
* $formatter = new \EA\Engine\Api\V1\Formatters\Appointments;
* $parser = new \EA\Engine\Api\V1\Parsers\Appointments;
* $response = new \EA\Engine\Api\V1\Response($data);
* $response->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
*/

View file

@ -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,