for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Canvas\Api\Controllers;
use Canvas\Models\PaymentMethodsCreds;
use Phalcon\Http\Response;
/**
* Class LanguagesController.
*
* @package Canvas\Api\Controllers
*/
class PaymentMethodsCredsController extends BaseController
{
/*
* fields we accept to create
* @var array
protected $createFields = [];
protected $updateFields = [];
* set objects.
* @return void
public function onConstruct()
$this->model = new PaymentMethodsCreds();
$this->additionalSearchFields = [
['is_deleted', ':', '0'],
['users_id', ':', $this->userData->getId()],
['companies_id', ':', '0|' . $this->userData->currentCompanyId()],
['apps_id', ':', $this->app->getId()]
];
}
* Get current payment methods creds
* @param mixed $id
$id
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @method GET
* @url /v1/roles-acceslist/{id}
* @return Response
public function getCurrentPaymentMethodsCreds(): Response
return $this->response($this->model->getCurrentPaymentMethodCreds());
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.