I was asked to fix few bugs, looking at the code, this is what I saw at the end, 600 lines later:

            }
                        }

        }
                }
            }
    }
        }

                                        }

Looks like vertical brainf4ck code. You can imagine how it looks the rest.

I'm not understanding why you tagged this thread bad-code. Looks perfectly fine and readable to me.

Except it is the ending of a PHP function.

I'd brace myself if I were you.

commented: lol +0
commented: he he he +0
commented: The braces there look right to me. +0

I was being facetious in my previous post.

commented: got it ;p +0