CouponSheetsAwareInterface
last analyzed

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
setCouponSheets() 0 1 ?
1
<?php
2
namespace Germania\Coupons;
3
4
interface CouponSheetsAwareInterface extends CouponSheetsProviderInterface
5
{
6
7
8
    /**
9
     * @param array|Traversable $coupon_sheet
0 ignored issues
show
Documentation introduced by
There is no parameter named $coupon_sheet. Did you maybe mean $coupon_sheets?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

Consider the following example. The parameter $ireland is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $ireland
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was changed, but the annotation was not.

Loading history...
10
     */
11
    public function setCouponSheets( $coupon_sheets );
12
}
13