Skip to content

Instantly share code, notes, and snippets.

@mosbth
Created November 16, 2020 13:49
Show Gist options
  • Save mosbth/8e496bc27c3d0cb30638c95241b81ff6 to your computer and use it in GitHub Desktop.
Save mosbth/8e496bc27c3d0cb30638c95241b81ff6 to your computer and use it in GitHub Desktop.
/home/mos/git/anax/router/src/Route/RouteHandler.php:13 The class RouteHandler has an overall complexity of 80 which is very high. The configured complexity threshold is 50.
/home/mos/git/anax/router/src/Route/RouteHandler.php:33 The method handle() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10.
/home/mos/git/anax/router/src/Route/RouteHandler.php:33 The method handle() has an NPath complexity of 360. The configured NPath complexity threshold is 200.
/home/mos/git/anax/router/src/Route/RouteHandler.php:92 The method getHandlerType() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
/home/mos/git/anax/router/src/Route/RouteHandler.php:136 Missing class import via use statement (line '136', column '19').
/home/mos/git/anax/router/src/Route/RouteHandler.php:136 Avoid variables with short names like $rc. Configured minimum length is 3.
/home/mos/git/anax/router/src/Route/RouteHandler.php:150 The method handleAsInvocableClass() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
/home/mos/git/anax/router/src/Route/RouteHandler.php:150 The method handleAsInvocableClass() has an NPath complexity of 216. The configured NPath complexity threshold is 200.
/home/mos/git/anax/router/src/Route/RouteHandler.php:157 Missing class import via use statement (line '157', column '21').
/home/mos/git/anax/router/src/Route/RouteHandler.php:173 Missing class import via use statement (line '173', column '25').
/home/mos/git/anax/router/src/Route/RouteHandler.php:184 Missing class import via use statement (line '184', column '21').
/home/mos/git/anax/router/src/Route/RouteHandler.php:246 Missing class import via use statement (line '246', column '29').
/home/mos/git/anax/router/src/Route/RouteHandler.php:259 Missing class import via use statement (line '259', column '29').
/home/mos/git/anax/router/src/Route/RouteHandler.php:284 The method handleAsControllerAction() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10.
/home/mos/git/anax/router/src/Route/RouteHandler.php:284 The method handleAsControllerAction() has an NPath complexity of 648. The configured NPath complexity threshold is 200.
/home/mos/git/anax/router/src/Route/RouteHandler.php:291 Missing class import via use statement (line '291', column '21').
/home/mos/git/anax/router/src/Route/RouteHandler.php:307 Missing class import via use statement (line '307', column '25').
/home/mos/git/anax/router/src/Route/RouteHandler.php:318 Missing class import via use statement (line '318', column '21').
/home/mos/git/anax/router/src/Route/RouteHandler.php:360 The method handleAsCallable() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
/home/mos/git/anax/router/src/Route/RouteHandler.php:372 Missing class import via use statement (line '372', column '25').
/home/mos/git/anax/router/src/Route/RouteHandler.php:381 Missing class import via use statement (line '381', column '19').
/home/mos/git/anax/router/src/Route/RouteHandler.php:382 Missing class import via use statement (line '382', column '19').
/home/mos/git/anax/router/src/Route/RouteMatcher.php:178 The method match() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
/home/mos/git/anax/router/src/Route/RouteMatcher.php:178 The method match() has an NPath complexity of 408. The configured NPath complexity threshold is 200.
/home/mos/git/anax/router/src/Route/RouteMatcher.php:197 Avoid excessively long variable names like $matchedQueryToMountPath. Keep variable name length under 20.
/home/mos/git/anax/router/src/Route/Router.php:15 The class Router has 15 public methods. Consider refactoring Router to keep number of public methods under 10.
/home/mos/git/anax/router/test/Mock/MockHandlerController.php:11 The class MockHandlerController has 11 public methods. Consider refactoring MockHandlerController to keep number of public methods under 10.
/home/mos/git/anax/router/test/Mock/MockHandlerController.php:70 Avoid unused private methods such as 'privateAction'.
/home/mos/git/anax/router/test/Mock/MockHandlerControllerCatchAll.php:10 Avoid unused parameters such as '$args'.
/home/mos/git/anax/router/test/Mock/MockHandlerControllerCatchAll.php:15 Avoid unused parameters such as '$args'.
/home/mos/git/anax/router/test/Mock/MockHandlerControllerCatchAll.php:20 Avoid unused parameters such as '$args'.
/home/mos/git/anax/router/test/Route/RouteHandlerControllerAppStyleFailTest.php:26 Avoid unused local variables such as '$app'.
/home/mos/git/anax/router/test/Route/RouteHandlerControllerTest.php:11 The class RouteHandlerControllerTest has 11 public methods. Consider refactoring RouteHandlerControllerTest to keep number of public methods under 10.
/home/mos/git/anax/router/test/Route/RouteTest.php:11 The class RouteTest has 17 public methods. Consider refactoring RouteTest to keep number of public methods under 10.
/home/mos/git/anax/router/test/Route/RouterAddRoutesTest.php:10 The class RouterAddRoutesTest has 14 public methods. Consider refactoring RouterAddRoutesTest to keep number of public methods under 10.
/home/mos/git/anax/router/test/Route/RouterInternalTest.php:114 Missing class import via use statement (line '114', column '23').
/home/mos/git/anax/router/test/Route/RouterInternalTest.php:137 Missing class import via use statement (line '137', column '23').
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment