1313 */
1414class StaticLabelApi extends NullLabelApi
1515{
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+ ];
3431
3532 public function getAllLabelsForRepository (Repository $ repository ): array
3633 {
37- $ labels = $ this -> getComponentLabelsForRepository ( $ repository ) ;
34+ $ labels = self :: LABELS ;
3835 $ labels [] = 'BC Break ' ;
3936 $ labels [] = 'Bug ' ;
4037 $ labels [] = 'Critical ' ;
@@ -47,7 +44,7 @@ public function getAllLabelsForRepository(Repository $repository): array
4744 return $ labels ;
4845 }
4946
50- public function getIssueLabels ($ issueNumber , Repository $ repository ): array
47+ public function getIssueLabels (int $ issueNumber , Repository $ repository ): array
5148 {
5249 return [];
5350 }
0 commit comments