Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function create(DetachedResource $resource, array $fieldNames = [], $useKey = true) |
||
37 | { |
||
38 | $fieldNames = array_intersect($fieldNames, [ |
||
39 | 'last_name', |
||
40 | 'company_name', |
||
41 | 'first_name', |
||
42 | 'email', |
||
43 | 'phone', |
||
44 | 'mobile', |
||
45 | 'twitter', |
||
46 | 'skype', |
||
47 | 'facebook', |
||
48 | 'linkedin', |
||
49 | 'street', |
||
50 | 'zip', |
||
51 | 'region', |
||
52 | 'city', |
||
53 | 'city', |
||
54 | 'country', |
||
55 | 'title', |
||
56 | 'description', |
||
57 | ]); |
||
58 | |||
59 | return parent::create($resource, $fieldNames, $useKey); |
||
60 | } |
||
61 | } |
||
62 |
This check looks for
@param
annotations 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.