Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 0165929

Browse files
committed
Apply proxy from getAttribs to getAttributes
1 parent c6d8e0c commit 0165929

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Helper/Gravatar.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function getImgTag()
168168
{
169169
$this->setSrcAttribForImg();
170170
$html = '<img'
171-
. $this->htmlAttribs($this->getAttribs())
171+
. $this->htmlAttribs($this->getAttributes())
172172
. $this->getClosingBracket();
173173

174174
return $html;
@@ -245,7 +245,7 @@ public function getAttribs()
245245
__CLASS__
246246
), E_USER_DEPRECATED);
247247

248-
return $this->attribs;
248+
return $this->getAttributes();
249249
}
250250

251251
/**
@@ -395,7 +395,7 @@ public function getSecure()
395395
*/
396396
protected function setSrcAttribForImg()
397397
{
398-
$attribs = $this->getAttribs();
398+
$attribs = $this->getAttributes();
399399
$attribs['src'] = $this->getAvatarUrl();
400400
$this->setAttributes($attribs);
401401
}

test/Helper/GravatarTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function testGetAndSetMethods()
9797
$this->assertEquals("monsterid", $this->helper->getDefaultImg());
9898
$this->assertEquals("pg", $this->helper->getRating());
9999
$this->assertEquals("[email protected]", $this->helper->getEmail());
100-
$this->assertEquals($attribs, $this->helper->getAttribs());
100+
$this->assertEquals($attribs, $this->helper->getAttributes());
101101
$this->assertEquals(150, $this->helper->getImgSize());
102102
$this->assertTrue($this->helper->getSecure());
103103
}

0 commit comments

Comments
 (0)