Skip to content

Commit

Permalink
Removing unnecessary primitive type hints. Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
orediggerco committed Nov 16, 2017
1 parent 1c33df3 commit 60ff7db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Comcast/PhpLegalLicenses/Command/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected function parseComposerLockFile()
* @param array $dependencies
* @return void
*/
protected function generateLicensesText(array $dependencies)
protected function generateLicensesText($dependencies)
{
$text = $this->getBoilerplate();

Expand Down Expand Up @@ -106,7 +106,7 @@ protected function getBoilerplate()
* @param array $dependency
* @return string
*/
protected function getTextForDependency(array $dependency)
protected function getTextForDependency($dependency)
{
$name = $dependency['name'];
$description = isset($dependency['description']) ? $dependency['description'] : 'Not configured.';
Expand All @@ -124,7 +124,7 @@ protected function getTextForDependency(array $dependency)
* @param string $name
* @return string
*/
protected function getFullLicenseText(string $name)
protected function getFullLicenseText($name)
{
$path = getcwd() . "/vendor/$name/";
$filenames = ['LICENSE.txt', 'LICENSE.md', 'LICENSE', 'license.txt', 'license.md', 'license'];
Expand All @@ -151,7 +151,7 @@ protected function getFullLicenseText(string $name)
* @param string $license
* @return string
*/
protected function generateDependencyText(string $name, string $description, string $version, string $homepage, string $sha, string $licenseNames, string $license)
protected function generateDependencyText($name, $description, $version, $homepage, $sha, $licenseNames, $license)
{
return "### $name (Version $version | $sha)
$description
Expand Down

0 comments on commit 60ff7db

Please sign in to comment.