Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit 1e1ba84

Browse files
author
Aron Janarv
committed
cleaning
1 parent 9b0fbf2 commit 1e1ba84

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Imgix/UrlHelper.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ public function __construct($domain, $path, $scheme = "http", $signKey = "", $pa
1818
$this->params = $params;
1919
}
2020

21-
public function formatPath($path, $rawUrlEncode )
22-
{
21+
public function formatPath($path, $rawUrlEncode ) {
2322
if (0 === strpos($path, "http"))
2423
$path = $rawUrlEncode ? rawurlencode($path) : urlencode($path);
2524

@@ -37,8 +36,8 @@ public function setParameter($key, $value) {
3736
}
3837
}
3938

40-
public function deleteParamter($key) {
41-
$this->deleteParamter($key, "");
39+
public function deleteParameter($key) {
40+
unset($this->params[$key]);
4241
}
4342

4443
public function getURL() {

0 commit comments

Comments
 (0)