Support #1053
未完了[TREASURE-418] Shared/Helpers/Helper.php return が2箇所あるfunction がある。
0%
説明
Team-207183
下記のソースに return $result; が2箇所存在する。
Shared/Helpers/Helper.php
こちらで削除するので 1回目 return 以降は削除していいですか?
public static function textitems($item)
{
$result = '';
if (!empty($item['comment'])) {
$result .= trim($item['comment']) . ' ';
}
if (!empty($item['headline'])) {
$result .= '◎' . trim($item['headline']) . ' ';
}
if (empty($item['headline']) && !empty($item['subheadline'])) {
$result .= '◎' . trim($item['subheadline']) . ' ';
} elseif (!empty($item['subheadline'])) {
// Check if subheadline exists
$result .= trim($item['subheadline']) . ' ';
}
if (!empty($item['editinfotext'])) {
if (is_array($item['editinfotext'])) {
$result .= '【編注】';
foreach ($item['editinfotext'] as $val) {
$result .= $val;
}
$result .= ' ';
} else {
$result .= '【編注】' . trim($item['editinfotext']) . ' ';
}
}
if (!empty($item['caption'])) {
$result .= trim($item['caption']);
}
$result .= '(了) ';
if (!empty($item['cntldate'])) {
$result .= substr($item['cntldate'], 0, 8);
}
if (!empty($item['endinfotext'])) {
$result .= ' ' . trim($item['endinfotext']);
}
return $result;
ーーーーーーーーここから削除
// caption データ追加
if (!empty($item['caption'])) {
$result .= trim($item['caption']) . ' ';
}
// descriotion データ追加
if (!empty($item['description'])) {
$result .= trim($item['description']) . ' ';
}
// memo データ追加
if (!empty($item['memo'])) {
$result .= trim($item['memo']);
}
return $result;
}
💬 コメント1:
2025/09/05 10:53 Restuaji Eliansyah
@永吉
その部分は使用されていないので、削除しても大丈夫です。。
表示するデータがありません