Results 1 to 5 of 5
Dec 4, 2012, 08:48 #1
- Join Date
- Sep 2004
- 0 Post(s)
- 0 Thread(s)
Coding Standard Question: Is there no limit for the max number of lines of a method?
Coming from an application development environment (Java, C#, C++);
Is there no limit specified by a PHP (Zend) coding standard which sets a guideline to how long the body of a method can be? When programming an application a method should only have one task, delegate everything else. And the body of a method should never be so long that you can't view it in one page (about 40-45 lines, the shorter the better).
Are there some similar guidelines in PHP. I've never seen a guideline concerning PHP for how long methods should be.