public function findSiblingContainer(EM\ContainerInterface $container, $next = false)
    {
        if (null === $content = $container->getContent()) {
            return null;
        }

        return $this->findSibling($content->getContainers(), $container, $next);
    }
public function findSiblingContainer(EM\ContainerInterface $container, $next = false)
    {
        if (null === $content = $container->getContent()) {
            return null;
        }

        return $this->findSibling($content->getContainers(), $container, $next);
    }
public function findSiblingContainer ( EM \ ContainerInterface $ container , $ next = false ) { if ( null === $ content = $ container -> getContent ( ) ) { return null ; } return $ this -> findSibling ( $ content -> getContainers ( ) , $ container , $ next ) ; }
Returns the sibling of the given container.

@param EM\ContainerInterface $container
@param bool            $next Whether to look for the next or the previous

@return EM\ContainerInterface|null
Returns the sibling of the given container .