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...
44
*/
45
2
public function apply(Request $request)
46
{
47
2
foreach ($this->strategies as $strategy) {
48
2
$name = $strategy->apply($request);
49
2
if ($strategy->stopPropagation()) {
50
2
$this->roles = $strategy->getRoles();
51
2
return $name;
52
1
}
53
1
}
54
55
return false;
56
}
57
58
/**
59
* Decider to stop other strategies running after from being considered.
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.