Skip to content

Commit

Permalink
fixed styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Fraser committed Sep 30, 2016
1 parent ce41eff commit 95dbb1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/UrlGenerators/LocalUrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public function getPublicPath()
if (! $this->isPubliclyAccessible()) {
throw MediaUrlException::mediaNotPubliclyAccessible($this->getAbsolutePath(), public_path());
}
if($this->isInWebroot()){
if ($this->isInWebroot()) {
$path = str_replace(public_path(), '', $this->getAbsolutePath());
}else{
} else {
$path = rtrim($this->getDiskConfig('prefix', 'storage'), '/') . '/' . $this->media->getDiskPath();
}

Expand Down
1 change: 0 additions & 1 deletion tests/integration/UrlGenerators/LocalUrlGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public function test_it_accepts_public_visiblity()
{
$generator = $this->setupGenerator('public_storage');
$this->assertEquals('http://localhost/prefix/foo/bar.jpg', $generator->getUrl());

}

protected function setupGenerator($disk = 'uploads')
Expand Down

0 comments on commit 95dbb1d

Please sign in to comment.