for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* API for Billing
*
* @link https://github.com/hiqdev/billing-hiapi
* @package billing-hiapi
* @license BSD-3-Clause
* @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\billing\hiapi\customer;
use hiqdev\php\billing\customer\CustomerInterface;
class CustomerRepository extends \hiqdev\yii\DataMapper\repositories\BaseRepository
{
/** {@inheritdoc} */
public $queryClass = CustomerQuery::class;
public function save(CustomerInterface $customer)
$customer
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function save(/** @scrutinizer ignore-unused */ CustomerInterface $customer)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
throw new \Exception('not implemented ' . __METHOD__);
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.