Issues (92)

src/customer/CustomerRepository.php (1 issue)

1
<?php
2
/**
3
 * API for Billing
4
 *
5
 * @link      https://github.com/hiqdev/billing-hiapi
6
 * @package   billing-hiapi
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\billing\hiapi\customer;
12
13
use hiqdev\php\billing\customer\CustomerInterface;
14
15
class CustomerRepository extends \hiqdev\yii\DataMapper\repositories\BaseRepository
16
{
17
    /** {@inheritdoc} */
18
    public $queryClass = CustomerQuery::class;
19
20
    public function save(CustomerInterface $customer)
0 ignored issues
show
The parameter $customer is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

20
    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.

Loading history...
21
    {
22
        throw new \Exception('not implemented ' . __METHOD__);
23
    }
24
}
25