It seems like you are loosely comparing strpos($stuff, '\\') of type integer to the boolean true. If you are specifically checking for non-zero, consider using something more explicit like > 0 or !== 0 instead.
Loading history...
23
24
case $stuff instanceof \Closure:
24
1
return static::TYPE_CLOSURE;
25
24
case $stuff instanceof QueryBuilder:
26
2
return static::TYPE_SUB_QUERY;
27
24
case false !== strpos($stuff, '.'):
28
1
return static::TYPE_ROUTE;
29
24
case strpos($stuff, '\\'):
30
1
return static::TYPE_CLASS_NAME;
31
}
32
33
24
return static::TYPE_TABLE_NAME;
34
}
35
36
/**
37
* @param \Closure $closure
38
*
39
* @return string
40
*/
41
public function extractClassName(\Closure $closure)