src/Parser.php
public function parse($message)
  {
    //Checking if the message is a full line
    if (strpos($message, "\r\n") === false) {
        return;
    }

    //Parsing the message
    if (!preg_match($this->messageRegex, $message, $parsed)) {
        $parsed = ['invalid' => $message];

        return $parsed;
    }

    /*
    * Raw message
    */
    $parsed['raw'] = $parsed[0];

    $parsed = $this->parseParameters($parsed);

    return $this->removeIntegerKeys($parsed);
  }
public function parse($message)
  {
    //Checking if the message is a full line
    if (strpos($message, "\r\n") === false) {
        return;
    }

    //Parsing the message
    if (!preg_match($this->messageRegex, $message, $parsed)) {
        $parsed = ['invalid' => $message];

        return $parsed;
    }

    /*
    * Raw message
    */
    $parsed['raw'] = $parsed[0];

    $parsed = $this->parseParameters($parsed);

    return $this->removeIntegerKeys($parsed);
  }
public function parse ( $ message ) { //Checking if the message is a full line if ( strpos ( $ message , "\r\n" ) === false ) { return ; } //Parsing the message if ( ! preg_match ( $ this -> messageRegex , $ message , $ parsed ) ) { $ parsed = [ 'invalid' => $ message ] ; return $ parsed ; } /*
    * Raw message
    */ $ parsed [ 'raw' ] = $ parsed [ 0 ] ; $ parsed = $ this -> parseParameters ( $ parsed ) ; return $ this -> removeIntegerKeys ( $ parsed ) ; }
Main parsing function.

@param  string $message Received irc message

@return array           Parsed
Main parsing function .