Skip to content

Commit 83555ea

Browse files
committed
Cleanup: Add separeted class to store license types
1 parent 03bd132 commit 83555ea

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

src/Command/Markdown/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private function promptLicense(HelperInterface $helper, InputInterface $input, O
145145
{
146146
$question = new ChoiceQuestion(
147147
'License',
148-
['ISC', 'MIT', 'GPL', 'BSD'],
148+
License::CODES,
149149
DefaultValue::LICENSE
150150
);
151151

src/Command/Markdown/License.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace PH7\PhpReadmeGeneratorFile\Command\Markdown;
4+
5+
final class License
6+
{
7+
public const CODES = [
8+
'ISC',
9+
'MIT',
10+
'GPL',
11+
'BSD'
12+
];
13+
}

0 commit comments

Comments
 (0)