Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogarine committed Oct 28, 2018
1 parent 68a85d5 commit 8bb1ff9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Illuminate/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,17 @@ public function put($path, $contents, $lock = false)
*
* This will replace the target file permissions. It also resolves symlinks to replace the symlink's target file.
*
* @param string $path
* @param string $content
* @param string $path
* @param string $content
* @return void
*/
public function replace($path, $content)
{
// Just in case path already exists and is a symlink, we want to make sure we get the real path.
// If the path already exists and is a symlink, make sure we get the real path...
clearstatcache(true, $path);

$path = realpath($path) ?: $path;

// Write out the contents to a temp file, so we then can rename the file atomically.
$tempPath = tempnam(dirname($path), basename($path));

// Fix permissions of tempPath because `tempnam()` creates it with permissions set to 0600.
Expand Down

0 comments on commit 8bb1ff9

Please sign in to comment.