Skip to content

Commit 8bd8813

Browse files
author
Martin Brecht-Precht
committed
Fixed different minor issues.
1 parent 4473dee commit 8bd8813

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

.codeclimate.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ ratings:
2525
- "**.rb"
2626
exclude_paths:
2727
- test/
28-
- vendor/
28+
- vendor/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,4 @@ Contributing to our projects is always very appreciated.
377377

378378
## License
379379

380-
PHP JSON HTTP Client is under the MIT license.
380+
PHP JSON HTTP Client is under the MIT license.

detaild.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@
5252
->setMessage($message)
5353
->perform();
5454

55-
print_r($request->getEffectiveRawHeader());
55+
//print_r($request->getEffectiveRawHeader());

phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
</exclude>
1515
</whitelist>
1616
</filter>
17-
</phpunit>
17+
</phpunit>

src/Request/Message/Body/JsonBody.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(array $bodyData)
3535
*/
3636
public function configureCurl($curl)
3737
{
38-
$jsonBody = @json_encode($this->bodyData);
38+
$jsonBody = json_encode($this->bodyData);
3939
if ($jsonBody === false) {
4040
throw new HttpRequestMessageException('JSON body data not serializable.');
4141
}

src/Response/JsonResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function setBody($body)
2424
parent::setBody(null);
2525
return $this;
2626
}
27-
$body = @json_decode($body, true);
27+
$body = json_decode($body, true);
2828
if (is_null($body)) {
2929
throw new HttpResponseException('Response data is no valid JSON string.');
3030
}

test.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Markenwerk\JsonHttpClient;
88
use Markenwerk\BasicHttpClient\Request\Authentication;
9-
use Markenwerk\BasicHttpClient\Request\Message;
109

1110
// Instantiating a basic HTTP client with the endpoints URL
1211
// If the endpoint uses the `HTTPS` schema a `HttpsTransport` instance will be used automatically.
@@ -31,4 +30,4 @@
3130
)
3231
));
3332

34-
print_r($client->getRequest()->getEffectiveRawHeader());
33+
//print_r($client->getRequest()->getEffectiveRawHeader());

0 commit comments

Comments
 (0)