forked from friendica/php-json-ld
Fix typos.
This commit is contained in:
parent
0cf39870f5
commit
7142d8a3e1
|
@ -855,7 +855,7 @@ class JsonLdProcessor {
|
||||||
'jsonld.NullRemoteDocument');
|
'jsonld.NullRemoteDocument');
|
||||||
}
|
}
|
||||||
if(is_string($remote_doc->document)) {
|
if(is_string($remote_doc->document)) {
|
||||||
$remote_doc->document = _parse_json($remote_doc->document);
|
$remote_doc->document = self::_parse_json($remote_doc->document);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(Exception $e) {
|
catch(Exception $e) {
|
||||||
|
@ -1017,7 +1017,7 @@ class JsonLdProcessor {
|
||||||
'jsonld.NullRemoteDocument');
|
'jsonld.NullRemoteDocument');
|
||||||
}
|
}
|
||||||
if(is_string($remote_frame->document)) {
|
if(is_string($remote_frame->document)) {
|
||||||
$remote_frame->document = _parse_json($remote_frame->document);
|
$remote_frame->document = self::_parse_json($remote_frame->document);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(Exception $e) {
|
catch(Exception $e) {
|
||||||
|
@ -5100,7 +5100,7 @@ class JsonLdProcessor {
|
||||||
// parse string context as JSON
|
// parse string context as JSON
|
||||||
if(is_string($ctx)) {
|
if(is_string($ctx)) {
|
||||||
try {
|
try {
|
||||||
$ctx = _parse_json($ctx);
|
$ctx = self::_parse_json($ctx);
|
||||||
}
|
}
|
||||||
catch(Exception $e) {
|
catch(Exception $e) {
|
||||||
throw new JsonLdException(
|
throw new JsonLdException(
|
||||||
|
|
3
test.php
3
test.php
|
@ -132,14 +132,13 @@ class JsonLdTestCase extends PHPUnit_Framework_TestCase {
|
||||||
* @param JsonLdTest $test the test to run.
|
* @param JsonLdTest $test the test to run.
|
||||||
*
|
*
|
||||||
* @group normalize
|
* @group normalize
|
||||||
* @depends toRdf
|
|
||||||
* @dataProvider normalizeProvider
|
* @dataProvider normalizeProvider
|
||||||
*/
|
*/
|
||||||
public function testNormalize($test) {
|
public function testNormalize($test) {
|
||||||
$this->test = $test;
|
$this->test = $test;
|
||||||
$input = $test->readUrl('input');
|
$input = $test->readUrl('input');
|
||||||
$options = $test->createOptions(array('format' => 'application/nquads'));
|
$options = $test->createOptions(array('format' => 'application/nquads'));
|
||||||
$test->run('jsonld_compact', array($input, $options));
|
$test->run('jsonld_normalize', array($input, $options));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function expandProvider() {
|
public function expandProvider() {
|
||||||
|
|
Loading…
Reference in a new issue