Skip to content

Rule to enforce that certain controller methods must "used" #66

Rule to enforce that certain controller methods must "used"

Rule to enforce that certain controller methods must "used" #66

Triggered via pull request October 12, 2025 10:07
Status Failure
Total duration 46s
Artifacts

ci.yml

on: pull_request
Coding Standard & Static Analysis
32s
Coding Standard & Static Analysis
Matrix: testsuite-linux
Fit to window
Zoom out
Zoom in

Annotations

11 errors
testsuite-linux (8.1, lowest)
Process completed with exit code 2.
Coding Standard & Static Analysis: tests/test_app/Controller/FailingControllerMethodReturnLogic.php#L74
Method redirect() must be returned to prevent unreachable code. Use "return $this->redirect()" instead.
Coding Standard & Static Analysis: tests/test_app/Controller/FailingControllerMethodReturnLogic.php#L74
Method App\Controller\FailingControllerMethodReturnLogic::actionWithConditionalRedirectNoReturn() should return Cake\Http\Response|null but return statement is missing.
Coding Standard & Static Analysis: tests/test_app/Controller/FailingControllerMethodReturnLogic.php#L73
Method App\Controller\FailingControllerMethodReturnLogic::actionWithConditionalRedirectNoReturn() should return Cake\Http\Response|null but return statement is missing.
Coding Standard & Static Analysis: tests/test_app/Controller/FailingControllerMethodReturnLogic.php#L62
Method render() must be returned to prevent unreachable code. Use "return $this->render()" instead.
Coding Standard & Static Analysis: tests/test_app/Controller/FailingControllerMethodReturnLogic.php#L62
Method App\Controller\FailingControllerMethodReturnLogic::actionWithConditionalRenderNoReturn() should return Cake\Http\Response|null but return statement is missing.
Coding Standard & Static Analysis: tests/test_app/Controller/FailingControllerMethodReturnLogic.php#L61
Method App\Controller\FailingControllerMethodReturnLogic::actionWithConditionalRenderNoReturn() should return Cake\Http\Response|null but return statement is missing.
Coding Standard & Static Analysis: tests/test_app/Controller/FailingControllerMethodReturnLogic.php#L31
Method App\Controller\FailingControllerMethodReturnLogic::actionWithoutReturnRedirect() should return Cake\Http\Response|null but return statement is missing.
Coding Standard & Static Analysis: tests/test_app/Controller/FailingControllerMethodReturnLogic.php#L29
Method redirect() must be returned to prevent unreachable code. Use "return $this->redirect()" instead.
Coding Standard & Static Analysis: tests/test_app/Controller/FailingControllerMethodReturnLogic.php#L19
Method App\Controller\FailingControllerMethodReturnLogic::actionWithoutReturnRender() should return Cake\Http\Response|null but return statement is missing.
Coding Standard & Static Analysis: tests/test_app/Controller/FailingControllerMethodReturnLogic.php#L17
Method render() must be returned to prevent unreachable code. Use "return $this->render()" instead.