Codor icon indicating copy to clipboard operation
Codor copied to clipboard

Sniff to prevent if/loops within any controller methods?

Open bmitch opened this issue 9 years ago • 0 comments

Not sure if this is a good idea or not but I guess users can always disable if they don't want to use it.

If the file ends in Controller.php then no methods within should contain any logic. Logic should be delegated to other classes.

  • If file ends in controller.
  • If file contains if, else, or any loop keyword it fails.

bmitch avatar Apr 05 '17 18:04 bmitch