1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 00:27:27 +02:00

refactor: remove unused method

This commit is contained in:
Dag
2022-05-09 23:32:45 +02:00
parent 76084cdcca
commit 8982995445
2 changed files with 0 additions and 28 deletions

View File

@@ -181,23 +181,4 @@ abstract class FormatAbstract implements FormatInterface {
// We leave alone object and embed so that videos can play in RSS readers.
return $html;
}
/**
* Trim each element of an array
*
* This function applies `trim()` to all elements in the array, if the element
* is a valid string.
*
* @param array $elements The array to trim
* @return array The trimmed array
*
* @todo This is a utility function that doesn't belong here, find a new home.
*/
protected function array_trim($elements){
foreach($elements as $key => $value) {
if(is_string($value))
$elements[$key] = trim($value);
}
return $elements;
}
}