Skip to content

Commit

Permalink
PISHPS-303: removed redundant comments
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muxfeld-diw committed Jul 9, 2024
1 parent ebf9a39 commit d16c21d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Service/MollieApi/LineItemDataExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,21 +111,16 @@ private function sanitizeQuery(array $query): array
*/
private function sanitizeQueryPart(string $queryPart): string
{
// If the query part does not contain an '=', return it as is
if (strpos($queryPart, '=') === false) {
return$queryPart;
}

// Split the query part into key and value based on the '=' delimiter
[$key, $value] = explode('=', $queryPart);

// URL encode the key (first element of the split array)
$key = rawurlencode($key);

// URL encode the value (second element of the split array)
$value = rawurlencode($value);

// Join the key and value back into a single string with '=' and return it
return sprintf('%s=%s', $key, $value);
}
}

0 comments on commit d16c21d

Please sign in to comment.