File tree Expand file tree Collapse file tree 5 files changed +25
-62
lines changed
src/lib/Repository/Values Expand file tree Collapse file tree 5 files changed +25
-62
lines changed Original file line number Diff line number Diff line change @@ -175,13 +175,12 @@ public function getDefaultLanguageCode(): string
175175 return $ this ->prioritizedFieldLanguageCode ?? $ this ->versionInfo ->contentInfo ->mainLanguageCode ;
176176 }
177177
178- /**
179- * {@inheritdoc}
180- */
181178 protected function getProperties (
182- $ dynamicProperties = ['id ' ,
183- 'contentInfo ' ]
184- ) {
179+ $ dynamicProperties = [
180+ 'id ' ,
181+ 'contentInfo ' ,
182+ ]
183+ ): array {
185184 return parent ::getProperties ($ dynamicProperties );
186185 }
187186
Original file line number Diff line number Diff line change @@ -56,21 +56,12 @@ public function getRemovedLocationContentIdMap(): array
5656 return $ this ->removedLocationContentIdMap ;
5757 }
5858
59- /**
60- * Function where list of properties are returned.
61- *
62- * Override to add dynamic properties
63- *
64- * @uses \parent::getProperties()
65- *
66- * @param array $dynamicProperties
67- *
68- * @return array
69- */
7059 protected function getProperties (
71- $ dynamicProperties = ['contentId ' ,
72- 'path ' ]
73- ) {
60+ $ dynamicProperties = [
61+ 'contentId ' ,
62+ 'path ' ,
63+ ]
64+ ): array {
7465 return parent ::getProperties ($ dynamicProperties );
7566 }
7667
Original file line number Diff line number Diff line change @@ -23,21 +23,12 @@ class ContentTypeDraft extends APIContentTypeDraft
2323{
2424 use MultiLanguageTrait;
2525
26- /**
27- * Function where list of properties are returned.
28- *
29- * Override to add dynamic properties
30- *
31- * @uses \parent::getProperties()
32- *
33- * @param array $dynamicProperties
34- *
35- * @return array
36- */
3726 protected function getProperties (
38- $ dynamicProperties = ['contentTypeGroups ' ,
39- 'fieldDefinitions ' ]
40- ) {
27+ $ dynamicProperties = [
28+ 'contentTypeGroups ' ,
29+ 'fieldDefinitions ' ,
30+ ]
31+ ): array {
4132 return parent ::getProperties ($ dynamicProperties );
4233 }
4334
Original file line number Diff line number Diff line change @@ -106,23 +106,14 @@ public function getField(
106106 return $ this ->content ->getField ($ fieldDefIdentifier , $ languageCode );
107107 }
108108
109- /**
110- * Function where list of properties are returned.
111- *
112- * Override to add dynamic properties
113- *
114- * @uses \parent::getProperties()
115- *
116- * @param array $dynamicProperties
117- *
118- * @return array
119- */
120109 protected function getProperties (
121- $ dynamicProperties = ['id ' ,
110+ $ dynamicProperties = [
111+ 'id ' ,
122112 'contentInfo ' ,
123113 'versionInfo ' ,
124- 'fields ' ]
125- ) {
114+ 'fields ' ,
115+ ]
116+ ): array {
126117 return parent ::getProperties ($ dynamicProperties );
127118 }
128119
Original file line number Diff line number Diff line change @@ -105,23 +105,14 @@ public function getField(
105105 return $ this ->content ->getField ($ fieldDefIdentifier , $ languageCode );
106106 }
107107
108- /**
109- * Function where list of properties are returned.
110- *
111- * Override to add dynamic properties
112- *
113- * @uses \parent::getProperties()
114- *
115- * @param array $dynamicProperties
116- *
117- * @return array
118- */
119108 protected function getProperties (
120- $ dynamicProperties = ['id ' ,
109+ $ dynamicProperties = [
110+ 'id ' ,
121111 'contentInfo ' ,
122112 'versionInfo ' ,
123- 'fields ' ]
124- ) {
113+ 'fields ' ,
114+ ]
115+ ): array {
125116 return parent ::getProperties ($ dynamicProperties );
126117 }
127118
You can’t perform that action at this time.
0 commit comments