src/Parser.php
protected function parseParameters($parsed)
  {
      $command = strtoupper($parsed['command']);

      if (!array_key_exists($command, $this->paramsRegex)) {
          return $parsed;
      }

      if (!preg_match($this->paramsRegex[$command], $parsed['params'], $params)) {
          return $parsed;
      }

      $parsed = array_merge($parsed, $params);

      if ($command == 353 && array_key_exists('users', $parsed)) {
          $parsed['users'] = explode(' ', $parsed['users']);
      }

      return $this->removeIntegerKeys($parsed);
  }
protected function parseParameters($parsed)
  {
      $command = strtoupper($parsed['command']);

      if (!array_key_exists($command, $this->paramsRegex)) {
          return $parsed;
      }

      if (!preg_match($this->paramsRegex[$command], $parsed['params'], $params)) {
          return $parsed;
      }

      $parsed = array_merge($parsed, $params);

      if ($command == 353 && array_key_exists('users', $parsed)) {
          $parsed['users'] = explode(' ', $parsed['users']);
      }

      return $this->removeIntegerKeys($parsed);
  }
protected function parseParameters ( $ parsed ) { $ command = strtoupper ( $ parsed [ 'command' ] ) ; if ( ! array_key_exists ( $ command , $ this -> paramsRegex ) ) { return $ parsed ; } if ( ! preg_match ( $ this -> paramsRegex [ $ command ] , $ parsed [ 'params' ] , $ params ) ) { return $ parsed ; } $ parsed = array_merge ( $ parsed , $ params ) ; if ( $ command == 353 && array_key_exists ( 'users' , $ parsed ) ) { $ parsed [ 'users' ] = explode ( ' ' , $ parsed [ 'users' ] ) ; } return $ this -> removeIntegerKeys ( $ parsed ) ; }
Checks each message and runs the parameters through regex.

@param  array $parsed

@return array
Checks each message and runs the parameters through regex .