apply StyleCI recommendation
This commit is contained in:
parent
b00528388f
commit
49bc97e295
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ class Paste extends AbstractModel
|
||||||
if ($this->_conf->getKey('discussiondatedisplay')) {
|
if ($this->_conf->getKey('discussiondatedisplay')) {
|
||||||
return $this->_store->readComments($this->getId());
|
return $this->_store->readComments($this->getId());
|
||||||
}
|
}
|
||||||
return array_map(function($comment) {
|
return array_map(function ($comment) {
|
||||||
foreach (array('created', 'postdate') as $key) {
|
foreach (array('created', 'postdate') as $key) {
|
||||||
if (array_key_exists($key, $comment['meta'])) {
|
if (array_key_exists($key, $comment['meta'])) {
|
||||||
unset($comment['meta'][$key]);
|
unset($comment['meta'][$key]);
|
||||||
|
|
Loading…
Reference in a new issue