for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SmartCNAB\Services\Remittances\Banks\Santander;
use SmartCNAB\Support\File\Remittance;
/**
* Class for Santander remittance CNAB 400 layout.
*/
class File400 extends Remittance
{
* File schema file.
*
* @var string
protected $schemaFile = '/schemas/400.json';
* Mutates a company document type.
* @param mixed $value
* @param array $data
* @return mixed
protected function mutateDetailCompanyDocumentType(
$value,
$value
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
array $data = []
) {
return strlen($data['companyDocument']) === 14 ? 2 : 1;
}
* Mutates a late interest date.
protected function mutateDetailLateInterestDate(
return $value ?: $data['expiration']->add(new \DateInterval('P1D'));
* Mutates the late interest flag based on late interest percentage.
protected function mutateDetailLateInterestFlag(
return ( ! empty($data['lateInterestPercentage'])) ? 4 : 0;
* Mutates a document type.
protected function mutateDetailDocumentType(
return strlen($data['document']) === 14 ? 2 : 1;
* Mutates a deadline.
protected function mutateDetailDeadline(
if ($data['instruction1'] == 6 || $data['instruction2'] == 6)
return $value ?: 0;
return !empty($data['deadline'])? $data['deadline'] : $value;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.