for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @noinspection PhpUnusedParameterInspection
*
* @copyright Copyright (c) Flipbox Digital Limited
* @license https://flipboxfactory.com/software/hubspot/license
* @link https://www.flipboxfactory.com/software/hubspot/
*/
namespace flipbox\craft\hubspot\transformers;
use Psr\Http\Message\ResponseInterface;
use yii\base\DynamicModel;
* @author Flipbox Factory <[email protected]>
* @since 1.0.0
trait TransformResponseErrorsTrait
{
* @param ResponseInterface $response
* @param array $data
* @return DynamicModel
protected function transformResponseErrors(ResponseInterface $response, array $data): DynamicModel
$response
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$errors = call_user_func_array(
new InterpretResponseErrors(),
[
$data
]
);
$model = new DynamicModel();
$model->addErrors($errors);
return $model;
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.