| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Code Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function create(DetachedResource $resource, array $fieldNames = [], $useKey = true) |
||
| 29 | { |
||
| 30 | $fieldNames = array_intersect($fieldNames, [ |
||
| 31 | 'name', |
||
| 32 | 'last_name', |
||
| 33 | 'first_name', |
||
| 34 | 'is_organisation', |
||
| 35 | 'contact_id', |
||
| 36 | 'email', |
||
| 37 | 'phone', |
||
| 38 | 'mobile', |
||
| 39 | 'twitter', |
||
| 40 | 'skype', |
||
| 41 | 'facebook', |
||
| 42 | 'linkedin', |
||
| 43 | 'address', |
||
| 44 | 'city', |
||
| 45 | 'country', |
||
| 46 | 'title', |
||
| 47 | 'description', |
||
| 48 | 'industry', |
||
| 49 | 'website', |
||
| 50 | 'fax', |
||
| 51 | 'tag_list', |
||
| 52 | 'private', |
||
| 53 | ]); |
||
| 54 | |||
| 55 | return parent::create($resource, $fieldNames, $useKey); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.