private function cleanupSlaveConnections()
    {
        foreach ($this->config['database']['connections'] as $name => $connection) {
            if (count($connection['slaves']) <= 0) {
                unset($this->config['database']['connections'][$name]['slaves']);
            }
        }
    }
private function cleanupSlaveConnections()
    {
        foreach ($this->config['database']['connections'] as $name => $connection) {
            if (count($connection['slaves']) <= 0) {
                unset($this->config['database']['connections'][$name]['slaves']);
            }
        }
    }
private function cleanupSlaveConnections ( ) { foreach ( $ this -> config [ 'database' ] [ 'connections' ] as $ name => $ connection ) { if ( count ( $ connection [ 'slaves' ] ) <= 0 ) { unset ( $ this -> config [ 'database' ] [ 'connections' ] [ $ name ] [ 'slaves' ] ) ; } } }
Remove empty `slaves` array from configured connections.
Remove empty slaves array from configured connections .