public function checkUrls($urls)
    {
        $urls = $this->cleanParameterUrls($urls);

        foreach ($urls as $url) {
            if (!UrlHelper::isLookLikeUrl($url)) {
                throw new Exception(sprintf(Piwik::translate('SitesManager_ExceptionInvalidUrl'), $url));
            }
        }
    }
public function checkUrls($urls)
    {
        $urls = $this->cleanParameterUrls($urls);

        foreach ($urls as $url) {
            if (!UrlHelper::isLookLikeUrl($url)) {
                throw new Exception(sprintf(Piwik::translate('SitesManager_ExceptionInvalidUrl'), $url));
            }
        }
    }
public function checkUrls ( $ urls ) { $ urls = $ this -> cleanParameterUrls ( $ urls ) ; foreach ( $ urls as $ url ) { if ( ! UrlHelper :: isLookLikeUrl ( $ url ) ) { throw new Exception ( sprintf ( Piwik :: translate ( 'SitesManager_ExceptionInvalidUrl' ) , $ url ) ) ; } } }
Check that the array of URLs are valid URLs

@param array $urls
@throws Exception if any of the urls is not valid
Check that the array of URLs are valid URLs