Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

Commit 7166cfa

Browse files
committed
Update changelog and fix cs
1 parent e2836d0 commit 7166cfa

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ChangeLog
22

3+
## 0.1.4
4+
5+
- Fix fwrite reliability
6+
37
## 0.1.3
48

59
- Add target in every log sent, even if redirection does not come from a rule

src/Client.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use RedirectionIO\Client\Sdk\Exception\AgentNotFoundException;
88
use RedirectionIO\Client\Sdk\Exception\BadConfigurationException;
99
use RedirectionIO\Client\Sdk\Exception\ExceptionInterface;
10-
use RedirectionIO\Client\Sdk\HttpMessage\RedirectResponse;
1110
use RedirectionIO\Client\Sdk\HttpMessage\Request;
1211
use RedirectionIO\Client\Sdk\HttpMessage\Response;
1312

@@ -63,7 +62,7 @@ public function findRedirect(Request $request)
6362
return null;
6463
}
6564

66-
if (0 === strlen($agentResponse)) {
65+
if (0 === \strlen($agentResponse)) {
6766
return null;
6867
}
6968

@@ -233,7 +232,7 @@ private function box($method, $defaultReturnValue = null, array $args = [])
233232
set_error_handler(__CLASS__.'::handleInternalError');
234233

235234
try {
236-
$returnValue = call_user_func_array([$this, $method], $args);
235+
$returnValue = \call_user_func_array([$this, $method], $args);
237236
} catch (\ErrorException $exception) {
238237
$returnValue = $defaultReturnValue;
239238

@@ -267,7 +266,7 @@ private static function handleInternalError($type, $message, $file, $line)
267266
*/
268267
private function fwrite($stream, $bytes)
269268
{
270-
if (!strlen($bytes)) {
269+
if (!\strlen($bytes)) {
271270
return 0;
272271
}
273272
$result = @fwrite($stream, $bytes);

0 commit comments

Comments
 (0)