Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 10, 2017
1 parent fc17481 commit 830f194
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Http/FileHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
trait FileHelpers
{
/**
* The file hash name.
* The cache copy of the file's hash name.
*
* @var string
*/
private $hashNameCache = null;
protected $hashName = null;

/**
* Get the fully qualified path to the file.
Expand Down Expand Up @@ -55,7 +55,7 @@ public function hashName($path = null)
$path = rtrim($path, '/').'/';
}

$hash = $this->hashNameCache ?: $this->hashNameCache = Str::random(40);
$hash = $this->hashName ?: $this->hashName = Str::random(40);

return $path.$hash.'.'.$this->guessExtension();
}
Expand Down

0 comments on commit 830f194

Please sign in to comment.