Should the return type not be false|object|resource?
This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
34
*/
35
function add ($user_id, $provider, $identifier, $profile) {
36
return $this->db_prime()->q(
37
"REPLACE INTO `[prefix]users_social_integration`
38
(
39
`id`,
40
`provider`,
41
`identifier`,
42
`profile`
43
) VALUES (
44
'%s',
45
'%s',
46
'%s',
47
'%s'
48
)",
49
$user_id,
50
$provider,
51
$identifier,
52
$profile
53
);
54
}
55
/**
56
* Find user id by provider name and identifier
57
*
58
* @param string $provider
59
* @param string $identifier
60
*
61
* @return false|int User id or `false` if not found
62
*/
63
function find_integration ($provider, $identifier) {
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.