for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kata\Application\CityPriceStrategy;
use Kata\Domain\City\Model\City;
class Strategies
{
public $strategies = [];
public static function instance(): Strategies
return new self();
}
public function add(City $city, Strategy $strategy)
$this->strategies[$city->name()][] = $strategy;
public function calculate(City $item, $qty)
$item
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$qty
//TODO
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.