original_string: private function handleReceive($data)
      {
          if (!$this->isConnected && !$this->isConnecting) {
              return;
          }
  
          $flowCount = count($this->receivingFlows);
  
          $packets = $this->parser->push($data);
          foreach ($packets as $packet) {
              $this->handlePacket($packet);
          }
  
          if ($flowCount > count($this->receivingFlows)) {
              $this->receivingFlows = array_values($this->receivingFlows);
          }
  
          $this->handleSend();
      }
code: private function handleReceive($data)
      {
          if (!$this->isConnected && !$this->isConnecting) {
              return;
          }
  
          $flowCount = count($this->receivingFlows);
  
          $packets = $this->parser->push($data);
          foreach ($packets as $packet) {
              $this->handlePacket($packet);
          }
  
          if ($flowCount > count($this->receivingFlows)) {
              $this->receivingFlows = array_values($this->receivingFlows);
          }
  
          $this->handleSend();
      }
code_tokens: private function handleReceive ( $ data ) { if ( ! $ this -> isConnected && ! $ this -> isConnecting ) { return ; } $ flowCount = count ( $ this -> receivingFlows ) ; $ packets = $ this -> parser -> push ( $ data ) ; foreach ( $ packets as $ packet ) { $ this -> handlePacket ( $ packet ) ; } if ( $ flowCount > count ( $ this -> receivingFlows ) ) { $ this -> receivingFlows = array_values ( $ this -> receivingFlows ) ; } $ this -> handleSend ( ) ; }
docstring: Handles incoming data.
  
  @param string $data
docstring_tokens: Handles incoming data .