protected function formatCache($cached)
    {
        $themes = is_array($cached) ? $cached : json_decode($cached, true);

        $results = [];

        foreach ($themes as $theme) {
            $results[] = new Theme($theme);
        }

        return $results;
    }
protected function formatCache($cached)
    {
        $themes = is_array($cached) ? $cached : json_decode($cached, true);

        $results = [];

        foreach ($themes as $theme) {
            $results[] = new Theme($theme);
        }

        return $results;
    }
protected function formatCache ( $ cached ) { $ themes = is_array ( $ cached ) ? $ cached : json_decode ( $ cached , true ) ; $ results = [ ] ; foreach ( $ themes as $ theme ) { $ results [ ] = new Theme ( $ theme ) ; } return $ results ; }
Format for each cached theme to a Theme instance.

@param array|string $cached

@return array
Format for each cached theme to a Theme instance .