src/Core/Router.php
protected function getResult($data)
    {
        if (is_array($data)) {
            header('content-type: application/json');
            return $this->cypher->encode(json_encode($data));
        }

        return $data;
    }
protected function getResult($data)
    {
        if (is_array($data)) {
            header('content-type: application/json');
            return $this->cypher->encode(json_encode($data));
        }

        return $data;
    }
protected function getResult ( $ data ) { if ( is_array ( $ data ) ) { header ( 'content-type: application/json' ) ; return $ this -> cypher -> encode ( json_encode ( $ data ) ) ; } return $ data ; }
Encoding and cypher result
@param array|string $data
@return string
Encoding and cypher result