Skip to content

Commit

Permalink
formatting makes the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Price authored and Andrea R Soper committed Aug 7, 2016
1 parent 39c6f06 commit b9fadd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public function createFile($filename, $status = 1)
$file = new File(array(), 'file');
$file->setFilename($filename);
$file->setPermanent();
// $file->save(); //needs to happen somewhere
/*
$file->save(); //needs to happen somewhere
*/

$file = $this->expandFile($file);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ public function expandFile($file)
$file->setFileUri(rtrim(realpath($this->getMinkParameter('files_path')), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file->getFilename());

// Assign authorship if none exists and `author` is passed.
/* if (isset($file->getOwnerId()) === false && empty($file->author) === false) {
/*
if (isset($file->getOwnerId()) === false && empty($file->author) === false) {
$account = user_load_by_name($file->author);
if ($account !== false) {
$file->uid = $account->uid;
Expand Down

0 comments on commit b9fadd4

Please sign in to comment.