Skip to content

Commit

Permalink
Add missing Docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
MidnightDesign committed Jan 20, 2015
1 parent 9894a25 commit 3a5944f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Plugin/ImageUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ public function __construct($publicDirectory)
$this->publicDirectory = $publicDirectory;
}

/**
* @param ImageInterface $image
*
* @return string
*/
public function __invoke(ImageInterface $image)
{
return str_replace('\\', '/', str_replace(realpath($this->publicDirectory), '', realpath($image->getFile())));
Expand Down

0 comments on commit 3a5944f

Please sign in to comment.