Skip to content
Snippets Groups Projects
Commit fba15734 authored by Demian Katz's avatar Demian Katz
Browse files

Style fixes.

parent 858451d1
No related merge requests found
...@@ -233,7 +233,7 @@ class Solr extends AbstractBase ...@@ -233,7 +233,7 @@ class Solr extends AbstractBase
'title' => $top->getTitle() 'title' => $top->getTitle()
); );
$children = $this->getChildrenJson($id, $count); $children = $this->getChildrenJson($id, $count);
if(!empty($children)) { if (!empty($children)) {
$json['children'] = $children; $json['children'] = $children;
} }
if ($cacheFile) { if ($cacheFile) {
...@@ -297,7 +297,7 @@ class Solr extends AbstractBase ...@@ -297,7 +297,7 @@ class Solr extends AbstractBase
$current->getUniqueID(), $current->getUniqueID(),
$count $count
); );
if(!empty($children)) { if (!empty($children)) {
$childNode['children'] = $children; $childNode['children'] = $children;
} }
} }
......
...@@ -167,7 +167,8 @@ class JSTree extends AbstractBase ...@@ -167,7 +167,8 @@ class JSTree extends AbstractBase
/** /**
* Convert JSTree JSON structure to HTML * Convert JSTree JSON structure to HTML
* *
* @param JSON $node JSON object of a the JSTree * @param object $node JSON object of a the JSTree
* @param string $recordID The currently active record
* *
* @return string * @return string
*/ */
...@@ -215,7 +216,9 @@ class JSTree extends AbstractBase ...@@ -215,7 +216,9 @@ class JSTree extends AbstractBase
if ($json == null) { if ($json == null) {
return false; return false;
} }
return json_encode($this->formatJSON(json_decode($json), $context, $hierarchyID)); return json_encode(
$this->formatJSON(json_decode($json), $context, $hierarchyID)
);
} }
/** /**
...@@ -244,7 +247,8 @@ class JSTree extends AbstractBase ...@@ -244,7 +247,8 @@ class JSTree extends AbstractBase
if (isset($node->children)) { if (isset($node->children)) {
$ret['children'] = array(); $ret['children'] = array();
for ($i=0;$i<count($node->children);$i++) { for ($i=0;$i<count($node->children);$i++) {
$ret['children'][$i] = $this->formatJSON($node->children[$i], $context, $hierarchyID); $ret['children'][$i] = $this
->formatJSON($node->children[$i], $context, $hierarchyID);
} }
} }
return $ret; return $ret;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment