Conditions | 3 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
21 | 1 | public function bar(DebuggerManager $debuggerManager, Request $request, ResponseFactory $responseFactory) |
|
22 | { |
||
23 | return $responseFactory->stream(function () use ($debuggerManager, $request) { |
||
24 | 1 | list($headers, $content) = $debuggerManager->dispatchAssets($request->get('_tracy_bar')); |
|
25 | 1 | if (headers_sent() === false) { |
|
26 | 1 | foreach ($headers as $name => $value) { |
|
27 | 1 | header(sprintf('%s: %s', $name, $value), true, 200); |
|
28 | } |
||
29 | } |
||
30 | 1 | echo $content; |
|
31 | 1 | }, 200); |
|
32 | } |
||
33 | } |
||
34 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.