public function format(array $response)
    {
        $this->logger->debug('Page:format');
        $car = '<br />';
        $format = '';
        foreach ($response as $page) {
            $format .= '<div class="page">'
            . '<span class="title">'
            . Tools::safeString(Tools::getFromArray($page, 'title'))
            . '</span>'
            . $car . '<span class="pageid">' . Tools::getFromArray($page, 'pageid') . '</span>'
            . $car . Tools::getFromArray($page, 'page_image_free')
            . $car . Tools::getFromArray($page, 'wikibase_item')
            .'</div>';
        }
        return $format;
    }
public function format(array $response)
    {
        $this->logger->debug('Page:format');
        $car = '<br />';
        $format = '';
        foreach ($response as $page) {
            $format .= '<div class="page">'
            . '<span class="title">'
            . Tools::safeString(Tools::getFromArray($page, 'title'))
            . '</span>'
            . $car . '<span class="pageid">' . Tools::getFromArray($page, 'pageid') . '</span>'
            . $car . Tools::getFromArray($page, 'page_image_free')
            . $car . Tools::getFromArray($page, 'wikibase_item')
            .'</div>';
        }
        return $format;
    }
public function format ( array $ response ) { $ this -> logger -> debug ( 'Page:format' ) ; $ car = '<br />' ; $ format = '' ; foreach ( $ response as $ page ) { $ format .= '<div class="page">' . '<span class="title">' . Tools :: safeString ( Tools :: getFromArray ( $ page , 'title' ) ) . '</span>' . $ car . '<span class="pageid">' . Tools :: getFromArray ( $ page , 'pageid' ) . '</span>' . $ car . Tools :: getFromArray ( $ page , 'page_image_free' ) . $ car . Tools :: getFromArray ( $ page , 'wikibase_item' ) . '</div>' ; } return $ format ; }
format a page response as a simple string

@param array $response
@return string
format a page response as a simple string