private static function detectFilePath($params)
    {
        if (isset($params->path) && !empty($params->path)) {
            return $params->path;
        }
        if (isset($params->file) && !empty($params->file)) {
            return $params->path;
        }

        return false;
    }
private static function detectFilePath($params)
    {
        if (isset($params->path) && !empty($params->path)) {
            return $params->path;
        }
        if (isset($params->file) && !empty($params->file)) {
            return $params->path;
        }

        return false;
    }
private static function detectFilePath ( $ params ) { if ( isset ( $ params -> path ) && ! empty ( $ params -> path ) ) { return $ params -> path ; } if ( isset ( $ params -> file ) && ! empty ( $ params -> file ) ) { return $ params -> path ; } return false ; }
Detect File Path from Parameters.

@param ArrayObject $params

@return false|string
Detect File Path from Parameters .