Remove all the {{{ and }}} folding

This commit is contained in:
2022-11-25 20:34:27 +01:00
parent b723f47a44
commit 2d6df0d5f0
35 changed files with 0 additions and 1124 deletions

View File

@@ -29,7 +29,6 @@ class Sitemap
* @return array The content of the file if it is valid
*/
public function analyze ($content, $url)
// {{{
{
$finfo = new \finfo (FILEINFO_MIME_TYPE);
$type = $finfo->buffer ($content);
@@ -48,7 +47,6 @@ class Sitemap
else
throw new \Exception ("Type of sitemap '$type' unknown for '$url'", 406);
}
// }}}
/** Return an array containing the URL in sitemap associated with an empty
* array, as the Text format provide only URL, so return empty array.
@@ -64,7 +62,6 @@ class Sitemap
* @return array The content of the file if it is valid
*/
public function analyzeText ($content, $url)
// {{{
{
if (strlen ($content) > 10000000)
{
@@ -77,7 +74,6 @@ class Sitemap
$urls = array_fill_keys ($urls, array ());
return array ("urls" => $urls, "sitemaps" => array ());
}
// }}}
/** Return an array containing the URL in sitemap associated with the
* information of priority and changefreq (in seconds)
@@ -95,7 +91,6 @@ class Sitemap
* @return array The content of the file if it is valid
*/
public function analyzeXML ($content, $url)
// {{{
{
if (strlen ($content) > 10000000)
throw new \Exception ("Sitemap '$url' size is too big -> skip", 406);
@@ -186,5 +181,4 @@ class Sitemap
}
return $res;
}
// }}}
}