Skip to content

Commit 67273ef

Browse files
committed
Codestyle + better retrieval of PHPVersion (through constant instead of function call)
1 parent 40bac91 commit 67273ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ArangoDBClient/Autoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function load($className)
8787
*/
8888
private static function checkEnvironment()
8989
{
90-
list($major, $minor) = explode('.', phpversion());
90+
list($major, $minor) = explode('.', PHP_VERSION);
9191

9292
if ((int) $major < 5 || ((int) $major === 5 && (int) $minor < 6)) {
9393
throw new ClientException('Incompatible PHP environment. Expecting PHP 5.6 or higher');

lib/ArangoDBClient/HttpHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public static function transfer($socket, $request, $method)
257257
$contentLength = (int) substr($result, $pos + 16, 10); // 16 = strlen("content-length: ")
258258
$contentLengthPos = $pos + 17; // 17 = 16 + 1 one digit
259259

260-
if ($method === "HEAD") {
260+
if ($method === 'HEAD') {
261261
// for HTTP HEAD requests, the server will respond
262262
// with the proper Content-Length value, but will
263263
// NOT return the body.

0 commit comments

Comments
 (0)