Skip to content

Commit a64413c

Browse files
committed
Remove one-time-use variables
1 parent 102d90f commit a64413c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

components/com_content/helpers/icon.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ public static function email($article, $params, $attribs = array(), $legacy = fa
8181
$attribs['onclick'] = "window.open(this.href,'win2','" . $status . "'); return false;";
8282
$attribs['rel'] = 'nofollow';
8383

84-
$output = JHtml::_('link', JRoute::_($url), $text, $attribs);
85-
86-
return $output;
84+
return JHtml::_('link', JRoute::_($url), $text, $attribs);
8785
}
8886

8987
/**

components/com_content/helpers/query.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,7 @@ public static function buildVotingQuery($params = null)
212212
$join = '';
213213
}
214214

215-
$results = array ('select' => $select, 'join' => $join);
216-
217-
return $results;
215+
return array ('select' => $select, 'join' => $join);
218216
}
219217

220218
/**

0 commit comments

Comments
 (0)