| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 15 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | View Code Duplication | public function create(DetachedResource $resource, array $fieldNames = [], $useKey = true) |
|
| 36 | { |
||
| 37 | $fieldNames = array_intersect($fieldNames, [ |
||
| 38 | 'name', |
||
| 39 | 'entity_id', |
||
| 40 | 'scope', |
||
| 41 | 'hot', |
||
| 42 | 'deal_tags', |
||
| 43 | 'contact_ids', |
||
| 44 | 'source_id', |
||
| 45 | 'stage', |
||
| 46 | ]); |
||
| 47 | |||
| 48 | return parent::create($resource, $fieldNames, $useKey); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.