@@ -105,20 +105,21 @@ public function __construct(
105105 * Lower priority means called earlier.
106106 * If no priority provided, defaults to 0.
107107 *
108- * @param string $priorityAttribute
108+ * @param string $priorityAttribute Priority attribute.
109109 *
110110 * @return $this
111111 */
112112 public function enablePriority (string $ priorityAttribute = 'priority ' ): self
113113 {
114114 $ this ->priorityAttribute = $ priorityAttribute ;
115+
115116 return $ this ;
116117 }
117118
118119 /**
119120 * Sets call mode to one of CALL_MODE_* constants
120121 *
121- * @param string $callMode
122+ * @param string $callMode Call mode.
122123 *
123124 * @return $this
124125 */
@@ -132,6 +133,7 @@ public function setCallMode(string $callMode): self
132133 * @param ContainerBuilder $container
133134 *
134135 * @return void
136+ * @throws InvalidConfigurationException When no such service.
135137 */
136138 public function process (ContainerBuilder $ container ): void
137139 {
@@ -181,7 +183,8 @@ private function prioritizeTags(array $tags) : array
181183 return $ tags ;
182184 }
183185
184- usort ($ tags ,
186+ usort (
187+ $ tags ,
185188 /**
186189 * @param array $tag1
187190 * @param array $tag2
@@ -193,16 +196,17 @@ function (array $tag1, array $tag2) {
193196 $ tag2Priority = $ tag2 ['attributes ' ][$ this ->priorityAttribute ] ?? 0 ;
194197
195198 return $ tag1Priority - $ tag2Priority ;
196- });
199+ }
200+ );
197201
198202 return $ tags ;
199203 }
200204
201205 /**
202206 * Can be overwritten in extended classes
203207 *
204- * @param ContainerBuilder $container
205- * @param string $id
208+ * @param ContainerBuilder $container Container.
209+ * @param string $id Service Id.
206210 *
207211 * @return mixed returns argument to pass to the collector service
208212 */
0 commit comments