Skip to content
2 changes: 2 additions & 0 deletions src/Agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ public function getMbox_sha1sum() {
if (isset($this->mbox)) {
return sha1($this->mbox);
}

return null;
}
public function setOpenid($value) { $this->openid = $value; return $this; }
public function getOpenid() { return $this->openid; }
Expand Down
4 changes: 1 addition & 3 deletions src/Map.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ public function __construct() {
}

public function asVersion($version = null) {
if (! $this->isEmpty()) {
return $this->_map;
}
return $this->isEmpty() ? null : $this->_map;
}

public function set($code, $value) {
Expand Down
2 changes: 1 addition & 1 deletion src/RemoteLRS.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function ($errno, $errstr, $errfile, $errline, array $errcontext) {
$metadata = stream_get_meta_data($fp);
$content = stream_get_contents($fp);

$response = $this->_parseMetadata($metadata, $options);
$response = $this->_parseMetadata($metadata);

//
// keep a copy of the raw content, the methods expecting
Expand Down
2 changes: 1 addition & 1 deletion src/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public function sign($privateKeyFile, $privateKeyPass, $options = array()) {
}
$jws = new JWS($jwsHeader);

$jws->setPayload($serialization, false);
$jws->setPayload($serialization);
$jws->sign($privateKey);

$attachment = array(
Expand Down
8 changes: 4 additions & 4 deletions tests/StatementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ public function testVerifyInvalidX5cErrorToException() {
'x5c' => ['notAValidCertificate']
]
);
$content->setPayload(['prop' => 'val'], false);
$content->setPayload(['prop' => 'val']);
$content->sign(openssl_pkey_get_private('file://' . $GLOBALS['KEYs']['private'], $GLOBALS['KEYs']['password']));

$obj = new Statement(
Expand Down Expand Up @@ -833,7 +833,7 @@ public function testVerifyInvalidX5cNoError() {
'x5c' => ['notAValidCertificate']
]
);
$content->setPayload(['prop' => 'val'], false);
$content->setPayload(['prop' => 'val']);
$content->sign(openssl_pkey_get_private('file://' . $GLOBALS['KEYs']['private'], $GLOBALS['KEYs']['password']));

$obj = new Statement(
Expand Down Expand Up @@ -865,7 +865,7 @@ public function testVerifyNoPubKey() {
'alg' => 'RS256'
]
);
$content->setPayload(['prop' => 'val'], false);
$content->setPayload(['prop' => 'val']);
$content->sign(openssl_pkey_get_private('file://' . $GLOBALS['KEYs']['private'], $GLOBALS['KEYs']['password']));

$obj = new Statement(
Expand Down Expand Up @@ -897,7 +897,7 @@ public function testVerifyIncorrectPubKey() {
'alg' => 'RS256'
]
);
$content->setPayload(['prop' => 'val'], false);
$content->setPayload(['prop' => 'val']);
$content->sign(openssl_pkey_get_private('file://' . $GLOBALS['KEYs']['private'], $GLOBALS['KEYs']['password']));

$obj = new Statement(
Expand Down