original_string: public function getLocalPort()
      {
          $address = $this->getLocalAddress();
          $pos = strrpos($address, ':');
          if (!$pos) {
              return 0;
          }
          return (int)substr(strrchr($address, ':'), 1);
      }
code: public function getLocalPort()
      {
          $address = $this->getLocalAddress();
          $pos = strrpos($address, ':');
          if (!$pos) {
              return 0;
          }
          return (int)substr(strrchr($address, ':'), 1);
      }
code_tokens: public function getLocalPort ( ) { $ address = $ this -> getLocalAddress ( ) ; $ pos = strrpos ( $ address , ':' ) ; if ( ! $ pos ) { return 0 ; } return ( int ) substr ( strrchr ( $ address , ':' ) , 1 ) ; }
docstring: Get local port.
  
  @return int
docstring_tokens: Get local port .