Cleanup
This commit is contained in:
@ -9,7 +9,7 @@ trait isExcel
|
||||
* @throws PhpSpreadsheet\Exception
|
||||
* @throws PhpSpreadsheet\Calculation\Exception
|
||||
*/
|
||||
protected function findTitlesRow(PhpSpreadsheet\Worksheet\RowIterator &$rowIterator, string $firstTitle, int $columnOffset = 1, bool $caseInsensitive = false): ?PhpSpreadsheet\Worksheet\Row
|
||||
protected function findTitlesRow(PhpSpreadsheet\Worksheet\RowIterator $rowIterator, string $firstTitle, int $columnOffset = 1, bool $caseInsensitive = false): ?PhpSpreadsheet\Worksheet\Row
|
||||
{
|
||||
if ($caseInsensitive) {
|
||||
$firstTitle = strtolower($firstTitle);
|
||||
@ -100,11 +100,6 @@ trait isExcel
|
||||
if ($columnOffset > 1) {
|
||||
$cellIterator->seek($columnOffset);
|
||||
}
|
||||
foreach ($exitValues as $exitValue) {
|
||||
if ($cellIterator->current()->getCalculatedValue() === $exitValue) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return in_array($cellIterator->current()->getCalculatedValue(), $exitValues, true);
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
namespace Incoviba\Service\Contabilidad\Cartola;
|
||||
|
||||
use Incoviba\Common\Ideal\Cartola\Banco;
|
||||
use InvalidArgumentException;
|
||||
use Psr\Http\Message\UploadedFileInterface;
|
||||
use Incoviba\Common\Ideal\Cartola\Banco;
|
||||
|
||||
trait withSubBancos
|
||||
{
|
||||
|
Reference in New Issue
Block a user