Le 2013-12-15 14:36, Hugues Peccatte a écrit :
Good idea but how many levels is considered "too many"? Can you give an> Hi,
>
> What would you think about using the "nesting level" sniff please?
> This sniff permits to detect when there are too much nested levels like:
> if (...) {
> if (...) {
> if (...) {
> if (...) {
> if (...) {
> ....
> }
> }
> }
> }
> }
>
> This kind of syntax often means that a refactoring is needed or a rewrite.
>
> I can add it myself if you agree.
>
example of nesting levels you found?
--
Marc Delisle
http://infomarc.info | http://phpmyadmin.net
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Phpmyadmin-devel mailing list
Phpmyadmin-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel