Skip to content

Commit

Permalink
s/vendor_name/author_name, fixes #42
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelstolt committed May 20, 2015
1 parent 40d9de0 commit dcfe35e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/Construct.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,14 @@ protected function travis()
protected function license()
{
$file = $this->file->get(__DIR__ . '/stubs/licenses/' . strtolower($this->license) . '.txt');
$content = str_replace(['{year}', '{name}'], [(new \DateTime())->format('Y'), $this->vendorUpper], $file);

$user = $this->determineConfiguredGitUser();

$content = str_replace(
['{year}', '{author_name}'],
[(new \DateTime())->format('Y'), $user['name']],
$file
);

$this->file->put($this->projectLower . '/' . 'LICENSE.md', $content);
}
Expand Down
2 changes: 1 addition & 1 deletion src/stubs/licenses/mit.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) {year} {name}
Copyright (c) {year} {author_name}

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit dcfe35e

Please sign in to comment.