From 566991cb47492efa0f23f86e7c9e835becb4d8ef Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Mon, 30 Apr 2012 21:22:05 -0400 Subject: [PATCH] Remove unnecessary value assignment. --- jsonld.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jsonld.php b/jsonld.php index d3eb605..b23dd06 100644 --- a/jsonld.php +++ b/jsonld.php @@ -1388,9 +1388,11 @@ class JsonLdProcessor { * * @param array $statements the RDF statements. * @param assoc $options the RDF conversion options. + * + * @return array the JSON-LD output. */ protected function _fromRDF($statements, $options) { - // prepare graph map (maps graph name => subjects, lists, etc) + // prepare graph map (maps graph name => subjects, lists) $default_graph = (object)array( 'subjects' => new stdClass(), 'listMap' => new stdClass()); $graphs = new stdClass(); @@ -1452,11 +1454,10 @@ class JsonLdProcessor { if($name !== '') { // add graph subject to default graph as needed if(!property_exists($default_graph->subjects, $name)) { - $value = $default_graph->subjects->{$name} = (object)array( - '@id' => $name); + $default_graph->subjects->{$name} = (object)array('@id' => $name); } else { - $value = $default_graph->subjects->{$name}; + $default_graph->subjects->{$name}; } }