@@ -140,6 +140,8 @@ function getMimetypeFromFilename(string $filename):?string{
140140}
141141
142142/**
143+ * Recursive rawurlencode
144+ *
143145 * @param string|string[] $data
144146 *
145147 * @return string|string[]
@@ -159,9 +161,6 @@ function r_rawurlencode($data){
159161}
160162
161163/**
162- * @param \Psr\Http\Message\MessageInterface $message
163- * @param bool|null $assoc
164- *
165164 * @return \stdClass|array|bool
166165 */
167166function get_json (MessageInterface $ message , bool $ assoc = null ){
@@ -173,9 +172,6 @@ function get_json(MessageInterface $message, bool $assoc = null){
173172}
174173
175174/**
176- * @param \Psr\Http\Message\MessageInterface $message
177- * @param bool|null $assoc
178- *
179175 * @return \SimpleXMLElement|array|bool
180176 */
181177function get_xml (MessageInterface $ message , bool $ assoc = null ){
@@ -190,10 +186,6 @@ function get_xml(MessageInterface $message, bool $assoc = null){
190186
191187/**
192188 * Returns the string representation of an HTTP message. (from Guzzle)
193- *
194- * @param \Psr\Http\Message\MessageInterface $message Message to convert to a string.
195- *
196- * @return string
197189 */
198190function message_to_string (MessageInterface $ message ):string {
199191 $ msg = '' ;
@@ -223,9 +215,6 @@ function message_to_string(MessageInterface $message):string{
223215/**
224216 * Decompresses the message content according to the Content-Encoding header and returns the decompressed data
225217 *
226- * @param \Psr\Http\Message\MessageInterface $message
227- *
228- * @return string
229218 * @throws \RuntimeException
230219 */
231220function decompress_content (MessageInterface $ message ):string {
@@ -270,7 +259,7 @@ function decompress_content(MessageInterface $message):string{
270259];
271260
272261/**
273- * Checks whether the URI has a port set and if that port is one of the default ports for the given scheme
262+ * Checks whether the UriInterface has a port set and if that port is one of the default ports for the given scheme
274263 */
275264function uriIsDefaultPort (UriInterface $ uri ):bool {
276265 $ port = $ uri ->getPort ();
@@ -280,7 +269,7 @@ function uriIsDefaultPort(UriInterface $uri):bool{
280269}
281270
282271/**
283- * Whether the URI is absolute, i.e. it has a scheme.
272+ * Checks Whether the URI is absolute, i.e. it has a scheme.
284273 *
285274 * An instance of UriInterface can either be an absolute URI or a relative reference. This method returns true
286275 * if it is the former. An absolute URI has a scheme. A relative reference is used to express a URI relative
@@ -299,7 +288,7 @@ function uriIsAbsolute(UriInterface $uri):bool{
299288}
300289
301290/**
302- * Whether the URI is a network-path reference.
291+ * Checks Whether the URI is a network-path reference.
303292 *
304293 * A relative reference that begins with two slash characters is termed an network-path reference.
305294 *
@@ -310,7 +299,7 @@ function uriIsNetworkPathReference(UriInterface $uri):bool{
310299}
311300
312301/**
313- * Whether the URI is a absolute-path reference.
302+ * Checks Whether the URI is a absolute-path reference.
314303 *
315304 * A relative reference that begins with a single slash character is termed an absolute-path reference.
316305 *
@@ -321,7 +310,7 @@ function uriIsAbsolutePathReference(UriInterface $uri):bool{
321310}
322311
323312/**
324- * Whether the URI is a relative-path reference.
313+ * Checks Whether the URI is a relative-path reference.
325314 *
326315 * A relative reference that does not begin with a slash character is termed a relative-path reference.
327316 *
@@ -332,12 +321,9 @@ function uriIsRelativePathReference(UriInterface $uri):bool{
332321}
333322
334323/**
335- * removes a specific query string value.
324+ * Removes a specific query string value.
336325 *
337- * Any existing query string values that exactly match the provided key are
338- * removed.
339- *
340- * @param string $key Query string key to remove.
326+ * Any existing query string values that exactly match the provided $key are removed.
341327 */
342328function uriWithoutQueryValue (UriInterface $ uri , string $ key ):UriInterface {
343329 $ current = $ uri ->getQuery ();
@@ -356,16 +342,12 @@ function uriWithoutQueryValue(UriInterface $uri, string $key):UriInterface{
356342}
357343
358344/**
359- * adds a specific query string value.
360- *
361- * Any existing query string values that exactly match the provided key are
362- * removed and replaced with the given key value pair.
345+ * Adds a specific query string value.
363346 *
364- * A value of null will set the query string key without a value, e.g. " key"
365- * instead of " key= value" .
347+ * Any existing query string values that exactly match the provided $ key are
348+ * removed and replaced with the given $ key $ value pair .
366349 *
367- * @param string $key Key to set.
368- * @param string|null $value Value to set
350+ * A value of null will set the query string key without a value, e.g. "key" instead of "key=value".
369351 */
370352function uriWithQueryValue (UriInterface $ uri , string $ key , string $ value = null ):UriInterface {
371353 $ current = $ uri ->getQuery ();
0 commit comments