Why are there so many examples of bloated PHP methods out there?! I see a lot of bloated methods being used in examples through sites like phpclasses.org and a very large chunk of a project I’ve recently picked up which a few developers have worked on. Guys! remember! There is no good reason to bloat your methods to over 10-20 lines long and on the rare occasions that you do exceed 10 – 20 lines it would be more the exception to the rule as opposed to being the rule itself!
Let’s not forget what classes and its methods are supposed to be: Classes are blueprints for specialist components and their methods are singular actions which address one to a few (2 – 3 at most!) procedures at a time whether it be through the use of other classes or just through simple logic!
» Read more: Stay away from Bloated Class Methods, actually, bloated ANYTHING!

