I am currently doing a code review, where I have found this nice pearl, I have to share.

I really hope that wordpress does not kill the lovely formatting :-)

        if (initialisePools()) {
            if (replicateServices()) {
                if (replicateLocations()) {
                    if (replicateLocationData()) {
                        if (replicateContacts()) {
                            if (replicatePackages()) {
                                if (replicateCustomers()) {
                                    if (replicateCompanies()) {
                                        if (replicateGroups()) {
                                            replicateUsers();
                                            ok=true;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }

A shorter way to write would be:

        ok = initialisePools() && replicateServices()
             && replicateLocations() && replicateLocationData()
             && replicateContacts() && replicatePackages()
             && replicateCustomers() && replicateCompanies()
             && replicateGroups() && replicateUsers();

any other proposals?

PS: Of course things can be always done differently, so your proposal must assume that invoking the methods separately makes sense :-)