13
13
*/
14
14
class StaticLabelApi extends NullLabelApi
15
15
{
16
- public function getComponentLabelsForRepository (Repository $ repository ): array
17
- {
18
- return [
19
- 'Asset ' , 'AssetMapper ' , 'BrowserKit ' , 'Cache ' , 'Config ' , 'Console ' ,
20
- 'Contracts ' , 'CssSelector ' , 'Debug ' , 'DebugBundle ' , 'DependencyInjection ' ,
21
- 'Doctrine ' , 'DoctrineBridge ' , 'DomCrawler ' , 'Dotenv ' , 'Emoji ' ,
22
- 'Enhancement ' , 'ErrorHandler ' , 'EventDispatcher ' , 'ExpressionLanguage ' ,
23
- 'Feature ' , 'Filesystem ' , 'Finder ' , 'Form ' , 'FrameworkBundle ' ,
24
- 'HttpClient ' , 'HttpFoundation ' , 'HttpKernel ' , 'Inflector ' , 'Intl ' , 'JsonPath ' , 'JsonStreamer ' , 'Ldap ' ,
25
- 'Locale ' , 'Lock ' , 'Mailer ' , 'Messenger ' , 'Mime ' , 'MonologBridge ' , 'Notifier ' , 'ObjectMapper ' ,
26
- 'OptionsResolver ' , 'PasswordHasher ' , 'PhpUnitBridge ' , 'Process ' , 'PropertyAccess ' ,
27
- 'PropertyInfo ' , 'ProxyManagerBridge ' , 'PsrHttpMessageBridge ' , 'RemoteEvent ' , 'Routing ' ,
28
- 'Scheduler ' , 'Security ' , 'SecurityBundle ' , 'Serializer ' , 'Stopwatch ' , 'String ' ,
29
- 'Templating ' , 'Translation ' , 'TwigBridge ' , 'TwigBundle ' , 'TypeInfo ' , 'Uid ' , 'Validator ' , 'VarDumper ' ,
30
- 'VarExporter ' , 'Webhook ' , 'WebLink ' , 'WebProfilerBundle ' , 'WebServerBundle ' , 'Workflow ' ,
31
- 'Yaml ' ,
32
- ];
33
- }
16
+ private const array LABELS = [
17
+ 'Asset ' , 'AssetMapper ' , 'BrowserKit ' , 'Cache ' , 'Config ' , 'Console ' ,
18
+ 'Contracts ' , 'CssSelector ' , 'Debug ' , 'DebugBundle ' , 'DependencyInjection ' ,
19
+ 'Doctrine ' , 'DoctrineBridge ' , 'DomCrawler ' , 'Dotenv ' , 'Emoji ' ,
20
+ 'Enhancement ' , 'ErrorHandler ' , 'EventDispatcher ' , 'ExpressionLanguage ' ,
21
+ 'Feature ' , 'Filesystem ' , 'Finder ' , 'Form ' , 'FrameworkBundle ' ,
22
+ 'HttpClient ' , 'HttpFoundation ' , 'HttpKernel ' , 'Inflector ' , 'Intl ' , 'JsonPath ' , 'JsonStreamer ' , 'Ldap ' ,
23
+ 'Locale ' , 'Lock ' , 'Mailer ' , 'Messenger ' , 'Mime ' , 'MonologBridge ' , 'Notifier ' , 'ObjectMapper ' ,
24
+ 'OptionsResolver ' , 'PasswordHasher ' , 'PhpUnitBridge ' , 'Process ' , 'PropertyAccess ' ,
25
+ 'PropertyInfo ' , 'ProxyManagerBridge ' , 'PsrHttpMessageBridge ' , 'RemoteEvent ' , 'Routing ' ,
26
+ 'Scheduler ' , 'Security ' , 'SecurityBundle ' , 'Serializer ' , 'Stopwatch ' , 'String ' ,
27
+ 'Templating ' , 'Translation ' , 'TwigBridge ' , 'TwigBundle ' , 'TypeInfo ' , 'Uid ' , 'Validator ' , 'VarDumper ' ,
28
+ 'VarExporter ' , 'Webhook ' , 'WebLink ' , 'WebProfilerBundle ' , 'WebServerBundle ' , 'Workflow ' ,
29
+ 'Yaml ' ,
30
+ ];
34
31
35
32
public function getAllLabelsForRepository (Repository $ repository ): array
36
33
{
37
- $ labels = $ this -> getComponentLabelsForRepository ( $ repository ) ;
34
+ $ labels = self :: LABELS ;
38
35
$ labels [] = 'BC Break ' ;
39
36
$ labels [] = 'Bug ' ;
40
37
$ labels [] = 'Critical ' ;
@@ -47,7 +44,7 @@ public function getAllLabelsForRepository(Repository $repository): array
47
44
return $ labels ;
48
45
}
49
46
50
- public function getIssueLabels ($ issueNumber , Repository $ repository ): array
47
+ public function getIssueLabels (int $ issueNumber , Repository $ repository ): array
51
48
{
52
49
return [];
53
50
}
0 commit comments