public function findSiblingBlock(EM\BlockInterface $block, $next = false)
    {
        if (null === $row = $block->getRow()) {
            return null;
        }

        return $this->findSibling($row->getBlocks(), $block, $next);
    }
public function findSiblingBlock(EM\BlockInterface $block, $next = false)
    {
        if (null === $row = $block->getRow()) {
            return null;
        }

        return $this->findSibling($row->getBlocks(), $block, $next);
    }
public function findSiblingBlock ( EM \ BlockInterface $ block , $ next = false ) { if ( null === $ row = $ block -> getRow ( ) ) { return null ; } return $ this -> findSibling ( $ row -> getBlocks ( ) , $ block , $ next ) ; }
Returns the sibling of the given block.

@param EM\BlockInterface $block
@param bool            $next Whether to look for the next or the previous

@return EM\BlockInterface|null
Returns the sibling of the given block .