original_string: public function resizePercent($percent = 50)
      {
          if ( $percent < 1)
          {
              throw new \InvalidArgumentException('percent must be >= 1');
          }
  
          $this->resize($this->source['width'] * ($percent / 100), $this->source['height'] * ($percent / 100));
  
          return $this;
      }
code: public function resizePercent($percent = 50)
      {
          if ( $percent < 1)
          {
              throw new \InvalidArgumentException('percent must be >= 1');
          }
  
          $this->resize($this->source['width'] * ($percent / 100), $this->source['height'] * ($percent / 100));
  
          return $this;
      }
code_tokens: public function resizePercent ( $ percent = 50 ) { if ( $ percent < 1 ) { throw new \ InvalidArgumentException ( 'percent must be >= 1' ) ; } $ this -> resize ( $ this -> source [ 'width' ] * ( $ percent / 100 ) , $ this -> source [ 'height' ] * ( $ percent / 100 ) ) ; return $ this ; }
docstring: Image resize by percent
  
  @param int $percent 50
  @return $this
docstring_tokens: Image resize by percent