@@ -32,7 +32,7 @@ class EventsSearchProvider extends ACalendarSearchProvider implements IFiltering
3232 /**
3333 * @var string[]
3434 */
35- private static $ searchProperties = [
35+ private const SEARCH_PROPERTIES = [
3636 'SUMMARY ' ,
3737 'LOCATION ' ,
3838 'DESCRIPTION ' ,
@@ -42,17 +42,17 @@ class EventsSearchProvider extends ACalendarSearchProvider implements IFiltering
4242 ];
4343
4444 /**
45- * @var string[]
45+ * @var array< string, string[]>
4646 */
47- private static $ searchParameters = [
47+ private const SEARCH_PARAMETERS = [
4848 'ATTENDEE ' => ['CN ' ],
4949 'ORGANIZER ' => ['CN ' ],
5050 ];
5151
5252 /**
5353 * @var string
5454 */
55- private static $ componentType = 'VEVENT ' ;
55+ private const COMPONENT_TYPE = 'VEVENT ' ;
5656
5757 /**
5858 * @inheritDoc
@@ -102,9 +102,9 @@ public function search(
102102 $ searchResults = $ this ->backend ->searchPrincipalUri (
103103 $ principalUri ,
104104 $ term ,
105- [self ::$ componentType ],
106- self ::$ searchProperties ,
107- self ::$ searchParameters ,
105+ [self ::COMPONENT_TYPE ],
106+ self ::SEARCH_PROPERTIES ,
107+ self ::SEARCH_PARAMETERS ,
108108 [
109109 'limit ' => $ query ->getLimit (),
110110 'offset ' => $ query ->getCursor (),
@@ -122,9 +122,9 @@ public function search(
122122 $ attendeeSearchResults = $ this ->backend ->searchPrincipalUri (
123123 $ principalUri ,
124124 $ personDisplayName ,
125- [self ::$ componentType ],
125+ [self ::COMPONENT_TYPE ],
126126 ['ATTENDEE ' ],
127- self ::$ searchParameters ,
127+ self ::SEARCH_PARAMETERS ,
128128 [
129129 'limit ' => $ query ->getLimit (),
130130 'offset ' => $ query ->getCursor (),
@@ -148,7 +148,7 @@ public function search(
148148 }
149149 }
150150 $ formattedResults = \array_map (function (array $ eventRow ) use ($ calendarsById , $ subscriptionsById ): SearchResultEntry {
151- $ component = $ this ->getPrimaryComponent ($ eventRow ['calendardata ' ], self ::$ componentType );
151+ $ component = $ this ->getPrimaryComponent ($ eventRow ['calendardata ' ], self ::COMPONENT_TYPE );
152152 $ title = (string )($ component ->SUMMARY ?? $ this ->l10n ->t ('Untitled event ' ));
153153
154154 if ($ eventRow ['calendartype ' ] === CalDavBackend::CALENDAR_TYPE_CALENDAR ) {
0 commit comments