*/
public static function getList()
{
- $texts = array(
+ $texts = [
'<3',
'</3',
'<\\3',
'red#',
'red#matrix'
- );
+ ];
- $icons = array(
+ $icons = [
'<img class="smiley" src="' . System::baseUrl() . '/images/smiley-heart.gif" alt="<3" title="<3" />',
'<img class="smiley" src="' . System::baseUrl() . '/images/smiley-brokenheart.gif" alt="</3" title="</3" />',
'<img class="smiley" src="' . System::baseUrl() . '/images/smiley-brokenheart.gif" alt="<\\3" title="<\\3" />',
'<a href="https://friendi.ca">~friendica <img class="smiley" src="' . System::baseUrl() . '/images/friendica-16.png" alt="~friendica" title="~friendica" /></a>',
'<a href="http://redmatrix.me/">red<img class="smiley" src="' . System::baseUrl() . '/images/rm-16.png" alt="red#" title="red#" />matrix</a>',
'<a href="http://redmatrix.me/">red<img class="smiley" src="' . System::baseUrl() . '/images/rm-16.png" alt="red#matrix" title="red#matrix" />matrix</a>'
- );
+ ];
- $params = array('texts' => $texts, 'icons' => $icons);
+ $params = ['texts' => $texts, 'icons' => $icons];
call_hooks('smilie', $params);
return $params;
$params = self::getList();
if ($no_images) {
- $cleaned = array('texts' => array(), 'icons' => array());
+ $cleaned = ['texts' => [], 'icons' => []];
$icons = $params['icons'];
foreach ($icons as $key => $icon) {
if (!strstr($icon, '<img ')) {