public static function setDebugData($data)
    {
        $matches = null;

        preg_match_all("/<p class=\"message warning\">\n(.*?)<\/p>/s", $data, $matches);

        if (!empty($matches[1])) {
            self::$debug = $matches[1];
        }
    }
public static function setDebugData($data)
    {
        $matches = null;

        preg_match_all("/<p class=\"message warning\">\n(.*?)<\/p>/s", $data, $matches);

        if (!empty($matches[1])) {
            self::$debug = $matches[1];
        }
    }
public static function setDebugData ( $ data ) { $ matches = null ; preg_match_all ( "/<p class=\"message warning\">\n(.*?)<\/p>/s" , $ data , $ matches ) ; if ( ! empty ( $ matches [ 1 ] ) ) { self :: $ debug = $ matches [ 1 ] ; } }
This method will try to matches all messages into a proper array

@param string $data
This method will try to matches all messages into a proper array