mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Fix unused code in include
- Fix local formatting - Remove unused variable - Fix unreached breaks - Remove commented out code - Add some documentation
This commit is contained in:
parent
722782d553
commit
3b23f89ca2
24 changed files with 379 additions and 419 deletions
|
@ -67,8 +67,6 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) {
|
|||
} else {
|
||||
if ($simplehtml != 4) {
|
||||
$text = sprintf('<span class="type-%s">', $data["type"]);
|
||||
} else {
|
||||
$span_end = '';
|
||||
}
|
||||
|
||||
$bookmark = array(sprintf('[bookmark=%s]%s[/bookmark]', $data["url"], $data["title"]), $data["url"], $data["title"]);
|
||||
|
@ -270,7 +268,6 @@ function bb_spacefy($st) {
|
|||
* returning [i]italic[/i]
|
||||
*/
|
||||
function bb_unspacefy_and_trim($st) {
|
||||
$whole_match = $st[0];
|
||||
$captured = $st[1];
|
||||
$unspacefied = preg_replace("/\[ (.*?)\ ]/", "[$1]", $captured);
|
||||
return $unspacefied;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue