for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MidasSoft\DominicanBankParser\Collections;
use MidasSoft\DominicanBankParser\Deposit;
use MidasSoft\DominicanBankParser\Exceptions\InvalidArgumentException;
use Tightenco\Collect\Support\Collection;
class DepositCollection extends Collection
{
/**
* {@inheritDoc}
*/
public function __construct($items = [])
array_walk($items, function ($value, $key) {
$key
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
array_walk($items, function ($value, /** @scrutinizer ignore-unused */ $key) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
if (!$value instanceof Deposit) {
throw new InvalidArgumentException('You should pass only Deposit objects to this collection.');
}
});
parent::__construct($items);
public function push($value)
parent::push($value);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.