Skip to content

Commit 33fd477

Browse files
committed
Remove support for text-transform, base64-encode-decode, url-encode-decode and json-encode-decode.
1 parent b9b90c9 commit 33fd477

1 file changed

Lines changed: 0 additions & 109 deletions

File tree

src/Client.php

Lines changed: 0 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -165,50 +165,6 @@ private function checkTargetFilename(string $targetFilename): void
165165
}
166166
}
167167

168-
/**
169-
*
170-
* @param string $text
171-
* @param string $transform Available values: uppercase and lowercase.
172-
* @return string
173-
*/
174-
public function transformText(string $text, string $transform): string
175-
{
176-
$response = $this->sendRequest('/v0/text-transform', ['text' => $text, 'transform' => $transform]);
177-
return $response['result']['text'];
178-
}
179-
180-
/**
181-
*
182-
* @param string $text
183-
* @param string $transform
184-
* @return string
185-
*/
186-
private function base64EncodeDecode(string $text, string $transform): string
187-
{
188-
$response = $this->sendRequest('/v0/base64-encode-decode', ['text' => $text, 'transform' => $transform]);
189-
return $response['result']['text'];
190-
}
191-
192-
/**
193-
*
194-
* @param string $text
195-
* @return string
196-
*/
197-
public function base64Encode(string $text): string
198-
{
199-
return $this->base64EncodeDecode($text, 'encode');
200-
}
201-
202-
/**
203-
*
204-
* @param string $text
205-
* @return string
206-
*/
207-
public function base64Decode(string $text): string
208-
{
209-
return $this->base64EncodeDecode($text, 'decode');
210-
}
211-
212168
/**
213169
*
214170
* @param string $text
@@ -221,38 +177,6 @@ public function hashText(string $text, string $algorithm): string
221177
return $response['result']['text'];
222178
}
223179

224-
/**
225-
*
226-
* @param string $url
227-
* @param string $transform
228-
* @return string
229-
*/
230-
private function encodeDecodeURL(string $url, string $transform): string
231-
{
232-
$response = $this->sendRequest('/v0/url-encode-decode', ['text' => $url, 'transform' => $transform]);
233-
return $response['result']['text'];
234-
}
235-
236-
/**
237-
*
238-
* @param string $url
239-
* @return string
240-
*/
241-
public function encodeURL(string $url): string
242-
{
243-
return $this->encodeDecodeURL($url, 'encode');
244-
}
245-
246-
/**
247-
*
248-
* @param string $url
249-
* @return string
250-
*/
251-
public function decodeURL(string $url): string
252-
{
253-
return $this->encodeDecodeURL($url, 'decode');
254-
}
255-
256180
/**
257181
*
258182
* @param string $domain
@@ -394,39 +318,6 @@ public function minifyCSSFile(string $sourceFilename, string $targetFilename): v
394318
$this->downloadFile($response['result']['file'], $targetFilename);
395319
}
396320

397-
398-
/**
399-
*
400-
* @param string $text
401-
* @param string $transform
402-
* @return string
403-
*/
404-
private function encodeDecodeJSON(string $text, string $transform): string
405-
{
406-
$response = $this->sendRequest('/v0/json-encode-decode', ['text' => $text, 'transform' => $transform]);
407-
return $response['result']['text'];
408-
}
409-
410-
/**
411-
*
412-
* @param string $text
413-
* @return string
414-
*/
415-
public function encodeJSON(string $text): string
416-
{
417-
return $this->encodeDecodeJSON($text, 'encode');
418-
}
419-
420-
/**
421-
*
422-
* @param string $text
423-
* @return string
424-
*/
425-
public function decodeJSON(string $text): string
426-
{
427-
return $this->encodeDecodeJSON($text, 'decode');
428-
}
429-
430321
/**
431322
*
432323
* @param int $length

0 commit comments

Comments
 (0)