Skip to content

Commit b587c69

Browse files
committed
fix error
1 parent 29ea92c commit b587c69

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/LinksImprover.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ class LinksImprover
2424

2525
protected $tagsInsideLinkCouldBeAdded = [
2626
'p', 'p ', 'span', 'span ', 'b', 'b ',
27-
'strong', 'strong ', 'em', 'em ', 'i', 'i ', 'li', 'li '
27+
'strong', 'strong ', 'em', 'em ', 'i', 'i ', 'li', 'li ',
2828
];
29-
const TAGS_EXTENDED = [
29+
public const TAGS_EXTENDED = [
3030
'p', 'p ', 'span', 'span ', 'b', 'b ',
31-
'strong', 'strong ', 'em', 'em ', 'i', 'i ', 'li', 'li '
31+
'strong', 'strong ', 'em', 'em ', 'i', 'i ', 'li', 'li ',
3232
'h2', 'h2 ', 'h3', 'h3 ', 'h4', 'h4 ', 'h5', 'h5 ',
3333
'div', 'div ',
3434
];
@@ -49,7 +49,7 @@ protected function linkEverExist($link)
4949
}
5050
}
5151

52-
public function improve(LinksManager $linksManager, $maxLink, $linkAttrToAdd = '') : string
52+
public function improve(LinksManager $linksManager, $maxLink, $linkAttrToAdd = ''): string
5353
{
5454
foreach ($linksManager->get() as $link) {
5555
if ($this->mustStop($maxLink)) {
@@ -90,7 +90,7 @@ protected function createLink(Link $link, $anchorTxt, $anchorPos, $attr)
9090

9191
protected function getLinkToAdd($url, $anchor, $attr)
9292
{
93-
return '<a href="'.$url.'"'.($attr ? ' '.$attr:'').'>'.trim($anchor).'</a>';
93+
return '<a href="'.$url.'"'.($attr ? ' '.$attr : '').'>'.trim($anchor).'</a>';
9494
}
9595

9696
public function setTagsInsideLinkCouldBeAdded(array $tags)

0 commit comments

Comments
 (0)