It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
The expression $classKey of type string|null is loosely compared to false; this is ambiguous if the string can be empty. You might want to explicitly use === null instead.
In PHP, under loose comparison (like ==, or !=, or switch conditions),
values of different types might be equal.
For string values, the empty string '' is a special case, in particular
the following results might be unexpected:
''==false// true''==null// true'ab'==false// false'ab'==null// false// It is often better to use strict comparison''===false// false''===null// false
Loading history...
31
return [];
32
}
33
34
return $this->synchronizers[$classKey];
35
}
36
37
/**
38
* @param object $entity
39
*/
40
public function synchronizeCreate($entity)
41
{
42
foreach ($this->getSynchronizers($entity) as $synchronizer) {
43
$synchronizer->synchronizeCreate($entity);
44
}
45
}
46
47
/**
48
* @param object $entity
49
*/
50
public function synchronizeUpdate($entity)
51
{
52
foreach ($this->getSynchronizers($entity) as $synchronizer) {
53
$synchronizer->synchronizeUpdate($entity);
54
}
55
}
56
57
/**
58
* @param object $entity
59
*/
60
public function synchronizeDelete($entity)
61
{
62
foreach ($this->getSynchronizers($entity) as $synchronizer) {
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: