*
* @param $url
*
- * @return the loaded data
+ * @return mixed the loaded data
+ * @throws \JsonLdException
*/
public static function documentLoader($url)
{
*
* @param array $json
*
- * @return normalized JSON string
+ * @return mixed|bool normalized JSON string
+ * @throws Exception
*/
public static function normalize($json)
{
*
* @param array $json
*
- * @return comacted JSON array
+ * @return array Compacted JSON array
+ * @throws Exception
*/
public static function compact($json)
{
* @param $element
* @param $key
*
- * @return fetched element array
+ * @return array fetched element
*/
public static function fetchElementArray($array, $element, $key = '@id')
{
* @param $type
* @param $type_value
*
- * @return fetched element
+ * @return string fetched element
*/
public static function fetchElement($array, $element, $key = '@id', $type = null, $type_value = null)
{