Too many spaces :) I would do this as

````
public function ..
{
    NodeHelper ...

   $root = $this->session->
   ....
}
````